[FIXED]error when building 1.1.0_RC from svn source
Posted: Tue Mar 10, 2009 2:49 am
Can anyone suggest what I can to to fix this problem.
I'm attempting to install 1.1.0 on ubuntu hardy server so that i can use deluged+webui for a headless torrent server.
I've installed all the dependencies listed on the "install from source" page.
First, when trying to build, I was getting errors regarding "NameError: global name 'log' is not defined" and i found that for some reason, setuptools doesn't like svn 1.5, so I moved the .svn directory elsewhere and moved forward.
So then I started chugging along in the "python setup.py build" process until I got a gcc error. I have gcc installed along with other various build-essential stuff.
Does this stuff make any sense to anyone? Is there something I missed? is there a better way to get deluged, i don't care if its the latest and greatest, but it would need to be >1.0?
By the way, I got the same error when building 1.0.0_RC as well
btw:
EDIT: For anyone else that comes along, I missed the FAQ section: http://dev.deluge-torrent.org/wiki/Faq# ... tall1.1SVN
That showed me more dependencies than the "Install from Source" page had. This is resolved
I'm attempting to install 1.1.0 on ubuntu hardy server so that i can use deluged+webui for a headless torrent server.
I've installed all the dependencies listed on the "install from source" page.
First, when trying to build, I was getting errors regarding "NameError: global name 'log' is not defined" and i found that for some reason, setuptools doesn't like svn 1.5, so I moved the .svn directory elsewhere and moved forward.
So then I started chugging along in the "python setup.py build" process until I got a gcc error. I have gcc installed along with other various build-essential stuff.
Does this stuff make any sense to anyone? Is there something I missed? is there a better way to get deluged, i don't care if its the latest and greatest, but it would need to be >1.0?
By the way, I got the same error when building 1.0.0_RC as well

Code: Select all
tp@serverbox:~/build/deluge/1.1.0_RC$ mv .svn/ ../svn
tp@serverbox:~/build/deluge/1.1.0_RC$ python setup.py build
running build
running build_trans
running build_plugins
running bdist_egg
running egg_info
writing Blocklist.egg-info/PKG-INFO
writing top-level names to Blocklist.egg-info/top_level.txt
writing dependency_links to Blocklist.egg-info/dependency_links.txt
writing entry points to Blocklist.egg-info/entry_points.txt
Traceback (most recent call last):
File "setup.py", line 55, in <module>
""" % ((__plugin_name__, __plugin_name__.lower())*3)
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/bdist_egg.py", line 167, in run
self.run_command("egg_info")
File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 171, in run
self.find_sources()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 252, in find_sources
mm.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 306, in run
self.add_defaults()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 333, in add_defaults
rcfiles = list(walk_revctrl())
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 45, in walk_revctrl
for item in ep.load()(dirname):
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 52, in _default_revctrl
for path in finder(dirname,path):
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 98, in entries_finder
log.warn("unrecognized .svn/entries format in %s", dirname)
NameError: global name 'log' is not defined
running bdist_egg
running egg_info
writing Label.egg-info/PKG-INFO
writing top-level names to Label.egg-info/top_level.txt
writing dependency_links to Label.egg-info/dependency_links.txt
writing entry points to Label.egg-info/entry_points.txt
Traceback (most recent call last):
File "setup.py", line 63, in <module>
""" % ((__plugin_name__, __plugin_name__.lower())*3)
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/bdist_egg.py", line 167, in run
self.run_command("egg_info")
File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 171, in run
self.find_sources()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 252, in find_sources
mm.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 306, in run
self.add_defaults()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 333, in add_defaults
rcfiles = list(walk_revctrl())
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 45, in walk_revctrl
for item in ep.load()(dirname):
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 52, in _default_revctrl
for path in finder(dirname,path):
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 98, in entries_finder
log.warn("unrecognized .svn/entries format in %s", dirname)
NameError: global name 'log' is not defined
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'
creating build/lib.linux-i686-2.5/deluge/ui/gtkui/glade
[... some copy stuff going on]
running build_ext
building 'libtorrent' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/libtorrent
creating build/temp.linux-i686-2.5/libtorrent/src
creating build/temp.linux-i686-2.5/libtorrent/src/kademlia
creating build/temp.linux-i686-2.5/libtorrent/bindings
creating build/temp.linux-i686-2.5/libtorrent/bindings/python
creating build/temp.linux-i686-2.5/libtorrent/bindings/python/src
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include -I/usr/include/python2.5 -c ./libtorrent/src/instantiate_connection.cpp -o build/temp.linux-i686-2.5/./libtorrent/src/instantiate_connection.o -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTORRENT_USE_OPENSSL=1 -O2 -Wno-missing-braces
In file included from ./libtorrent/include/asio/impl/io_service.ipp:25,
from ./libtorrent/include/asio/io_service.hpp:547,
from ./libtorrent/include/asio/basic_io_object.hpp:20,
from ./libtorrent/include/asio/basic_socket_acceptor.hpp:20,
from ./libtorrent/include/asio/ip/tcp.hpp:20,
from ./libtorrent/include/libtorrent/socket.hpp:51,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/asio/detail/epoll_reactor.hpp:29:59: error: boost/date_time/posix_time/posix_time_types.hpp: No such file or directory
In file included from ./libtorrent/include/asio/detail/timer_queue.hpp:33,
from ./libtorrent/include/asio/detail/epoll_reactor.hpp:46,
from ./libtorrent/include/asio/impl/io_service.ipp:25,
from ./libtorrent/include/asio/io_service.hpp:547,
from ./libtorrent/include/asio/basic_io_object.hpp:20,
from ./libtorrent/include/asio/basic_socket_acceptor.hpp:20,
from ./libtorrent/include/asio/ip/tcp.hpp:20,
from ./libtorrent/include/libtorrent/socket.hpp:51,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/asio/detail/timer_queue_base.hpp:42: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/asio/detail/timer_queue_base.hpp:42: error: ISO C++ forbids declaration of ‘time_duration’ with no type
./libtorrent/include/asio/detail/timer_queue_base.hpp:42: error: ‘time_duration’ declared as a ‘virtual’ field
./libtorrent/include/asio/detail/timer_queue_base.hpp:42: error: expected ‘;’ before ‘wait_duration’
In file included from ./libtorrent/include/asio/detail/epoll_reactor.hpp:46,
from ./libtorrent/include/asio/impl/io_service.ipp:25,
from ./libtorrent/include/asio/io_service.hpp:547,
from ./libtorrent/include/asio/basic_io_object.hpp:20,
from ./libtorrent/include/asio/basic_socket_acceptor.hpp:20,
from ./libtorrent/include/asio/ip/tcp.hpp:20,
from ./libtorrent/include/libtorrent/socket.hpp:51,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/asio/detail/timer_queue.hpp:103: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/asio/detail/timer_queue.hpp:103: error: ISO C++ forbids declaration of ‘time_duration’ with no type
./libtorrent/include/asio/detail/timer_queue.hpp:103: error: ‘time_duration’ declared as a ‘virtual’ field
./libtorrent/include/asio/detail/timer_queue.hpp:103: error: expected ‘;’ before ‘wait_duration’
./libtorrent/include/asio/detail/timer_queue.hpp:112: error: expected `;' before ‘virtual’
In file included from ./libtorrent/include/asio/impl/io_service.ipp:25,
from ./libtorrent/include/asio/io_service.hpp:547,
from ./libtorrent/include/asio/basic_io_object.hpp:20,
from ./libtorrent/include/asio/basic_socket_acceptor.hpp:20,
from ./libtorrent/include/asio/ip/tcp.hpp:20,
from ./libtorrent/include/libtorrent/socket.hpp:51,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/asio/detail/epoll_reactor.hpp: In member function ‘int asio::detail::epoll_reactor<Own_Thread>::get_timeout()’:
./libtorrent/include/asio/detail/epoll_reactor.hpp:619: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/asio/detail/epoll_reactor.hpp:619: error: expected `;' before ‘minimum_wait_duration’
./libtorrent/include/asio/detail/epoll_reactor.hpp:624: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/asio/detail/epoll_reactor.hpp:624: error: expected `;' before ‘wait_duration’
./libtorrent/include/asio/detail/epoll_reactor.hpp:626: error: ‘wait_duration’ was not declared in this scope
./libtorrent/include/asio/detail/epoll_reactor.hpp:626: error: ‘minimum_wait_duration’ was not declared in this scope
./libtorrent/include/asio/detail/epoll_reactor.hpp:630: error: ‘minimum_wait_duration’ was not declared in this scope
./libtorrent/include/asio/detail/epoll_reactor.hpp:630: error: ‘boost::posix_time’ has not been declared
In file included from ./libtorrent/include/asio/impl/io_service.ipp:27,
from ./libtorrent/include/asio/io_service.hpp:547,
from ./libtorrent/include/asio/basic_io_object.hpp:20,
from ./libtorrent/include/asio/basic_socket_acceptor.hpp:20,
from ./libtorrent/include/asio/ip/tcp.hpp:20,
from ./libtorrent/include/libtorrent/socket.hpp:51,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/asio/detail/select_reactor.hpp: In member function ‘timeval* asio::detail::select_reactor<Own_Thread>::get_timeout(timeval&)’:
./libtorrent/include/asio/detail/select_reactor.hpp:438: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/asio/detail/select_reactor.hpp:438: error: expected `;' before ‘minimum_wait_duration’
./libtorrent/include/asio/detail/select_reactor.hpp:443: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/asio/detail/select_reactor.hpp:443: error: expected `;' before ‘wait_duration’
./libtorrent/include/asio/detail/select_reactor.hpp:445: error: ‘wait_duration’ was not declared in this scope
./libtorrent/include/asio/detail/select_reactor.hpp:445: error: ‘minimum_wait_duration’ was not declared in this scope
./libtorrent/include/asio/detail/select_reactor.hpp:449: error: ‘minimum_wait_duration’ was not declared in this scope
./libtorrent/include/asio/detail/select_reactor.hpp:449: error: ‘boost::posix_time’ has not been declared
In file included from ./libtorrent/include/asio/deadline_timer_service.hpp:26,
from ./libtorrent/include/asio/basic_deadline_timer.hpp:26,
from ./libtorrent/include/asio/deadline_timer.hpp:26,
from ./libtorrent/include/libtorrent/socket.hpp:54,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/asio/time_traits.hpp: At global scope:
./libtorrent/include/asio/time_traits.hpp:34: error: ‘posix_time’ is not a member of ‘boost’
./libtorrent/include/asio/time_traits.hpp:34: error: ‘posix_time’ is not a member of ‘boost’
./libtorrent/include/asio/time_traits.hpp:34: error: template argument 1 is invalid
In file included from ./libtorrent/include/asio/deadline_timer_service.hpp:27,
from ./libtorrent/include/asio/basic_deadline_timer.hpp:26,
from ./libtorrent/include/asio/deadline_timer.hpp:26,
from ./libtorrent/include/libtorrent/socket.hpp:54,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/asio/detail/deadline_timer_service.hpp: In member function ‘void asio::detail::deadline_timer_service<Time_Traits, Timer_Scheduler>::wait(asio::detail::deadline_timer_service<Time_Traits, Timer_Scheduler>::implementation_type&, asio::error_code&)’:
./libtorrent/include/asio/detail/deadline_timer_service.hpp:144: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/asio/detail/deadline_timer_service.hpp:144: error: expected `;' before ‘timeout’
./libtorrent/include/asio/detail/deadline_timer_service.hpp:147: error: ‘timeout’ was not declared in this scope
In file included from ./libtorrent/include/libtorrent/socket.hpp:54,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/asio/deadline_timer.hpp: At global scope:
./libtorrent/include/asio/deadline_timer.hpp:31: error: ‘posix_time’ is not a member of ‘boost’
./libtorrent/include/asio/deadline_timer.hpp:31: error: ‘posix_time’ is not a member of ‘boost’
./libtorrent/include/asio/deadline_timer.hpp:31: error: template argument 1 is invalid
./libtorrent/include/asio/deadline_timer.hpp:31: error: template argument 2 is invalid
./libtorrent/include/asio/deadline_timer.hpp:31: error: template argument 3 is invalid
./libtorrent/include/asio/deadline_timer.hpp:31: error: invalid type in declaration before ‘;’ token
In file included from ./libtorrent/include/libtorrent/socket.hpp:75,
from ./libtorrent/src/instantiate_connection.cpp:35:
./libtorrent/include/libtorrent/time.hpp:180: error: ‘boost::posix_time’ has not been declared
./libtorrent/include/libtorrent/time.hpp:180: error: ISO C++ forbids declaration of ‘time_duration’ with no type
./libtorrent/include/libtorrent/time.hpp:180: error: expected ‘;’ before ‘to_posix_duration’
./libtorrent/include/libtorrent/time.hpp:183: error: expected `;' before ‘}’ token
error: command 'gcc' failed with exit status 1
Code: Select all
tp@serverbox:~/build/deluge/1.0.0_RC$ uname -a
Linux serverbox 2.6.24-22-server #1 SMP Mon Nov 24 19:14:19 UTC 2008 i686 GNU/Linux
tp@serverbox:~/build/deluge/1.0.0_RC$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
That showed me more dependencies than the "Install from Source" page had. This is resolved
