Re: Avahi compilation fails.
- From: Peter <sw98234 hotmail com>
- To: garnome-list gnome org
- Subject: Re: Avahi compilation fails.
- Date: Fri, 24 Nov 2006 11:42:57 +0000 (UTC)
On Fri, 24 Nov 2006 11:58:46 +0530, Surya Kiran Gullapalli wrote:
> Garnome 2.16.2:
>
> Avahi compilation fails with the error
> =============
> 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.)
> ============
>
> I've checked the source code, and it says
> ===========
> #if (DBUS_VERSION_MAJOR == 0) && (DBUS_VERSION_MINOR >= 60)
> DBUS_NAME_FLAG_DO_NOT_QUEUE,
> #else
> DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT,
> #endif
> ==========
>
> With Garnome-2.16.2 Dbus version is 1.0.1 and so avahi fails.
>
> HOw to get rid of this one??
>
> Surya
Yeah, I think I had that outside of garnome too. Try EITHER:
#if (DBUS_VERSION_MAJOR >= 1) || (DBUS_VERSION_MAJOR == 0 && DBUS_VERSION_MINOR >= 60)
OR remove the lines
#if ...
#else ... to the
#endif
and just leave the definition you need.
DBUS_NAME_FLAG_DO_NOT_QUEUE,
Peter
+++++
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]