/Users/yegle/.gentoo/bin/bash ../libtool --tag=CC --mode=compile x86_64-apple-darwin12-gcc -DHAVE_CONFIG_H -I. -I/Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio -I.. -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I../glib -I/Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib -I/Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4 -I/Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gmodule -DG_DISABLE_CAST_CHECKS -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/Users/yegle/.gentoo/usr/lib/gio/modules\" -D_REENTRANT -xobjective-c -march=nocona -O2 -pipe -Wno-format-nonliteral -c -o libgio_2_0_la-gtlscertificate.lo `test -f 'gtlscertificate.c' || echo '/Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/'`gtlscertificate.c /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c: In function 'g_resolver_record_type_to_rrtype': /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:361: error: 'T_TXT' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:361: error: (Each undeclared identifier is reported only once /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:361: error: for each function it appears in.) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:363: error: 'T_SOA' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:365: error: 'T_NS' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:367: error: 'T_MX' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c: In function 'g_resolver_records_from_res_query': /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:385: error: 'HEADER' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:385: error: 'header' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:416: error: expected expression before ')' token /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:442: error: 'C_IN' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:453: error: 'T_MX' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:456: error: 'T_SOA' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:459: error: 'T_NS' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:462: error: 'T_TXT' undeclared (first use in this function) /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c: In function 'do_lookup_records': /Users/yegle/.gentoo/var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/gio/gthreadedresolver.c:679: error: 'C_IN' undeclared (first use in this function) make[4]: *** [libgio_2_0_la-gthreadedresolver.lo] Error 1 Reproducible: Always emerge --info http://bpaste.net/show/141692/
C_IN and T_TXT get defined in arpa/nameser_compat.h, which is part of glibc.
Created attachment 361638 [details, diff] patch against glib-2.36.4-r1.ebuild Got it, the glib tar came with a Linux-only gnetworking.h. Normally gnetworking.h gets generated by configure, but if it's already there the distributed one get used and break Darwin.
@gnome, can we commit this?
Yes but, please report also to upstream to get them stop to provide this file (and add a reference to the bug report in the comment in ebuild) Thanks
Fixed in gx86 and merge into prefix overlay.