After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 606857 - libgio needs libresolv
libgio needs libresolv
Status: RESOLVED DUPLICATE of bug 602240
Product: glib
Classification: Platform
Component: gio
2.22.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 587749 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-01-13 14:55 UTC by Daniel Macks
Modified: 2017-11-03 10:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Macks 2010-01-13 14:55:33 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.
Comment 1 Dan Winship 2010-01-13 16:00:23 UTC
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 ***
Comment 2 Philip Withnall 2017-11-03 10:35:01 UTC
*** Bug 587749 has been marked as a duplicate of this bug. ***