[avahi] Compilation issue

Lennart Poettering lennart at poettering.net
Mon Oct 25 14:34:30 PDT 2010


On Thu, 21.10.10 11:47, Gautham (Gautham at mindtree.com) wrote:

> Hello
> I'd like to run avahi just to register a static service on the device. The device is running montavista linux (2.6.18 kernel). I'm using 0.6.28 verson of avahi source.
> 
> While configuring I'm disabling the following options.
> 
> ./configure --disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 --disable-gdbm --disable-python --disable-pygtk --disable-python-dbus --disable-glib --disable-gobject --disable-nls --disable-dbus
> 
> The .configure is successful & then I run make. I get the following error while running make.
> 
> 
> sd-daemon.c: In function âsd_notifyâ:
> sd-daemon.c:327: warning: unused parameter âunset_environmentâ [-Wunused-parameter]
> sd-daemon.c:327: warning: unused parameter âstateâ [-Wunused-parameter]
> sd-daemon.c: In function âtouchâ:
> sd-daemon.c:445: error: âO_CLOEXECâ undeclared (first use in this function)
> sd-daemon.c:445: error: (Each undeclared identifier is reported only once
> sd-daemon.c:445: error: for each function it appears in.)
> make[2]: *** [avahi_daemon-sd-daemon.o] Error 1
> make[2]: Leaving directory `/root/gautham/avahi-0.6.28/avahi-daemon'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/gautham/avahi-0.6.28'
> make: *** [all] Error 2
> 
> Any clues?

This happens if you have a very old glibc. This is fixed in Avahi git.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the avahi mailing list