Page 1 of 1

problem compiling in centos 5.2

Posted: Tue Sep 16, 2008 6:30 pm
by abubin
I am trying to compile deluge 0.9.09 in centos 5.2 but encountered this 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/python2.4 -c ./libtorrent/src/torrent_info.cpp -o build/temp.linux-i686-2.4/./libtorrent/src/torrent_info.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
./libtorrent/src/torrent_info.cpp:49:32: error: boost/filesystem.hpp: No such file or directory
./libtorrent/include/asio/detail/pipe_select_interrupter.hpp: In member function âvoid asio::detail::pipe_select_interrupter::interrupt()â:
./libtorrent/include/asio/detail/pipe_select_interrupter.hpp:74: warning: ignoring return value of âssize_t write(int, const void*, size_t)â, declared with attribute warn_unused_result
error: command 'gcc' failed with exit status 1
I already installed boost-1.33.1-10.el5.

Re: problem compiling in centos 5.2

Posted: Tue Sep 16, 2008 7:04 pm
by andar
abubin wrote:I am trying to compile deluge 0.9.09 in centos 5.2 but encountered this 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/python2.4 -c ./libtorrent/src/torrent_info.cpp -o build/temp.linux-i686-2.4/./libtorrent/src/torrent_info.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
./libtorrent/src/torrent_info.cpp:49:32: error: boost/filesystem.hpp: No such file or directory
./libtorrent/include/asio/detail/pipe_select_interrupter.hpp: In member function âvoid asio::detail::pipe_select_interrupter::interrupt()â:
./libtorrent/include/asio/detail/pipe_select_interrupter.hpp:74: warning: ignoring return value of âssize_t write(int, const void*, size_t)â, declared with attribute warn_unused_result
error: command 'gcc' failed with exit status 1
I already installed boost-1.33.1-10.el5.
1.0.0_RC requires at least boost 1.34.1

Re: problem compiling in centos 5.2

Posted: Wed Sep 17, 2008 7:36 am
by abubin
downloaded boost 1.36 from boost website and after some tinkering and googling, found out that don't need to compile boost.

Just need to copy the boost folder into existing boost folder in /usr/include.

Try to compile again and this time bigger error :

Code: Select all

[root@localhost deluge-0.9.09]# python setup.py build
svn: '.' is not a working copy
svn: '/usr/portage/distfiles/svn-src/deluge' is not a working copy
svn: Can't open file '/usr/portage/distfiles/svn-src/deluge/.svn/entries': No such file or directory
Traceback (most recent call last):
  File "setup.py", line 41, in ?
    from setuptools import setup
ImportError: No module named setuptools
Traceback (most recent call last):
  File "setup.py", line 37, in ?
    from setuptools import setup
ImportError: No module named setuptools
running build
running build_py
running egg_info
writing deluge.egg-info/PKG-INFO
writing top-level names to deluge.egg-info/top_level.txt
writing dependency_links to deluge.egg-info/dependency_links.txt
writing entry points to deluge.egg-info/entry_points.txt
reading manifest file 'deluge.egg-info/SOURCES.txt'
writing manifest file 'deluge.egg-info/SOURCES.txt'
copying deluge/data/revision -> build/lib.linux-i686-2.4/deluge/data
running build_ext
building 'libtorrent' extension
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/python2.4 -c ./libtorrent/bindings/python/src/extensions.cpp -o build/temp.linux-i686-2.4/./libtorrent/bindings/python/src/extensions.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
/usr/include/boost/type_traits/detail/cv_traits_impl.hpp: In instantiation of âconst bool boost::detail::cv_traits_imp<<unnamed>::torrent_plugin_wrap*>::is_constâ:
/usr/include/boost/type_traits/is_const.hpp:53:   instantiated from âboost::is_const<<unnamed>::torrent_plugin_wrap>â
/usr/include/boost/python/detail/cv_category.hpp:31:   instantiated from âboost::python::detail::cv_category<<unnamed>::torrent_plugin_wrap>â
/usr/include/boost/python/detail/unwind_type.hpp:58:   instantiated from âtypename Generator::result_type boost::python::detail::unwind_ptr_type(U*, Generator*) [with Generator = boost::python::converter::detail::unwind_type_id_helper, U = <unnamed>::torrent_plugin_wrap]â
/usr/include/boost/python/detail/unwind_type.hpp:127:   instantiated from âstatic typename Generator::result_type boost::python::detail::unwind_helper2<2>::execute(U& (*)(), Generator*) [with Generator = boost::python::converter::detail::unwind_type_id_helper, U = <unnamed>::torrent_plugin_wrap]â
/usr/include/boost/python/detail/unwind_type.hpp:165:   instantiated from âtypename Generator::result_type boost::python::detail::unwind_type(boost::type<U>*, Generator*) [with Generator = boost::python::converter::detail::unwind_type_id_helper, U = <unnamed>::torrent_plugin_wrap&]â
/usr/include/boost/python/converter/pytype_function.hpp:45:   instantiated from âboost::python::type_info boost::python::converter::detail::unwind_type_id_(boost::type<R>*, mpl_::false_*) [with T = <unnamed>::torrent_plugin_wrap&]â
/usr/include/boost/python/converter/pytype_function.hpp:68:   instantiated from âstatic const PyTypeObject* boost::python::converter::expected_pytype_for_arg<T>::get_pytype() [with T = <unnamed>::torrent_plugin_wrap&]â
/usr/include/boost/python/detail/signature.hpp:98:   instantiated from âstatic const boost::python::detail::signature_element* boost::python::detail::signature_arity<1u>::impl<Sig>::elements() [with Sig = boost::mpl::vector2<bool, <unnamed>::torrent_plugin_wrap&>]â
/usr/include/boost/python/detail/caller.hpp:232:   instantiated from âstatic boost::python::detail::py_func_sig_info boost::python::detail::caller_arity<1u>::impl<F, Policies, Sig>::signature() [with F = bool (<unnamed>::torrent_plugin_wrap::*)(), Policies = boost::python::default_call_policies, Sig = boost::mpl::vector2<bool, <unnamed>::torrent_plugin_wrap&>]â
/usr/include/boost/python/object/py_function.hpp:48:   instantiated from âboost::python::detail::py_func_sig_info boost::python::objects::caller_py_function_impl<Caller>::signature() const [with Caller = boost::python::detail::caller<bool (<unnamed>::torrent_plugin_wrap::*)(), boost::python::default_call_policies, boost::mpl::vector2<bool, <unnamed>::torrent_plugin_wrap&> >]â
./libtorrent/bindings/python/src/extensions.cpp:156:   instantiated from here
/usr/include/boost/type_traits/detail/cv_traits_impl.hpp:37: 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.
What's next upgrade python? gcc?

python-2.4.3-21.el5
gcc-4.1.2-42.el5

Re: problem compiling in centos 5.2

Posted: Thu Sep 18, 2008 5:47 am
by abubin
this is hopeless, i am re-installing fedora9 instead. See if compile works cause the boost is required version and python and gcc also new version.