GNOME Bugzilla – Bug 606857
libgio needs libresolv
Last modified: 2017-11-03 10:35:01 UTC
Building glib-2.22.4 on OS X 10.4: /bin/sh ../../libtool --tag=CC --mode=link gcc -Os -Wall -L/sw/lib -Wl,-framework,Carbon -o memory-input-stream memory-input-stream.o ../../glib/libglib-2.0.la ../../gobject/libgobject-2.0.la ../../gio/libgio-2.0.la -lintl libtool: link: gcc -Os -Wall -Wl,-framework -Wl,Carbon -o .libs/memory-input-stream memory-input-stream.o -L/sw/lib ../../glib/.libs/libglib-2.0.dylib ../../gobject/.libs/libgobject-2.0.dylib ../../gio/.libs/libgio-2.0.dylib /sw/build.build/glib2-shlibs-2.22.4-1/glib-2.22.4/gobject/.libs/libgobject-2.0.dylib /sw/build.build/glib2-shlibs-2.22.4-1/glib-2.22.4/gmodule/.libs/libgmodule-2.0.dylib /sw/build.build/glib2-shlibs-2.22.4-1/glib-2.22.4/glib/.libs/libglib-2.0.dylib /sw/lib/libiconv.dylib /sw/lib/libintl.dylib /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols: _res_9_dn_expand _res_9_init _res_9_query _res_9_search collect2: ld returned 1 exit status make[4]: *** [memory-input-stream] Error 1 The symbols are invoked in libgio (not test/memory-input-stream), and sure enough, if I enable -no-undefined in gio/Makefile, building the libgio library itself fails with that same undefined-symbols error. If I link libgio against libresolv, problem solved: libgio builds with -no-undefined and memory-input-stream could link.
it's a configure check bug. i need to import the improved configure check from libasyncns *** This bug has been marked as a duplicate of bug 602240 ***
*** Bug 587749 has been marked as a duplicate of this bug. ***