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 677445 - Fails to build with gold linker due to underlinking
Fails to build with gold linker due to underlinking
Status: RESOLVED FIXED
Product: libsocialweb
Classification: Other
Component: other
git master
Other Linux
: Normal normal
: ---
Assigned To: libsocialweb-maint
libsocialweb-maint
Depends on:
Blocks:
 
 
Reported: 2012-06-05 08:08 UTC by Justin
Modified: 2012-06-13 09:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
underlinking fix patch (2.89 KB, patch)
2012-06-05 08:18 UTC, Justin
committed Details | Review

Description Justin 2012-06-05 08:08:46 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
Comment 1 Justin 2012-06-05 08:18:14 UTC
Created attachment 215615 [details] [review]
underlinking fix patch
Comment 2 Ross Burton 2012-06-05 11:42:43 UTC
Review of attachment 215615 [details] [review]:

Looks good.  Can you push?
Comment 3 Justin 2012-06-05 12:11:10 UTC
me? No I can't. no access, sorry.