I'm getting silly stuff from this when I try compiling commoncpp2. With the SlackBuild & version 1.5.3 I get
Code:
Making all in src
make[1]: Entering directory `/tmp/build/tmp-commoncpp2/commoncpp2-1.5.3/src'
if /bin/sh ../libtool --mode=compile --tag=CXX i486-slackware-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../include -g -O2 -MT thread.lo -MD -MP -MF ".deps/thread.Tpo" -c -o thread.lo thread.cpp; \
then mv -f ".deps/thread.Tpo" ".deps/thread.Plo"; else rm -f ".deps/thread.Tpo"; exit 1; fi
i486-slackware-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../include -g -O2 -MT thread.lo -MD -MP -MF .deps/thread.Tpo -c thread.cpp -fPIC -DPIC -o .libs/thread.o
thread.cpp: In member function 'void ost::MainThread::onSignal(int)':
thread.cpp:410:29: error: 'exit' is not a member of 'std'
make[1]: *** [thread.lo] Error 1
make[1]: Leaving directory `/tmp/build/tmp-commoncpp2/commoncpp2-1.5.3/src'
make: *** [all-recursive] Error 1
Going at version 1.6.1, the error is
Code:
make[2]: Entering directory `/home/dec/softphones/commoncpp2-1.6.1/src'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -MT cidr.lo -MD -MP -MF .deps/cidr.Tpo -c -o cidr.lo cidr.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -g -O2 -MT cidr.lo -MD -MP -MF .deps/cidr.Tpo -c cidr.cpp -fPIC -DPIC -o .libs/cidr.o
cidr.cpp: In member function 'void ost::IPV4Cidr::set(const char*)':
cidr.cpp:201:21: error: invalid conversion from 'const char*' to 'char*'
cidr.cpp: In member function 'void ost::IPV6Cidr::set(const char*)':
cidr.cpp:329:21: error: invalid conversion from 'const char*' to 'char*'
make[2]: *** [cidr.lo] Error 1
make[2]: Leaving directory `/home/dec/softphones/commoncpp2-1.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dec/softphones/commoncpp2-1.6.1'
make: *** [all] Error 2
From my glance at it, the Slackbuild w/1.5.3 is dying over some class of a syntax error and is confusing things. The 1.6.1 seems to be caught on C defines, which is a regular trouble spot. Usually that's a warning - why the error?
I did try commoncpp2-1.6.1 with the SlackBuild, and barfed at exactly the same place; which only goes to show I'm not making a complete mess of compiling it.