LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to build qBittorrent with libtorrent-rasterbar 0.15.2 and zlib 1.2.5 (https://www.linuxquestions.org/questions/linux-software-2/unable-to-build-qbittorrent-with-libtorrent-rasterbar-0-15-2-and-zlib-1-2-5-a-829492/)

robertjinx 08-31-2010 06:49 AM

Unable to build qBittorrent with libtorrent-rasterbar 0.15.2 and zlib 1.2.5
 
Hello, Im trying to build qBittorrent on my slack, using qBittorrent 2.4.0, with libtorrent-rasterbar 0.15.2 and zlib 1.2.5, but it fails:

Quote:

de/QtDBus -I/usr/lib/qt/include -Iqtsingleapp -Ilineedit/src -I. -I. -o createtorrent_imp.o createtorrent_imp.cpp
In file included from /usr/include/libtorrent/hasher.hpp:41,
from /usr/include/libtorrent/storage.hpp:59,
from createtorrent_imp.cpp:45:
/usr/include/zlib.h:1583: error: declaration of C function 'off_t gzseek64(void*, off_t, int)' conflicts with
/usr/include/zlib.h:1567: error: previous declaration 'off64_t gzseek64(void*, off64_t, int)' here
/usr/include/zlib.h:1584: error: declaration of C function 'off_t gztell64(void*)' conflicts with
/usr/include/zlib.h:1568: error: previous declaration 'off64_t gztell64(void*)' here
/usr/include/zlib.h:1585: error: declaration of C function 'off_t gzoffset64(void*)' conflicts with
/usr/include/zlib.h:1569: error: previous declaration 'off64_t gzoffset64(void*)' here
/usr/include/zlib.h:1586: error: declaration of C function 'uLong adler32_combine64(uLong, uLong, off_t)' conflicts with
/usr/include/zlib.h:1570: error: previous declaration 'uLong adler32_combine64(uLong, uLong, off64_t)' here
/usr/include/zlib.h:1587: error: declaration of C function 'uLong crc32_combine64(uLong, uLong, off_t)' conflicts with
/usr/include/zlib.h:1571: error: previous declaration 'uLong crc32_combine64(uLong, uLong, off64_t)' here
make[1]: *** [createtorrent_imp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/tmp/kng/qbittorrent-2.4.0/src'
make: *** [sub-src-make_default] Error 2
cd src/ && make -f Makefile
make[1]: Entering directory `/tmp/kng/qbittorrent-2.4.0/src'
g++ -c -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED -I/usr/include/libtorrent -D_REENTRANT -Wall -W -DVERSION=\"v2.4.0\" -DVERSION_MAJOR=2 -DVERSION_MINOR=4 -DVERSION_BUGFIX=0 -DVERSION_TYPE=NORMAL -DQT_NO_DEBUG_OUTPUT -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/lib/qt/include/QtCore -I/usr/lib/qt/include/QtNetwork -I/usr/lib/qt/include/QtGui -I/usr/lib/qt/include/QtXml -I/usr/lib/qt/include/QtDBus -I/usr/lib/qt/include -Iqtsingleapp -Ilineedit/src -I. -I. -o main.o main.cpp
g++ -c -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED -I/usr/include/libtorrent -D_REENTRANT -Wall -W -DVERSION=\"v2.4.0\" -DVERSION_MAJOR=2 -DVERSION_MINOR=4 -DVERSION_BUGFIX=0 -DVERSION_TYPE=NORMAL -DQT_NO_DEBUG_OUTPUT -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/lib/qt/include/QtCore -I/usr/lib/qt/include/QtNetwork -I/usr/lib/qt/include/QtGui -I/usr/lib/qt/include/QtXml -I/usr/lib/qt/include/QtDBus -I/usr/lib/qt/include -Iqtsingleapp -Ilineedit/src -I. -I. -o createtorrent_imp.o createtorrent_imp.cpp
In file included from /usr/include/libtorrent/hasher.hpp:41,
from /usr/include/libtorrent/storage.hpp:59,
from createtorrent_imp.cpp:45:
/usr/include/zlib.h:1583: error: declaration of C function 'off_t gzseek64(void*, off_t, int)' conflicts with
/usr/include/zlib.h:1567: error: previous declaration 'off64_t gzseek64(void*, off64_t, int)' here
/usr/include/zlib.h:1584: error: declaration of C function 'off_t gztell64(void*)' conflicts with
/usr/include/zlib.h:1568: error: previous declaration 'off64_t gztell64(void*)' here
/usr/include/zlib.h:1585: error: declaration of C function 'off_t gzoffset64(void*)' conflicts with
/usr/include/zlib.h:1569: error: previous declaration 'off64_t gzoffset64(void*)' here
/usr/include/zlib.h:1586: error: declaration of C function 'uLong adler32_combine64(uLong, uLong, off_t)' conflicts with
/usr/include/zlib.h:1570: error: previous declaration 'uLong adler32_combine64(uLong, uLong, off64_t)' here
/usr/include/zlib.h:1587: error: declaration of C function 'uLong crc32_combine64(uLong, uLong, off_t)' conflicts with
/usr/include/zlib.h:1571: error: previous declaration 'uLong crc32_combine64(uLong, uLong, off64_t)' here
make[1]: *** [createtorrent_imp.o] Error 1
make[1]: Leaving directory `/tmp/kng/qbittorrent-2.4.0/src'
make: *** [sub-src-make_default] Error 2
It also fails if I try version 2.3.1.
I do have the impression is zlib problem... but don't know for sure.
Does anyone know whats the issue?


All times are GMT -5. The time now is 10:44 PM.