I'm trying to compile commoncpp2-1.2.0 in a cross compile environment. We are using binutils 2.14, gcc 3.3.2, glibc 2.3.2 and the linuxthread addon 2.3.2. The problem is we are unable to compile commoncpp. here's the error message :
Making all in src
make: Entering directory `/home/ploumen/common/commoncpp2-1.2.0/src'
if /bin/sh ../libtool --mode=compile i386-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -
I/usr/include/libxml2 -I../include -g -O2 -I/include -D_GNU_SOURCE -MT thread.lo -MD -MP -MF ".deps/thread.Tpo" \
-c -o thread.lo `test -f 'thread.cpp' || echo './'`thread.cpp; \
then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; \
else rm -f ".deps/thread.Tpo"; exit 1; \
rm -f .libs/thread.lo
i386-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -I/usr/include/libxml2 -I../include -g -O2 -I/include -D_GNU_SOURCE -MT thread.lo -MD -MP -MF .deps/thread.Tpo -c thread.cpp -fPIC -DPIC -o .libs/thread.lo
In file included from /home/ploumen/XSpector/tools/i386-linux/sys-include/sys/un.h:38,
/home/ploumen/XSpector/tools/i386-linux/sys-include/string.h:248: error: parse
error before `char'
In file included from ../include/cc++/missing.h:49,
../include/cc++/strchar.h: In member function `virtual int
../include/cc++/strchar.h:102: error: `stricmp' undeclared (first use this
../include/cc++/strchar.h:102: error: (Each undeclared identifier is reported
only once for each function it appears in.)
make: *** [thread.lo] Error 1
make: Leaving directory `/home/ploumen/common/commoncpp2-1.2.0/src'
make: *** [all-recursive] Error 1
Can someone help me solve this problem ?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.