compile error libnih 1.0.3 with dbus 1.2.24

Bug #708198 reported by GR
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
libnih
New
Undecided
Unassigned

Bug Description

When the user attempts to compile libnih 1.0.3 using dbus 1.2.24, the make process returns an error:

make[2]: Entering directory `/source/libnih-1.0.3/nih-dbus-tool'
  CC type.o
type.c: In function 'type_const':
type.c:85: error: 'DBUS_TYPE_UNIX_FD' undeclared (first use in this function)
type.c:85: error: (Each undeclared identifier is reported only once
type.c:85: error: for each function it appears in.)
type.c: In function 'type_of':
type.c:143: error: 'DBUS_TYPE_UNIX_FD' undeclared (first use in this function)

Steps To Reproduce:
1. Update to DBus 1.2.24
2. run ./configure on libnih 1.0.3 sources
3. run make
4. Observe compile error

Note:
DBUS_TYPE_UNIX_FD is no longer declared in dbus/dbus-protocol.h
See Reference:
http://lists.freedesktop.org/archives/dbus/2010-April/012509.html

However, in dbus 1.2.24 dbus_message_append_unix_file_descriptor also does not appear to be defined.
the following may be relevant functions in dbus-connection.h:

dbus_bool_t dbus_connection_get_unix_fd (DBusConnection *connection, int *fd);

int dbus_watch_get_unix_fd (DBusWatch *watch);

Revision history for this message
Chris Angelico (rosuav-a) wrote :

I'm experiencing this too, attempting to build on a Debian 6.0.3 system which has dbus 1.2.24 installed by default. Is there a known workaround?

Revision history for this message
SwaJime (john-swajime) wrote :

Still not fixed ...
Attempting to install on Red Hat Enterprise 6.5 Santiago with dbus 1.2.24.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.