On Mon, 26 Mar 2012 16:29:30 +0100 Andrew Benton <[email protected]> wrote:
> With glib 2.32 installed compiling GConf-3.2.5 fails for me like so: > > g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC gcc -o > /home/andy/GConf-3.2.5/gconf/tmp-introspectVFx7t1/GConf-2.0 -export-dynamic > -L. libgconf-2.la -pthread -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lrt > -lglib-2.0 /home/andy/GConf-3.2.5/gconf/tmp-introspectVFx7t1/GConf-2.0.o > libtool: link: gcc -o > /home/andy/GConf-3.2.5/gconf/tmp-introspectVFx7t1/.libs/GConf-2.0 -pthread > /home/andy/GConf-3.2.5/gconf/tmp-introspectVFx7t1/GConf-2.0.o > -Wl,--export-dynamic -L. ./.libs/libgconf-2.so /usr/lib/libgio-2.0.so > /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lrt > /usr/lib/libglib-2.0.so -pthread -Wl,-rpath -Wl,/home/andy/tmp/lib > /usr/bin/ld: /home/andy/GConf-3.2.5/gconf/tmp-introspectVFx7t1/GConf-2.0.o: > undefined reference to symbol 'g_module_error' > /usr/bin/ld: note: 'g_module_error' is defined in DSO > /lib/libgmodule-2.0.so.0 so try adding it to the linker command line > /lib/libgmodule-2.0.so.0: could not read symbols: Invalid operation > collect2: error: ld returned 1 exit status > linking of temporary binary failed: Command '['/bin/sh', '../libtool', > '--mode=link', '--tag=CC', 'gcc', '-o', > '/home/andy/GConf-3.2.5/gconf/tmp-introspectVFx7t1/GConf-2.0', > '-export-dynamic', '-L.', 'libgconf-2.la', '-pthread', '-lgio-2.0', > '-lgobject-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', > '/home/andy/GConf-3.2.5/gconf/tmp-introspectVFx7t1/GConf-2.0.o']' returned > non-zero exit status 1 > make[3]: *** [GConf-2.0.gir] Error 1 > make[3]: Leaving directory `/home/andy/GConf-3.2.5/gconf' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/andy/GConf-3.2.5/gconf' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/andy/GConf-3.2.5' > make: *** [all] Error 2 > andy@eccles:~/GConf-3.2.5$ > > I've tried all kinds of LIBS LDFLAGS and so on but to no avail as the > error comes from gobject introspection. The only way I can get it to > compile is to configure it --disable-introspection > Any objections if I add --disable-introspection to the book? Only > joking. I'll just leave it until we can figure out a better fix. This works: sed -i '/INTROSPECTION_SCANNER_ARGS/s#$# -lgmodule-2.0#' gconf/Makefile.in Babl, Gegl, Gnumeric and Abiword all failed to compile for me. I've not had a chance to look at them yet. I'll look at them tomorrow. Andy -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
