installation problem: dbus

Support for Deluge on Apple Mac OS
Post Reply
tomplam
New User
New User
Posts: 5
Joined: Thu Apr 03, 2008 9:44 am

installation problem: dbus

Post by tomplam »

I am attempting to install deluge, all was going well until it reaches 'dbus'. I get the following error :

Code: Select all

macbook:~ tomplumstead$ sudo port clean dbus
Password:
--->  Cleaning dbus
macbook:~ tomplumstead$ sudo port install dbus
--->  Fetching dbus
--->  Verifying checksum(s) for dbus
--->  Extracting dbus
--->  Applying patches to dbus
--->  Configuring dbus
--->  Building dbus 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/work/dbus-1.1.20" && make all " returned error 2
Command output: /usr/bin/gcc-4.0 -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -o dbus-daemon-launch-helper activation-helper-bin.o config-loader-expat.o config-parser-common.o config-parser-trivial.o desktop-file.o utils.o activation-helper.o  -L/opt/local/lib /opt/local/lib/libexpat.dylib ../dbus/.libs/libdbus-convenience.a  
Making all in doc
make[2]: Nothing to be done for `all'.
Making all in tools
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I..   -DDBUS_LOCALEDIR=\"/opt/local/share/locale\" -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\"/opt/local/bin\" -DDBUS_MACHINE_UUID_FILE=\""/opt/local/var/lib/dbus/machine-id"\"  -I/opt/local/include  -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT dbus-print-message.o -MD -MP -MF .deps/dbus-print-message.Tpo -c -o dbus-print-message.o dbus-print-message.c
mv -f .deps/dbus-print-message.Tpo .deps/dbus-print-message.Po
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I..   -DDBUS_LOCALEDIR=\"/opt/local/share/locale\" -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\"/opt/local/bin\" -DDBUS_MACHINE_UUID_FILE=\""/opt/local/var/lib/dbus/machine-id"\"  -I/opt/local/include  -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT dbus-send.o -MD -MP -MF .deps/dbus-send.Tpo -c -o dbus-send.o dbus-send.c
mv -f .deps/dbus-send.Tpo .deps/dbus-send.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common  -L/opt/local/lib -o dbus-send dbus-print-message.o dbus-send.o ../dbus/libdbus-1.la  
mkdir .libs
/usr/bin/gcc-4.0 -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -o .libs/dbus-send dbus-print-message.o dbus-send.o  -L/opt/local/lib ../dbus/.libs/libdbus-1.dylib 
creating dbus-send
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I..   -DDBUS_LOCALEDIR=\"/opt/local/share/locale\" -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\"/opt/local/bin\" -DDBUS_MACHINE_UUID_FILE=\""/opt/local/var/lib/dbus/machine-id"\"  -I/opt/local/include  -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT dbus-monitor.o -MD -MP -MF .deps/dbus-monitor.Tpo -c -o dbus-monitor.o dbus-monitor.c
dbus-monitor.c: In function 'profile_print_with_attrs':
dbus-monitor.c:101: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type '__darwin_suseconds_t'
dbus-monitor.c: In function 'print_message_profile':
dbus-monitor.c:171: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type '__darwin_suseconds_t'
mv -f .deps/dbus-monitor.Tpo .deps/dbus-monitor.Po
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0  -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common  -L/opt/local/lib -o dbus-monitor dbus-monitor.o dbus-print-message.o ../dbus/libdbus-1.la  
/usr/bin/gcc-4.0 -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -o .libs/dbus-monitor dbus-monitor.o dbus-print-message.o  -L/opt/local/lib ../dbus/.libs/libdbus-1.dylib 
creating dbus-monitor
/usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I..   -DDBUS_LOCALEDIR=\"/opt/local/share/locale\" -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\"/opt/local/bin\" -DDBUS_MACHINE_UUID_FILE=\""/opt/local/var/lib/dbus/machine-id"\"  -I/opt/local/include  -O2 -no-cpp-precomp -flat_namespace -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wdeclaration-after-statement -fno-common -MT dbus-launch.o -MD -MP -MF .deps/dbus-launch.Tpo -c -o dbus-launch.o dbus-launch.c
dbus-launch.c: In function 'main':
dbus-launch.c:969: error: 'xdisplay' undeclared (first use in this function)
dbus-launch.c:969: error: (Each undeclared identifier is reported only once
dbus-launch.c:969: error: for each function it appears in.)
dbus-launch.c:1086: warning: unused variable 'ret2'
make[2]: *** [dbus-launch.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
As you can see I have tried clean dbus then install again but I get the same error. I can usually workaround errors like this one but I think I am a little out of my depth!

Tom
j32
New User
New User
Posts: 6
Joined: Thu Mar 27, 2008 4:29 pm

Re: installation problem: dbus

Post by j32 »

I have the same error and clean doesn't help :(

This is my second try with installing Deluge on Leopard... and I surrender :cry:

Until there is not a support for Mac, Deluge would be only in dream mac's users.

I am back to Transmission.
User avatar
oriain
Member
Member
Posts: 18
Joined: Wed Mar 19, 2008 8:20 pm
Location: Vancouver, WA

Re: installation problem: dbus

Post by oriain »

No, deluge on Mac is not just a dream. I use it fine on my Mac, but I am still running Tiger. Problems with software will always exist; people just have to try to work around it.

Just to make sure, you have x11 installed, right? Did you update the ports to make sure you were building the latest? I googled your error and some others (but not many) have been having problems with this as well.

http://bugs.gentoo.org/show_bug.cgi?id=209175

There seems to be a patch...
http://kambing.ui.edu/gentoo-portage/sy ... null.patch
j32
New User
New User
Posts: 6
Joined: Thu Mar 27, 2008 4:29 pm

Re: installation problem: dbus

Post by j32 »

Thanks for answer :)

Of course I have installed first X11-2.1.4 (with restarting Mac), xCode 3.0 and X11SDK (from xCode 3.0 pack). Than I installed MacPorts 1.6 (for Leopard) and made port -v selfupdate. Everything as root.

Can you explain, how to patch dbus? It is important, that we says about dbus-1.1.20?
oriain wrote:No, deluge on Mac is not just a dream. I use it fine on my Mac, but I am still running Tiger. Problems with software will always exist; people just have to try to work around it.

Just to make sure, you have x11 installed, right? Did you update the ports to make sure you were building the latest? I googled your error and some others (but not many) have been having problems with this as well.

http://bugs.gentoo.org/show_bug.cgi?id=209175

There seems to be a patch...
http://kambing.ui.edu/gentoo-portage/sy ... null.patch
User avatar
oriain
Member
Member
Posts: 18
Joined: Wed Mar 19, 2008 8:20 pm
Location: Vancouver, WA

Re: installation problem: dbus

Post by oriain »

Well, now that you mention it, the patch was for 1.1.4, not 1.1.20. But another bug report I saw online was for 1.1.20...so maybe the patch somehow never made it to the updated version. Of course this is just speculation, as I don't work for anybody working with dbus development. The workaround dealt with editing dbus-launch.c or make.conf before compilation. Only the problem is that Macports fetches, compiles/installs, and cleans everything automatically for you. So I am not quite sure how to do it locally. Also, saying you did manage to download the source from freedesktop.org and compile it on your machine, Macports probably wouldn't be able to update it for you in the future. Sorry I don't know enough to help you. Hopefully someone reading this has more knowledge than I.

http://www.nabble.com/Bug-in-dbus-1.1.2 ... 14092.html

If someone who knows Macports better could explain how to get the source by itself, you could add the workaround and then compile it.
neurophyre
New User
New User
Posts: 5
Joined: Wed Sep 26, 2007 8:49 am

Re: installation problem: dbus

Post by neurophyre »

Make sure to do 'sudo port sync' to get the latest version of the portfiles. I think dbus was recently updated.
Post Reply