/!\ 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 avahi.

Failed to load gdbm python module

Stage: configure

Failed to load gdbm python module

Solution:

  • Link the actual gdbm.so module to the target tree.

# ln -s /usr/lib/python2.4/lib-dynload/gdbm.so /opt/gnome2/lib/python2.4/lib-dynload/
  • I don't know if this is the smartest one but it works

No package 'qt-mt' found

Stage: configure

checking for QT3... configure: error: Package requirements ( qt-mt >= 3.0.0 ) were not met:
No package 'qt-mt' found

Solution:

Add to your ~/.jhbuildrc file:

module_autogenargs['avahi'] = '--disable-qt3'

or run configure with the ----disable-qt3 argument

No package 'QtCore' found

Stage: configure

checking for QT4... configure: error: Package requirements ( QtCore >= 4.0.0 ) were not met:
No package 'QtCore' found

Solution:

Add to your ~/.jhbuildrc file:

module_autogenargs['avahi'] = '--disable-qt4'

or run configure with the ----disable-qt4 argument

Error in dbus-protocol.c

Stage: make

In file included from ../avahi-core/core.h:32, from dbus-protocol.c:53:
../avahi-common/defs.h:292: warning: comma at end of enumerator list
../avahi-common/defs.h:297: warning: comma at end of enumerator list
dbus-protocol.c: In function ‘dbus_connect’:
dbus-protocol.c:1073: error: ‘DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT’ undeclared (first use in this function)
dbus-protocol.c:1073: error: (Each undeclared identifier is reported only once
dbus-protocol.c:1073: error: for each function it appears in.)
dbus-protocol.c:1085: warning: cast discards qualifiers from pointer target type

Solution:

$ cd ~/cvs/gnome2/avahi/avahi-daemon/
wget http://lathiat.net/avahi-dbus-changes.diff
$ patch < avahi-dbus-changes.diff

error: Could not find Python module gtk

Stage: configure

checking for python module gtk... no
configure: error: Could not find Python module gtk

Solution: Add to your ~/.jhbuildrc file:

module_autogenargs['avahi'] = '--disable-python'

or run configure with the --disable-python argument

error: Avahi says "Daemon not running"

For instance:

$ avahi-browse -a
Failed to create client object: Daemon not running

You need to make this change so that D-Bus can access the correct files to store its state:

$ cd <prefix>/var/run/
$ rm -r dbus
$ ln -s /var/run/dbus dbus

}}}

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