/!\ This page is not a bug tracker. If you run into a problem not listed here, please file a bug.
When entering a new problem, please enter it above the others, and follow the format of the JhbuildIssues/JhbuildIssueTemplate for new problems/modules.

List of common errors for the module dbus.

Error - /bin/sh: no: command not found

Stage: Build

 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/lib/qt3/include -DDBUS_API_SUBJECT_TO_CHANGE=1 -g -O2 -MT message.lo -MD -MP -MF 
 .deps/message.Tpo -c message.cpp  -fPIC -DPIC -o .libs/message.o
 no connection.h > connection.moc
 /bin/sh: no: command not found
 make[2]: *** [connection.moc] Error 127
 make[2]: Leaving directory `/home/build3/cvs/gnome2/dbus/qt'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/build3/cvs/gnome2/dbus'
 make: *** [all] Error 2
 *** error during stage build of dbus: could not build module *** [1/94]

Solution:

locate moc
cd dbus/qt
vi Makefile
QT_MOC = no

Then edit the Makefile and replace QT_MOC = no by QT_MOC = <moc path returned by locate command>

install: can't change permissions for `//usr/lib/monodoc/sources': Operation not permitted

Stage: Install

Making install in doc
make[2]: Entering directory `/home/amd/code/microtinder/cvs/dbus/mono/doc'
make[3]: Entering directory `/home/amd/code/microtinder/cvs/dbus/mono/doc'
make[3]: Nothing to be done for `install-exec-am'.
install -d -m 755 /`monodoc --get-sourcesdir`
make[3]: Leaving directory `/home/amd/code/microtinder/cvs/dbus/mono/doc'
make[2]: Leaving directory `/home/amd/code/microtinder/cvs/dbus/mono/doc'
make[1]: Leaving directory `/home/amd/code/microtinder/cvs/dbus/mono'
install: can't change permissions for `//usr/lib/monodoc/sources': Operation not permitted
make[3]: *** [install-data-local] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

Cause: ??

Solution:

No solution yet, https://bugs.freedesktop.org/show_bug.cgi?id=2654 had a patch which should have fixed it, but it's missing at the moment. Same problem is with the howl package

Running dbus & hal from jhbuild

See http://uwstopia.nl/blog/2005/08/d-bus-hal-g-v-m-in-jhbuild

undefined reference to `g_intern_*`

Stage: Build

gcc -g -O2 -march=athlon-tbird -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wfloat-equal -Wsign-compare -o .libs/statemachine-client statemachine-client.o sm-marshal.o -pthread  ../../../glib/.libs/libdbus-glib-1.so -L/opt/gnome2/lib /opt/gnome2/lib/libgtk-x11-2.0.so /opt/gnome2/lib/libgdk-x11-2.0.so /opt/gnome2/lib/libatk-1.0.so /opt/gnome2/lib/libgdk_pixbuf-2.0.so -lm /opt/gnome2/lib/libpangocairo-1.0.so /opt/gnome211/lib/libpango-1.0.so /opt/gnome2/lib/libcairo.so /opt/gnome2/lib/libgobject-2.0.so /opt/gnome2/lib/libgmodule-2.0.so -ldl /opt/gnome2/lib/libgthread-2.0.so /opt/gnome2/lib/libglib-2.0.so -lnsl -Wl,--rpath -Wl,/opt/gnome211/lib
/opt/gnome2/lib/libgtk-x11-2.0.so: undefined reference to `g_intern_static_string'
/opt/gnome2/lib/libgtk-x11-2.0.so: undefined reference to `g_intern_string'
collect2: ld returned 1 exit status
make[7]: *** [statemachine-client] Error 1
make[7]: Leaving directory `/multimedia/cvs/gnome2/dbus/glib/examples/statemachine'
make[6]: *** [all] Error 2

Cause: Two functions cannot be linked against

API change?

Solution:

See Bug gnomebug:320650

Wipe out a lot of installed libs and install them again.

Apps cannot find /opt/gnome/var/run/dbus/system_bus_socket (the system bus)

Some programs need to find the system bus, not just the session bus. If your system already has a recent-enough D-Bus system bus running, it may be possible for apps compiled with jhbuild to simply contact that bus, instead of a self-compiled one.

The error message looks like this:

(mutter:12345): GdmUser-WARNING **: Failed to connect to the D-Bus daemon: Failed to connect to socket /opt/gnome/var/run/dbus/system_bus_socket: No such file or directory

(mutter:12345): GdmUser-WARNING **: Couldn't connect to system bus: Failed to connect to socket /opt/gnome/var/run/dbus/system_bus_socket: No such file or directory

You will want to put this in your .jhbuildrc:

os.environ["DBUS_SYSTEM_BUS_ADDRESS"] = "unix:path=/var/run/dbus/system_bus_socket"

Make sure to point that path to the correct location from your distribution.


CategoryJhbuildIssues

Projects/Jhbuild/Issues/dbus (last edited 2013-11-25 16:29:21 by WilliamJonMcCann)