pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43815: net/avahi fails to build on Linux [patch]

>Number:         43815
>Category:       pkg
>Synopsis:       net/avahi fails to build on Linux [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 30 11:40:00 +0000 2010
>Originator:     Aleksey Cheusov
>Release:        Linux 2.6.18-194.el5xen
<organization of PR author (multiple lines)>
System: Linux 2.6.18-194.el5xen #1 SMP Fri Apr 2 
16:16:54 EDT 2010 i686 i686 i386 GNU/Linux
Architecture: i686

net/avahi fails on my Linux system:

     CC     avahi_daemon-sd-daemon.o
   sd-daemon.c: In function 'sd_notify':
   sd-daemon.c:356: error: 'SOCK_CLOEXEC' undeclared (first use in this 
   sd-daemon.c:356: error: (Each undeclared identifier is reported only once
   sd-daemon.c:356: error: for each function it appears in.)
   gmake[2]: *** [avahi_daemon-sd-daemon.o] Error 1

This is because my glibc and Kernel is not modern enough for this
version of avahi.

Try to build avahi on Linux/glibc<=2.7
--- avahi-daemon/sd-daemon.c.orig       2010-07-13 00:45:20.000000000 +0000
+++ avahi-daemon/sd-daemon.c
@@ -41,6 +41,10 @@
 #include <stdarg.h>
 #include <stdio.h>
+#if !defined(SOCK_CLOEXEC) && !defined(DISABLE_SYSTEMD)
 #include "sd-daemon.h"
 int sd_listen_fds(int unset_environment) {

Home | Main Index | Thread Index | Old Index