Page 1 of 1

Compiling problem on Centos

Posted: Sun Oct 31, 2010 9:24 pm
by dts
I tried to build deluge-1.3.1 and deluge-1.3.0
got same errors

Code: Select all

gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.4 -I/usr/include -I -I/usr/include/python2.4 -c ./libtorrent/src/udp_socket.cpp -o build/temp.linux-i686-2.4/./libtorrent/src/udp_socket.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
./libtorrent/include/libtorrent/udp_socket.hpp:124: error: ISO C++ forbids declaration of 'list' with no type
./libtorrent/include/libtorrent/udp_socket.hpp:124: error: invalid use of '::'
./libtorrent/include/libtorrent/udp_socket.hpp:124: error: expected ';' before '<' token
./libtorrent/src/udp_socket.cpp: In member function 'void libtorrent::udp_socket::send(const boost::asio::ip::basic_endpoint<boost::asio::ip::udp>&, const char*, int, boost::system::error_code&)':
./libtorrent/src/udp_socket.cpp:105: error: 'm_queue' was not declared in this scope
./libtorrent/src/udp_socket.cpp: In member function 'void libtorrent::udp_socket::connect2(const boost::system::error_code&)':
./libtorrent/src/udp_socket.cpp:645: error: 'm_queue' was not declared in this scope
error: command 'gcc' failed with exit status 1
Linux nas 2.6.18-194.17.1.el5xen #1 SMP Wed Sep 29 14:12:56 EDT 2010 i686 i686 i386 GNU/Linux
Package boost-devel-1.33.1-10.el5.i386 already installed and latest version
Package boost-1.33.1-10.el5.i386 already installed and latest version

Re: Compiling problem on Centos

Posted: Wed Nov 03, 2010 4:38 pm
by Cas
looks like a libtorrent and boost compile problem, you can try searching/posting the issue on their bug tracker and it does seem similar to Bug 106 so if you use the latest 0.15 libtorrent it might solve your problem.

Re: Compiling problem on Centos

Posted: Thu Nov 04, 2010 12:01 am
by Cas
Actually I just noticed that you are using boost 1.33. The install guide clearly specifies boost >=1.34.

Re: Compiling problem on Centos

Posted: Thu Nov 04, 2010 7:43 pm
by dts
boost_1_44_0 installed but same error :(

Code: Select all

gcc -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.4 -I/usr/include -I -I/usr/include/python2.4 -c ./libtorrent/src/udp_socket.cpp -o build/temp.linux-i686-2.4/./libtorrent/src/udp_socket.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
./libtorrent/include/libtorrent/udp_socket.hpp:124: error: ISO C++ forbids declaration of 'list' with no type
./libtorrent/include/libtorrent/udp_socket.hpp:124: error: invalid use of '::'
./libtorrent/include/libtorrent/udp_socket.hpp:124: error: expected ';' before '<' token
./libtorrent/src/udp_socket.cpp: In member function 'void libtorrent::udp_socket::send(const boost::asio::ip::basic_endpoint<boost::asio::ip::udp>&, const char*, int, boost::system::error_code&)':
./libtorrent/src/udp_socket.cpp:105: error: 'm_queue' was not declared in this scope
./libtorrent/src/udp_socket.cpp: In member function 'void libtorrent::udp_socket::connect2(const boost::system::error_code&)':
./libtorrent/src/udp_socket.cpp:645: error: 'm_queue' was not declared in this scope
error: command 'gcc' failed with exit status 1

Re: Compiling problem on Centos

Posted: Thu Nov 04, 2010 8:33 pm
by Cas
did you use lt0.15?

As i explained before this is not a deluge error, it is with libtorrent, so there is limited support we can provide here.

Re: Compiling problem on Centos

Posted: Thu Nov 04, 2010 8:37 pm
by dts
yes, something wrong with boost
Now got new error :)
Thanks for help.

Code: Select all

./libtorrent/bindings/python/src/extensions.cpp:169:   instantiated from here
/usr/local/include/boost/type_traits/detail/cv_traits_impl.hpp:38: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:5067
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccIq967V.out file, please attach this to your bugreport.
error: command 'gcc' failed with exit status 1

Re: Compiling problem on Centos

Posted: Sun Nov 14, 2010 11:46 pm
by nikitosiusis
Same here on freebsd8.1 with latest ports.
This solution helped: http://web.archiveorange.com/archive/v/ ... CNckUNRbbE

"Try adding the line

#define BOOST_NO_INCLASS_MEMBER_INITIALIZATION

to boost/config/user.hpp. Then recompile boost."