QC_WITH_LIBCOMMONCPP2_LIB compile problem

Asked by Jeffery Fernandez

from line 534 in the configure file:
##########################################################
  s = conf->getenv("QC_WITH_LIBCOMMONCPP2_LIB");
  if(!s.isEmpty()) {
   if(!QFile::exists(s+QString("libccext2.so")))
      return false;
   if(!QFile::exists(s+QString("libccgnu2.so")))
    return false;
     conf->addLib(QString("-L") + s);
  }else{
   QStringList sl;
   sl << "/usr/lib/";
   sl << "/usr/local/lib/";
   bool found = false;
   foreach(s, sl){
    if(QFile::exists(s+QString("libccext2.so"))){
      if(QFile::exists(s+QString("libccgnu2.so"))){
      found = true;
      break;
     }
    }
   }
   if(!found) return false;
   conf->addLib(QString("-L") + s);
  }
##########################################################
if I don't comment out the following lines:
   if(!QFile::exists(s+QString("libccext2.so")))
      return false;
   if(!QFile::exists(s+QString("libccgnu2.so")))
    return false;
I always get a failure like so:
Checking for GNU Common C++ library (libcommoncpp2) ...
 * INCLUDEPATH += /usr/include
 -> no

Error: need GNU Common C++ library (libcommoncpp2)!
##########################################################
if I comment them off then the package builds fine... and qbittorrent seems to be running fine. Any ideas?

cheers,
Jeffery

Question information

Language:
English Edit question
Status:
Answered
For:
qBittorrent Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jeffery Fernandez (developer-jefferyfernandez) said :
#1

also I would like to add, commoncpp2-devel and commoncpp2 are installed packages.

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#2

Can you find libccext2.so & libccgnu2.so on your system? Where are they?

Is this the output of ./configure --verbose ? it may also be useful to see the content of conf.log after you run the configure and it fails.

Revision history for this message
Jeffery Fernandez (developer-jefferyfernandez) said :
#3

I am on a 64bit architecture

crickey:~ # ls -la /usr/lib64/libccext2*
lrwxrwxrwx 1 root root 22 Oct 14 10:16 /usr/lib64/libccext2-1.5.so.0 -> libccext2-1.5.so.0.0.7
-rwxr-xr-x 1 root root 304624 Sep 22 05:48 /usr/lib64/libccext2-1.5.so.0.0.7
-rw-r--r-- 1 root root 551384 Sep 22 05:48 /usr/lib64/libccext2.a
-rw-r--r-- 1 root root 823 Sep 22 05:48 /usr/lib64/libccext2.la
lrwxrwxrwx 1 root root 22 Oct 14 10:16 /usr/lib64/libccext2.so -> libccext2-1.5.so.0.0.7
#####################################################################################
crickey:~ # ls -la /usr/lib64/libccgnu2*
lrwxrwxrwx 1 root root 22 Oct 14 10:16 /usr/lib64/libccgnu2-1.5.so.0 -> libccgnu2-1.5.so.0.0.7
-rwxr-xr-x 1 root root 338848 Sep 22 05:48 /usr/lib64/libccgnu2-1.5.so.0.0.7
-rw-r--r-- 1 root root 639294 Sep 22 05:48 /usr/lib64/libccgnu2.a
-rw-r--r-- 1 root root 819 Sep 22 05:48 /usr/lib64/libccgnu2.la
lrwxrwxrwx 1 root root 22 Oct 14 10:16 /usr/lib64/libccgnu2.so -> libccgnu2-1.5.so.0.0.7
#####################################################################################
> Is this the output of ./configure --verbose ?
yes

######################## Complete Log of Build ##################################

jeffery@crickey:~/redhat/SPECS> rpmbuild -ba qbittorrent.spec
Executing(%prep): /bin/sh -e /home/jeffery/redhat/tmp/rpm-tmp.96095
+ umask 022
+ cd /home/jeffery/redhat/BUILD
+ cd /home/jeffery/redhat/BUILD
+ rm -rf qbittorrent-1.0.0rc5
+ /usr/bin/gzip -dc /home/jeffery/redhat/SOURCES/qbittorrent-1.0.0rc5.tar.gz
+ tar -xvvf -
drwxr-xr-x jeffery/users 0 2007-10-14 14:42 qbittorrent-1.0.0rc5/
drwxr-xr-x jeffery/users 0 2007-10-13 19:38 qbittorrent-1.0.0rc5/qcm/
-rw-r--r-- jeffery/users 1931 2007-07-25 17:00 qbittorrent-1.0.0rc5/qcm/libcommoncpp2.qcm
-rw-r--r-- jeffery/users 1598 2007-09-04 08:05 qbittorrent-1.0.0rc5/qcm/libzzip.qcm
-rw-r--r-- jeffery/users 1348 2007-04-04 07:49 qbittorrent-1.0.0rc5/qcm/libboost.qcm
-rw-r--r-- jeffery/users 376 2006-05-31 17:48 qbittorrent-1.0.0rc5/qcm/python.qcm
-rw-r--r-- jeffery/users 2083 2007-07-24 15:08 qbittorrent-1.0.0rc5/qcm/libtorrent.qcm
-rw-r--r-- jeffery/users 1937 2007-09-04 08:05 qbittorrent-1.0.0rc5/qcm/libmagick.qcm
-rw-r--r-- jeffery/users 287 2007-09-04 08:59 qbittorrent-1.0.0rc5/qcm/qt4.qcm
[snip]
-rw-r--r-- jeffery/users 112 2007-09-01 20:23 qbittorrent-1.0.0rc5/AUTHORS
-rw-r--r-- jeffery/users 55 2007-03-12 05:40 qbittorrent-1.0.0rc5/qbittorrent.pro
-rw-r--r-- jeffery/users 408 2007-09-04 08:59 qbittorrent-1.0.0rc5/qbittorrent.qc
-rwxr-xr-x jeffery/users 228 2006-10-01 02:02 qbittorrent-1.0.0rc5/testpython.py
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd qbittorrent-1.0.0rc5
++ /usr/bin/id -u
+ '[' 1000 = 0 ']'
++ /usr/bin/id -u
+ '[' 1000 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /home/jeffery/redhat/tmp/rpm-tmp.96095
+ umask 022
+ cd /home/jeffery/redhat/BUILD
+ /bin/rm -rf /home/jeffery/redhat/tmp/qbittorrent-1.0.0rc5-suse103-buildroot
++ dirname /home/jeffery/redhat/tmp/qbittorrent-1.0.0rc5-suse103-buildroot
+ /bin/mkdir -p /home/jeffery/redhat/tmp
+ /bin/mkdir /home/jeffery/redhat/tmp/qbittorrent-1.0.0rc5-suse103-buildroot
+ cd qbittorrent-1.0.0rc5
+ export QTDIR=/usr/lib64/qt4
+ QTDIR=/usr/lib64/qt4
+ export KDEDIR=/usr
+ KDEDIR=/usr
+ export LD_LIBRARY_PATH=/usr/lib64/qt4/lib64:/usr/lib64:
+ LD_LIBRARY_PATH=/usr/lib64/qt4/lib64:/usr/lib64:
+ export PATH=/usr/lib64/qt4/bin:/usr/bin:/opt/kde3/bin:/home/jeffery/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
+ PATH=/usr/lib64/qt4/bin:/usr/bin:/opt/kde3/bin:/home/jeffery/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
+ CFLAGS='-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2'
+ CXXFLAGS='-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2'
+ ./configure --prefix=/home/jeffery/redhat/tmp/qbittorrent-1.0.0rc5-suse103-buildroot/usr --with-libcommoncpp2-inc=/usr/include --with-libcommoncpp2-lib=/usr/lib64 --verbose
Configuring qbittorrent ...

PREFIX=/home/jeffery/redhat/tmp/qbittorrent-1.0.0rc5-suse103-buildroot/usr
BINDIR=/home/jeffery/redhat/tmp/qbittorrent-1.0.0rc5-suse103-buildroot/usr/bin
DATADIR=/home/jeffery/redhat/tmp/qbittorrent-1.0.0rc5-suse103-buildroot/usr/share
EX_QTDIR=
QC_WITH_LIBTORRENT_INC=
QC_WITH_LIBTORRENT_LIB=
QC_WITH_LIBTORRENT_STATIC_LIB=
QC_WITH_LIBBOOST_INC=
QC_WITH_LIBCOMMONCPP2_INC=/usr/include
QC_WITH_LIBCOMMONCPP2_LIB=/usr/lib64
QC_DISABLE_libmagick=
QC_WITH_LIBMAGICK_INC=
QC_WITH_LIBMAGICK_LIB=
QC_DISABLE_libzzip=
QC_WITH_LIBZZIP_INC=
QC_WITH_LIBZZIP_LIB=

Verifying Qt 4 build environment ...
Warning: qmake not found via --qtdir
Warning: qmake not found via $QTDIR
qmake found in /usr/bin/qmake
 -> ok
conf command: [./configure]
conf path: [./configure]
srcdir: [/home/jeffery/redhat/BUILD/qbittorrent-1.0.0rc5]
builddir: [/home/jeffery/redhat/BUILD/qbittorrent-1.0.0rc5]
profile: [/home/jeffery/redhat/BUILD/qbittorrent-1.0.0rc5/qbittorrent.pro]
qmake path: [/usr/bin/qmake]
make tool: [/usr/bin/gmake]

Checking for Qt >= 4.3 ... yes
Checking for libtorrent >= 0.13 ...
 * INCLUDEPATH += /usr/include
 * INCLUDEPATH += /usr/include/libtorrent
 * Wrote atest.cpp:
int main()
{
    return 0;
}

 * Wrote atest.pro:
CONFIG += console
CONFIG -= qt app_bundle
SOURCES += atest.cpp
LIBS += -L/usr/lib/ -ltorrent

 * [/usr/bin/qmake atest.pro]
 * returned: 0
 * [/usr/bin/gmake]
g++ -c -m64 -pipe -O2 -Wall -W -I/usr/share/qt4/mkspecs/default -I. -I. -o atest.o atest.cpp
g++ -m64 -o atest atest.o -L/usr/lib/ -ltorrent
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib//libm.so when searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib//libm.a when searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib//libc.so when searching for -lc
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib//libc.a when searching for -lc
 * returned: 0
 * [/usr/bin/gmake distclean]
rm -f atest.o
rm -f *~ core *.core
rm -f atest
rm -f Makefile
 * returned: 0
 * LIBS += -L/usr/lib/
 -> yes
Checking for libboost ...
 * INCLUDEPATH += /usr/include
 -> yes
Checking for GNU Common C++ library (libcommoncpp2) ...
 * INCLUDEPATH += /usr/include
 -> no

Error: need GNU Common C++ library (libcommoncpp2)!

error: Bad exit status from /home/jeffery/redhat/tmp/rpm-tmp.96095 (%build)
######################## Complete Log of Build ##################################

And the conf.log

/usr/bin/moc -DHAVE_MODULES -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include -I. -I. conf4.cpp -o conf4.moc
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DHAVE_MODULES -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include -I. -I. -o conf4.o conf4.cpp
g++ -m64 -o conf conf4.o -L/usr/lib64 -lQtCore -L/usr/lib64 -lz -lm -pthread -lgthread-2.0 -lrt -lglib-2.0 -ldl -lpthread

Revision history for this message
Christophe Dumez (hydr0g3n) said :
#4

Should be fixed in svn. Thank you for the report.

Can you help with this problem?

Provide an answer of your own, or ask Jeffery Fernandez for more information if necessary.

To post a message you must log in.