pkgsrc-Bugs archive

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

pkg/40281: net/avahi doesn't build on Mac OS X 10.5



>Number:         40281
>Category:       pkg
>Synopsis:       net/avahi doesn't build on Mac OS X 10.5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 28 12:55:00 +0000 2008
>Originator:     Torsten Harenberg
>Release:        Mac OS X 10.5
>Organization:
Bergische Universität Wuppertal
>Environment:
Darwin torsten-harenbergs-macbook.local 9.6.0 Darwin Kernel Version 9.6.0: Mon 
Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386


>Description:
net/avahi stops building on Mac OS X 10.5 with:

 gcc -DHAVE_CONFIG_H -I. -I.. -no-cpp-precomp -isystem /usr/include 
-I/Volumes/dump/pkgsrc/net/avahi/work/.buildlink/include 
-I/Volumes/dump/pkgsrc/net/avahi/work/.x11-buildlink/include 
-I/Volumes/dump/pkgsrc/net/avahi/work/.x11-buildlink/include/freetype2 
"-DDEBUG_TRAP=__asm__(\"int \$3\")" -pipe -O2 -std=c99 -Wall -W -Wextra 
-pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement 
-Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes 
-Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith 
-Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -fPIC 
-D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -MT libavahi_core_la-socket.lo -MD -MP -MF 
.deps/libavahi_core_la-socket.Tpo -c socket.c  -fno-common -DPIC -o 
.libs/libavahi_core_la-socket.o
socket.c: In function 'avahi_mdns_mcast_join_ipv4':
socket.c:113: error: storage size of 'mreq' isn't known
socket.c:135: error: 'IP_DROP_MEMBERSHIP' undeclared (first use in this 
function)
socket.c:135: error: (Each undeclared identifier is reported only once
socket.c:135: error: for each function it appears in.)
socket.c:137: error: 'IP_ADD_MEMBERSHIP' undeclared (first use in this function)
socket.c:113: warning: unused variable 'mreq'
socket.c: In function 'avahi_mdns_mcast_join_ipv6':
socket.c:146: error: storage size of 'mreq6' isn't known
socket.c:146: warning: unused variable 'mreq6'
socket.c: In function 'ipv4_pktinfo':
socket.c:227: warning: unused variable 'yes'
socket.c:226: warning: unused parameter 'fd'
socket.c: In function 'ipv6_pktinfo':
socket.c:273: warning: unused variable 'yes'
socket.c:272: warning: unused parameter 'fd'
socket.c: In function 'avahi_open_socket_ipv4':
socket.c:323: error: 'IP_MULTICAST_TTL' undeclared (first use in this function)
socket.c:329: error: 'IP_TTL' undeclared (first use in this function)
socket.c:335: error: 'IP_MULTICAST_LOOP' undeclared (first use in this function)
socket.c:557:2: warning: #warning is a GCC extension
socket.c:557:2: warning: #warning "FIXME: We need some code to set the outgoing 
interface/local address here if IP_PKTINFO/IP_MULTICAST_IF is not available"
socket.c: In function 'avahi_send_dns_packet_ipv4':
socket.c:471: warning: unused parameter 'interface'
socket.c:473: warning: unused parameter 'src_address'
socket.c: In function 'avahi_send_dns_packet_ipv6':
socket.c:575: warning: implicit declaration of function 'CMSG_SPACE'
socket.c:575: error: invalid application of 'sizeof' to incomplete type 'struct 
in6_pktinfo' 
socket.c:603: warning: implicit declaration of function 'CMSG_LEN'
socket.c:603: error: invalid application of 'sizeof' to incomplete type 'struct 
in6_pktinfo' 
socket.c:608: error: 'IPV6_PKTINFO' undeclared (first use in this function)
socket.c:613: error: dereferencing pointer to incomplete type
socket.c:616: error: dereferencing pointer to incomplete type
socket.c: In function 'avahi_recv_dns_packet_ipv4':
socket.c:714: error: 'IP_TTL' undeclared (first use in this function)
socket.c:629: warning: unused parameter 'ret_dst_address'
socket.c: In function 'avahi_recv_dns_packet_ipv6':
socket.c:855: error: 'IPV6_HOPLIMIT' undeclared (first use in this function)
socket.c:864: error: 'IPV6_PKTINFO' undeclared (first use in this function)
socket.c:868: error: dereferencing pointer to incomplete type
socket.c:871: error: dereferencing pointer to incomplete type
gnumake[2]: *** [libavahi_core_la-socket.lo] Error 1
gnumake[1]: *** [all-recursive] Error 1
gnumake: *** [all] Error 2
*** Error code 2

Other OSes seem also to be affected: http://bugs.gentoo.org/184008
>How-To-Repeat:
use current pkgsrc and try to compile net/avahi on a Mac OS 10.5 machine:

cd .../pkgsrc/net/avahi
bmake install
>Fix:



Home | Main Index | Thread Index | Old Index