Deluge in Leopard - building issue?

Support for Deluge on Apple Mac OS
juggleguy2
New User
New User
Posts: 3
Joined: Sat Nov 03, 2007 7:41 pm

Deluge in Leopard - building issue?

Post by juggleguy2 »

Hello,

I'm trying to build deluge in Leopard. Heres what is happening.

1) Installed Macports
2) Typed the following

Code: Select all

sudo port selfupdate

RESULT

MacPorts base version 1.520 installed
Downloaded MacPorts base version 1.520
The MacPorts installation is not outdated and so was not updated
selfupdate done!
3) typed the following

Code: Select all

sudo port install deluge

RESULT 

--->  Fetching boost-jam
--->  Verifying checksum(s) for boost-jam
--->  Extracting boost-jam
--->  Configuring boost-jam
--->  Building boost-jam
--->  Staging boost-jam into destroot
--->  Installing boost-jam 3.1.15_0
--->  Activating boost-jam 3.1.15_0
--->  Cleaning boost-jam
--->  Building boost with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_34_1" && make all " returned error 2
Command output: Makefile:2: *** missing separator.  Stop.

Error: The following dependencies failed to build: boost dbus-python25 dbus docbook-xml-4.1.2 xmlcatmgr expat libxml2 libiconv zlib pkgconfig xmlto docbook-xml-4.2 docbook-xsl getopt gettext libxslt dbus-glib glib2 py25-gobject python25 py25-numeric py25-gtk gtk2 atk cairo fontconfig freetype libpng render xrender jpeg pango Xft2 xorg-xproto xorg-util-macros tiff libglade2 py25-cairo py25-xdg py25-zlib
Error: Status 1 encountered during processing.
4.) So I saw in another thread that i needed the dependency called dbus-python25 so i did

Code: Select all

sudo port install dbus-python25
this installed a whole crapload of stuff by itself and took about 10 minutes.

5.) It finished and gave these errors at the end:

Code: Select all

Error: The following dependencies failed to build: dbus-glib py25-gobject python25 py25-numeric
Error: Status 1 encountered during processing.
6.)Typing

Code: Select all

sudo port install python25
RESULT

gave a bunch of errors :(

7.) Now we try again

Code: Select all

sudo port install deluge
RESULT
--->  Building boost with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_34_1" && make all " returned error 2
Command output: Makefile:2: *** missing separator.  Stop.

Error: The following dependencies failed to build: boost dbus-python25 dbus-glib py25-gobject py25-numeric py25-gtk gtk2 atk jpeg pango Xft2 xorg-xproto xorg-util-macros tiff libglade2 py25-cairo py25-xdg py25-zlib
Error: Status 1 encountered during processing.
UGH. Help?
mormolocu
New User
New User
Posts: 5
Joined: Sun Nov 04, 2007 10:52 am

Re: Deluge in Leopard - building issue?

Post by mormolocu »

Same errors here...

---> Building boost with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_34_1" && make all " returned error 2
Command output: Makefile:2: *** missing separator. Stop.

Error: The following dependencies failed to build: boost dbus-python25 dbus-glib py25-gtk gtk2 atk pango tiff libglade2
Error: Status 1 encountered during processing.
juggleguy2
New User
New User
Posts: 3
Joined: Sat Nov 03, 2007 7:41 pm

Re: Deluge in Leopard - building issue?

Post by juggleguy2 »

Alright so I'm not the only one. Possible fixes anyone?
hao

Re: Deluge in Leopard - building issue?

Post by hao »

Hi,

do a
1) "sudo port clean boost" first
2) then "sudo port install jam"
3) finally redo "sudo port install boost"

it worked for me...
juggleguy2
New User
New User
Posts: 3
Joined: Sat Nov 03, 2007 7:41 pm

Re: Deluge in Leopard - building issue?

Post by juggleguy2 »

I did the above commands and they worked to install boost.

Now when i do sudo port install deluge i still get errors:

Code: Select all

juggler:~ macpro$ sudo port install deluge
--->  Building dbus-glib with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_dbus-glib/work/dbus-glib-0.74" && make all " returned error 2
Command output: make  all-recursive
Making all in dbus
make  all-recursive
Making all in .
/bin/sh ../libtool --tag=CC   --mode=link gcc  -O2 -no-cpp-precomp -flat_namespace -undefined suppress -L/opt/local/lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -export-symbols-regex "^[^_].*" -version-info 3:0:1 -no-undefined -L/opt/local/lib -o libdbus-glib-1.la -rpath /opt/local/lib dbus-glib.lo dbus-gmain.lo dbus-gmarshal.lo dbus-gobject.lo dbus-gproxy.lo dbus-gtest.lo dbus-gvalue.lo dbus-gthread.lo dbus-gtype-specialized.lo dbus-gutils.lo dbus-gsignature.lo dbus-gvalue-utils.lo -L/opt/local/lib -ldbus-1   -L/opt/local/lib -lgobject-2.0 -lglib-2.0 -lintl -liconv   
rm -fr  .libs/libdbus-glib-1.exp
generating symbol list for `libdbus-glib-1.la'
/usr/bin/nm -p  .libs/dbus-glib.o .libs/dbus-gmain.o .libs/dbus-gmarshal.o .libs/dbus-gobject.o .libs/dbus-gproxy.o .libs/dbus-gtest.o .libs/dbus-gvalue.o .libs/dbus-gthread.o .libs/dbus-gtype-specialized.o .libs/dbus-gutils.o .libs/dbus-gsignature.o .libs/dbus-gvalue-utils.o  | sed -n -e 's/^.*[ 	]\([BCDEGRST][BCDEGRST]*\)[ 	][ 	]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libdbus-glib-1.exp
/usr/bin/grep -E -e "^[^_].*" ".libs/libdbus-glib-1.exp" > ".libs/libdbus-glib-1.expT"
mv -f ".libs/libdbus-glib-1.expT" ".libs/libdbus-glib-1.exp"
sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < .libs/libdbus-glib-1.exp > .libs/libdbus-glib-1-symbols.expsym
gcc -dynamiclib  -o .libs/libdbus-glib-1.2.1.0.dylib  .libs/dbus-glib.o .libs/dbus-gmain.o .libs/dbus-gmarshal.o .libs/dbus-gobject.o .libs/dbus-gproxy.o .libs/dbus-gtest.o .libs/dbus-gvalue.o .libs/dbus-gthread.o .libs/dbus-gtype-specialized.o .libs/dbus-gutils.o .libs/dbus-gsignature.o .libs/dbus-gvalue-utils.o  -L/opt/local/lib /opt/local/lib/libdbus-1.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib  -install_name  /opt/local/lib/libdbus-glib-1.2.dylib -Wl,-compatibility_version -Wl,4 -Wl,-current_version -Wl,4.0
ld: duplicate symbol _g_bit_nth_lsf in .libs/dbus-gmain.o and .libs/dbus-glib.o

collect2: ld returned 1 exit status
make[4]: *** [libdbus-glib-1.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: The following dependencies failed to build: dbus-python25 dbus-glib py25-gobject py25-numeric py25-gtk gtk2 atk jpeg pango Xft2 xorg-xproto xorg-util-macros tiff libglade2 py25-cairo py25-xdg py25-zlib
Error: Status 1 encountered during processing.

fancyclown
Member
Member
Posts: 25
Joined: Mon Oct 01, 2007 8:21 pm

Re: Deluge in Leopard - building issue?

Post by fancyclown »

I managed to install all the dependencies on leopard (thanks hao!) but when building deluge the fun stops :cry:

Code: Select all

--->  Fetching deluge
--->  Attempting to fetch deluge-0.5.5.tar.gz from http://download.deluge-torrent.org/index.php?dir=tarball/0.5.5/&file=
--->  Verifying checksum(s) for deluge
--->  Extracting deluge
--->  Configuring deluge
--->  Building deluge with target build
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_deluge/work/deluge-0.5.5" && /opt/local/bin/python2.5 setup.py build " returned error 1
Command output: copying src/_dbus.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/browser.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/common.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/core.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/deluge_stats.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/dgtk.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/dialogs.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/files.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/info.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/interface.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/ipc_manager.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/plugins.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/pref.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/tab_details.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/update.py -> build/lib.macosx-10.3-i386-2.5/deluge
copying src/wizard.py -> build/lib.macosx-10.3-i386-2.5/deluge
running build_ext
building 'deluge_core' extension
creating build/temp.macosx-10.3-i386-2.5
creating build/temp.macosx-10.3-i386-2.5/libtorrent
creating build/temp.macosx-10.3-i386-2.5/libtorrent/src
creating build/temp.macosx-10.3-i386-2.5/libtorrent/src/kademlia
creating build/temp.macosx-10.3-i386-2.5/src
gcc -DNDEBUG -D__DARWIN_UNIX03 -I/opt/local/include -I/opt/local/include/boost -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/opt/local/include/python2.5 -c libtorrent/src/alert.cpp -o build/temp.macosx-10.3-i386-2.5/libtorrent/src/alert.o -Wno-missing-braces -DHAVE_INCLUDE_LIBTORRENT_ASIO____ASIO_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1 -DHAVE_PTHREAD=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_SSL=1 -DNDEBUG=1 -O2
gcc -DNDEBUG -D__DARWIN_UNIX03 -I/opt/local/include -I/opt/local/include/boost -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/opt/local/include/python2.5 -c libtorrent/src/assert.cpp -o build/temp.macosx-10.3-i386-2.5/libtorrent/src/assert.o -Wno-missing-braces -DHAVE_INCLUDE_LIBTORRENT_ASIO____ASIO_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1 -DHAVE_PTHREAD=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_SSL=1 -DNDEBUG=1 -O2
gcc -DNDEBUG -D__DARWIN_UNIX03 -I/opt/local/include -I/opt/local/include/boost -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/opt/local/include/python2.5 -c libtorrent/src/bt_peer_connection.cpp -o build/temp.macosx-10.3-i386-2.5/libtorrent/src/bt_peer_connection.o -Wno-missing-braces -DHAVE_INCLUDE_LIBTORRENT_ASIO____ASIO_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_SSL_STREAM_HPP=1 -DHAVE_INCLUDE_LIBTORRENT_ASIO_IP_TCP_HPP=1 -DHAVE_PTHREAD=1 -DTORRENT_USE_OPENSSL=1 -DHAVE_SSL=1 -DNDEBUG=1 -O2
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp: In member function 'bool asio::detail::posix_fd_set_adapter::is_set(asio::detail::socket_type) const':
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp:47: error: invalid conversion from 'const fd_set*' to 'fd_set*'
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp:47: error:   initializing argument 2 of 'int __darwin_fd_isset(int, fd_set*)'
error: command 'gcc' failed with exit status 1

Error: Status 1 encountered during processing.
And another thing: does anyone know when deluge 0.5.6.2 is going to be included in macports or a way to install that version instead of the old one? 0.5.5 is banned on a lot of trackers now so I really need 0.5.6.2.
zaxxon
New User
New User
Posts: 9
Joined: Thu Nov 01, 2007 10:13 am

Re: Deluge in Leopard - building issue?

Post by zaxxon »

Hi,

after installing all support-libraries via port, I got the same error-messages when building deluge with port.

So I went and fetched svn 0.5.6.2 and was able to build it after some magic with the path to libraries and building the deluge.so from the command line instead of make I got my binary.

Now I can't start it, at the moment it complains about
"
sh-3.2# deluge
Traceback (most recent call last):
File "/usr/bin/deluge", line 42, in <module>
import deluge
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/deluge/__init__.py", line 42, in <module>
locale.bindtextdomain(APP, DIR)
AttributeError: 'module' object has no attribute 'bindtextdomain'
"
anyone got an idea?


I'm also trying to get 0.6 svn to compile, but it gives the same errors as 0.5 from port

"
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp: In member function 'bool asio::detail::posix_fd_set_adapter::is_set(asio::detail::socket_type) const':
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp:47: error: invalid conversion from 'const fd_set*' to 'fd_set*'
./libtorrent/include/libtorrent/asio/detail/posix_fd_set_adapter.hpp:47: error: initializing argument 2 of 'int __darwin_fd_isset(int, fd_set*)'
error: command 'gcc' failed with exit status 1
"

what could this be?
jhf
New User
New User
Posts: 3
Joined: Tue Nov 20, 2007 11:46 pm

Re: Deluge in Leopard - building issue?

Post by jhf »

This appears to be a bug in libtorrent: http://code.rasterbar.com/libtorrent/ticket/192

The older v0.11.7 of libtorrent in Macports builds just fine though (without any patches from MacPorts).
zaxxon
New User
New User
Posts: 9
Joined: Thu Nov 01, 2007 10:13 am

Re: Deluge in Leopard - building issue?

Post by zaxxon »

Builds like a charm, very cool!

now I have deluge and deluged, and no FAQ ;-) Where can you point me so I understand the interaction between the daemon and the client-binary?

thanks!
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Deluge in Leopard - building issue?

Post by markybob »

zaxxon wrote:Builds like a charm, very cool!

now I have deluge and deluged, and no FAQ ;-) Where can you point me so I understand the interaction between the daemon and the client-binary?

thanks!
there are none. users arent supposed to be using the 0.6 branch. that's for developers only. users should use the 0.5 branch until 0.6 is released
Post Reply