[avahi] avahi 0.6.16 on macos 10.3.9

Julien TOUCHE julien.touche at lycos.com
Sun Jan 28 07:41:55 PST 2007


Hi

i've encountered a compile error on osx.


  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. "-DDEBUG_TRAP=__asm__(\"int
\$3\")" -I/opt/local/include -std
=c99 -Wall -W -pedantic -pipe -Wformat -Wfloat-equal
-Wmissing-declarations -Wmissing-prototypes -Ws
trict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow
-Wendif-labels -Wpointer-arith -Wbad-
function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -c dns.c
  -fno-common -DPIC -o .libs
/libavahi_core_la-dns.o
In file included from dns.c:31:
/usr/include/netinet/in.h:255: error: parse error before "in_addr_t"
/usr/include/netinet/in.h:312: error: parse error before "u_char"
/usr/include/netinet/in.h:313: error: ISO C forbids data definition with
no type or storage class
/usr/include/netinet/in.h:314: error: parse error before "sin_port"
/usr/include/netinet/in.h:314: error: ISO C forbids data definition with
no type or storage class
/usr/include/netinet/in.h:317: error: parse error before '}' token
/usr/include/netinet/in.h:329: error: field `ip_dst' has incomplete type
/usr/include/netinet/in.h:398: error: field `imr_multiaddr' has
incomplete type
/usr/include/netinet/in.h:399: error: field `imr_interface' has
incomplete type
dns.c: In function `avahi_rdata_parse':
dns.c:822: warning: cast discards qualifiers from pointer target type
dns.c: At top level:
/usr/include/netinet/in.h:315: error: storage size of `sin_addr' isn't known
make[2]: *** [libavahi_core_la-dns.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


seems a system header conflict. a way to solve it cleanly ?


thanks
Regards


		Julien

note: has someone worked on an avahi macports Portfile ?



More information about the avahi mailing list