LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2011, 10:38 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
commoncpp2 build failures.


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.
 
Old 07-27-2011, 12:50 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Bad practise I know to reply to my own post.

I got past the thread.cpp error with
Quote:
sed 's/stdlib\.h/cstdlib/' -i src/thread.cpp
Apparently the deal is that stdlib.h doesn't access cstdlib.h, but using cstdlib.h accesses stdlib.h as well. Now it barfs like this
Quote:
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
 
Old 07-27-2011, 01:55 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Solved this. Solution: DON'T INSTALL COMMONCPP!

I even found it had gone on to version 1.8.1, but the guy can't define his variables, and that crapped out with another weirdo error.

I grabbed linphone, which needed libosip and libexosip (on gnu.org) and they went together. What a waste of cpu cycles.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Add an Auto-Incrementing Build-Number to Your Build Process LXer Syndicated Linux News 0 07-09-2008 01:00 AM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM
Failures in apt-get? upchucky Debian 8 12-17-2005 08:01 PM
Logon Failures! skip1 Linux - Software 15 02-23-2003 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration