GNOME Bugzilla – Bug 677445
Fails to build with gold linker due to underlinking
Last modified: 2012-06-13 09:16:49 UTC
The gold linker has a strong underlinking detection which results in x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -ftracer -march=corei7-avx -mtune=corei7-avx -mcx16 -msahf -mno-movbe -maes -mpclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mavx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -Wimplicit-function-declaration -Wall -c -o libsocialweb_core-poll.o `test -f 'poll.c' || echo './'`poll.c CCLD libsocialweb-core ../libsocialweb/.libs/libsocialweb.so: error: undefined reference to 'g_module_open' ../libsocialweb/.libs/libsocialweb.so: error: undefined reference to 'g_module_symbol' ../libsocialweb/.libs/libsocialweb.so: error: undefined reference to 'g_module_close' ../libsocialweb/.libs/libsocialweb.so: error: undefined reference to 'g_module_error' ../libsocialweb/.libs/libsocialweb.so: error: undefined reference to 'g_module_make_resident' collect2: error: ld returned 1 exit status make[2]: *** [libsocialweb-core] Error 1 Please find attached a patch to fix this issue
Created attachment 215615 [details] [review] underlinking fix patch
Review of attachment 215615 [details] [review]: Looks good. Can you push?
me? No I can't. no access, sorry.