Public bug reported: Binary package hint: binutils
Trying to compile a very simple gio demo, I get linker errors for missing glib symbols. Basically it can't find any of them. I'm running gcc -o gio-test -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lglib-2.0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 gio.c which is the expanded version of gcc `pkg-config --libs --cflags glib-2.0` `pkg-config --libs --cflags gio-2.0` gio.c It terminates with /tmp/ccYyqA3r.o: In function `main': gio.c:(.text+0x18): undefined reference to `g_file_new_for_path' gio.c:(.text+0x32): undefined reference to `g_file_query_exits' gio.c:(.text+0x45): undefined reference to `g_printf' gio.c:(.text+0x56): undefined reference to `g_printf' gio.c:(.text+0x62): undefined reference to `g_free' collect2: ld returned 1 exit status ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: binutils 2.20.90.20101121-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.37-6.17-generic 2.6.37-rc3 Uname: Linux 2.6.37-6-generic x86_64 Architecture: amd64 Date: Sat Nov 27 11:37:59 2010 InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007) ProcEnviron: PATH=(custom, user) LANG=en_US.utf8 SHELL=/bin/bash SourcePackage: binutils ** Affects: binutils (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug natty -- ld fails to lookup glib symbols https://bugs.launchpad.net/bugs/682168 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs