Loďc Ploumen - 2005-02-11

Hi,
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[1]: 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; \ fi
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,
                 from ../include/cc++/config.h:665,
                 from thread.cpp:41:
/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,
                 from ../include/cc++/string.h:50,
                 from ../include/cc++/exception.h:54,
                 from thread.cpp:44:
../include/cc++/strchar.h: In member function `virtual int
   ost::keystring::compare(const char*)':
../include/cc++/strchar.h:102: error: `stricmp' undeclared (first use this
   function)
../include/cc++/strchar.h:102: error: (Each undeclared identifier is reported
   only once for each function it appears in.)
make[1]: *** [thread.lo] Error 1
make[1]: Leaving directory `/home/ploumen/common/commoncpp2-1.2.0/src'
make: *** [all-recursive] Error 1

Can someone help me solve this problem ?