f i686-gentoo-freebsd6.2-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMDNS_ALLOW_FILE=\"/etc/mdns.allow\" -DRESOLV_CONF_FILE=\"/etc/resolv.conf\" -DAVAHI_SOCKET=\"/var/run/avahi-daemon/socket\" '-DDEBUG_TRAP=__asm__("int $3")' -O2 -march=athlon-tbird -pipe -ggdb -std=gnu99 -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 -Wno-unused-parameter -pipe -W -Wall -pedantic -std=c99 -Wno-unused-parameter -MT avahi-test.o -MD -MP -MF ".deps/avahi-test.Tpo" -c -o avahi-test.o avahi-test.c; \ then mv -f ".deps/avahi-test.Tpo" ".deps/avahi-test.Po"; else rm -f ".deps/avahi-test.Tpo"; exit 1; fi avahi-test.c: In function ‘main’: avahi-test.c:32: error: ‘AF_INET’ undeclared (first use in this function) avahi-test.c:32: error: (Each undeclared identifier is reported only once avahi-test.c:32: error: for each function it appears in.) distcc[54685] ERROR: compile avahi-test.c on localhost failed gmake[2]: *** [avahi-test.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... i686-gentoo-freebsd6.2-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMDNS_ALLOW_FILE=\"/etc/mdns.allow\" -DRESOLV_CONF_FILE=\"/etc/resolv.conf\" -DAVAHI_SOCKET=\"/var/run/avahi-daemon/socket\" "-DDEBUG_TRAP=__asm__(\"int \$3\")" -DNSS_IPV6_ONLY=1 -DMDNS_MINIMAL -O2 -march=athlon-tbird -pipe -ggdb -std=gnu99 -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 -Wno-unused-parameter -pipe -W -Wall -pedantic -std=c99 -Wno-unused-parameter -MT libnss_mdns6_minimal_la-util.lo -MD -MP -MF .deps/libnss_mdns6_minimal_la-util.Tpo -c util.c -fPIC -DPIC -o .libs/libnss_mdns6_minimal_la-util.o i686-gentoo-freebsd6.2-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMDNS_ALLOW_FILE=\"/etc/mdns.allow\" -DRESOLV_CONF_FILE=\"/etc/resolv.conf\" -DAVAHI_SOCKET=\"/var/run/avahi-daemon/socket\" "-DDEBUG_TRAP=__asm__(\"int \$3\")" -DNSS_IPV6_ONLY=1 -DMDNS_MINIMAL -O2 -march=athlon-tbird -pipe -ggdb -std=gnu99 -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 -Wno-unused-parameter -pipe -W -Wall -pedantic -std=c99 -Wno-unused-parameter -MT libnss_mdns6_minimal_la-avahi.lo -MD -MP -MF .deps/libnss_mdns6_minimal_la-avahi.Tpo -c avahi.c -fPIC -DPIC -o .libs/libnss_mdns6_minimal_la-avahi.o gmake[2]: Leaving directory `/var/tmp/portage/sys-auth/nss-mdns-0.9-r1/work/nss-mdns-0.9/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/sys-auth/nss-mdns-0.9-r1/work/nss-mdns-0.9' gmake: *** [all] Error 2 I'll see to work on a patch, or look what the ports have, if nobody beats me to it.
Created attachment 118360 [details, diff] nss-mdns-0.9-fbsd.patch This is the needed patch, it requires an eautoreconf call instead of just eautomake. All the changes are already applied by upstream (who won't release a new version just for FreeBSD and us).
Yeah, wont fix this ... use 0.10 instead (unless there is a major reason not to do so) since its already in the tree.