Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175333 - net-dns/avahi-0.6.18 fails to build (tries to use inotify)
Summary: net-dns/avahi-0.6.18 fails to build (tries to use inotify)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
: 175443 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-20 10:42 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2007-04-22 13:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-04-20 10:42:48 UTC
In file included from main.c:48:
inotify-nosys.h:15:24: error: asm/unistd.h: No such file or directory
simple-protocol.c: In function 'avahi_new_internal':In file included from main.c:48:
inotify-nosys.h:28: error: expected ':', ',', ';', '}' or '__attribute__' before '__flexarr'

../avahi-common/malloc.h:50: warning: function 'avahi_new_internal' can never be inlined because it is suppressed using -fno-inlineinotify-nosys.h:155:3:
error: #error "Unsupported architecture!"
inotify-nosys.h:158:3: error: #error "Unsupported architecture!"
inotify-nosys.h:161:3: error: #error "Unsupported architecture!"
inotify-nosys.h: In function 'inotify_init':
inotify-nosys.h:167: error: '__NR_inotify_init' undeclared (first use in this function)
inotify-nosys.h:167: error: (Each undeclared identifier is reported only once
inotify-nosys.h:167: error: for each function it appears in.)
inotify-nosys.h: In function 'inotify_add_watch':
inotify-nosys.h:172: error: '__NR_inotify_add_watch' undeclared (first use in this function)
inotify-nosys.h: In function 'inotify_rm_watch':
inotify-nosys.h:177: error: '__NR_inotify_rm_watch' undeclared (first use in this function)
simple-protocol.c: In function 'simple_protocol_setup':
../avahi-common/malloc.h:50: warning: inlining failed in call to 'avahi_new_internal': function not inlinable
simple-protocol.c:455: warning: called from here
gmake[2]: *** [avahi_daemon-main.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
simple-protocol.c: In function 'client_new':
../avahi-common/malloc.h:50: warning: inlining failed in call to 'avahi_new_internal': function not inlinable
simple-protocol.c:135: warning: called from here
gmake[2]: Leaving directory `/var/tmp/portage/net-dns/avahi-0.6.18/work/avahi-0.6.18/avahi-daemon'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/net-dns/avahi-0.6.18/work/avahi-0.6.18'
gmake: *** [all] Error 2

!!! ERROR: net-dns/avahi-0.6.18 failed.

0.6.17 works fine.

If nobody has a ready solution, I'll be looking for one tomorrow (hopefully) and then see to send it to both upstream and here.
In the mean time, dekeywording .18 will make sure that .17 is not deleted out of the blue leaving x86-fbsd uncovered.

Thanks,
Diego
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2007-04-21 15:16:57 UTC
*** Bug 175443 has been marked as a duplicate of this bug. ***
Comment 2 Sven Wegener gentoo-dev 2007-04-21 15:33:41 UTC
The inotify-nosys.h hack avahi uses is ugly. Either a system supports inotify or it does not. There should be no such thing as "Oh, the system doesn't support it, let's try to be smart and use our own header."
Comment 3 Sven Wegener gentoo-dev 2007-04-21 18:00:49 UTC
I added a patch. Diego, Jeroen, could you give 0.6.18 another try?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2007-04-21 20:46:01 UTC
(In reply to comment #3)
> I added a patch. Diego, Jeroen, could you give 0.6.18 another try?

It builds and works fine now.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-04-21 22:16:39 UTC
Fine here too, thanks Sven!
Comment 6 Sven Wegener gentoo-dev 2007-04-22 13:53:43 UTC
I re-added the ~x86-fbsd keyword.