Re: Avahi compilation fails.

Peter <[email protected]>
Newsgroups gmane.comp.gnome.garnome
Message-ID <[email protected]>
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
+++++

-- 
garnome-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/garnome-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.