[Buildroot] Qtopia4 Failure

Ulf Samuelsson ulf at atmel.com
Mon Sep 24 08:02:41 UTC 2007


mån 2007-09-24 klockan 09:25 +0930 skrev Adam Hawes:
> On Sun, 2007-09-23 at 18:12 +0200, Ulf Samuelsson wrote:
> > Anyone building qtopia?
> > I get (when compiling with gcc-4.2.1/binutils-2.18/uclibc-0.9.29):
> > 
> > 
> > arm-linux-g++ -c -pipe -g -g -fvisibility=hidden
> > -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED
> > -DTSLIBMOUSEHANDLER_DEBUG -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII
> > -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT
> > -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
> > -I../../mkspecs/qws/linux-arm-g++ -I. -I../../include
> > -I../../include/QtCore -Iglobal -I.moc/debug-shared-emb-arm
> > -I.uic/debug-shared-emb-arm
> > -o .obj/debug-shared-emb-arm/qresource_iterator.o
> > io/qresource_iterator.cpp
> > io/qresource_iterator.cpp:46:66: error: macro "index" requires 2
> > arguments, but only 1 given
> > io/qresource_iterator.cpp: In constructor
> > ‘QResourceFileEngineIterator::QResourceFileEngineIterator(QFlags<QDir::Filter>, const QStringList&)’:
> > io/qresource_iterator.cpp:47: error: expected `(' before ‘{’ token
> > make[2]: *** [.obj/debug-shared-emb-arm/qresource_iterator.o] Fel 1
> > 
> 
> Yup.  To quote Carmelo Amoroso (search the archives in the last month):
> 
> "The problem is that you have uClibc configure with SUSv3_LEGACY_MACRO
> on that define index."

I have tried another alternative, and that is to enable
UCLIBC_SUSV3_LEGACY instead of UCLIBC_SUSV3_LEGACY_MACROS
Then the Macros do not get defined, and you instead gets the 
real bcopy/bzero etc. routines.

With this, qtopia-4.3.1 compiles.

qtopia will depend on UCLIBC_SUSV3_LEGACY.

> 
> I have attached a patch that fixes the problem in all the places that
> needs to be fixed (#undef index).  I need SUSv3 macros to build some
> other things so I didn't want to turn them off and fix other things.
> 
> Cheers,
> A
> 




More information about the buildroot mailing list