[avahi] client-browse-services.c fails: "Unexpected DBUS error occured"

Nicholas Andrews tar.bz2 at gmail.com
Thu Jun 8 08:18:43 PDT 2006


avahi-0.6.10, configured with all defaults except no QT bindings, no
mono, and no python.

dbus-0.61, default configuration

libdaemon-0.10, default configuration

On debian stable, I compiled the example with the following command:

gcc client-browse-services.c `pkg-config avahi-client --cflags --libs`

There were no warnings and no errors. When I run the executable, I get
the following error: "Failed to create client: An unexpected DBUS
error occured"

Both dbus-daemon and dbus-start appear to be running, however I don't
see the avahi-daemon. If I try to start it again with "avahi-daemon"
it fails with:

dbus_bus_get(): Failed to connect to socket
/usr/local/var/run/dbus/system_bus_socket: No such file or directory
WARNING: Failed to contact D-BUS daemon.

Am I missing a configuration step?

Cheers!

-Nick


More information about the avahi mailing list