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 671766 - Fails to link with gold.ld
Fails to link with gold.ld
Status: RESOLVED FIXED
Product: goocanvas
Classification: Other
Component: general
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: goocanvas-maint
goocanvas-maint
Depends on:
Blocks:
 
 
Reported: 2012-03-10 11:55 UTC by Justin
Modified: 2013-09-24 10:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build.log (29.19 KB, text/plain)
2012-03-10 11:55 UTC, Justin
  Details
Patch to fix this issue (892 bytes, patch)
2012-03-10 11:58 UTC, Justin
none Details | Review

Description Justin 2012-03-10 11:55:14 UTC
Created attachment 209380 [details]
build.log

When using gold.ld for linking it fails because of underlinking detection:



/bin/sh ../libtool --silent --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DG_LOG_DOMAIN=\"GooCanvas\" -DGSEAL_ENABLE -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm      -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-tbm -mavx -msse4.2 -msse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -frecord-gcc-switches -g -Wimplicit-function-declaration -c -o goocanvas.lo goocanvas.c
  CCLD   libgoocanvas-2.0.la
  GISCAN GooCanvas-2.0.gir
/var/tmp/portage/x11-libs/goocanvas-2.0.1/work/goocanvas-2.0.1/src/.libs/libgoocanvas-2.0.so: error: undefined reference to 'floor'
/var/tmp/portage/x11-libs/goocanvas-2.0.1/work/goocanvas-2.0.1/src/.libs/libgoocanvas-2.0.so: error: undefined reference to 'ceil'
/var/tmp/portage/x11-libs/goocanvas-2.0.1/work/goocanvas-2.0.1/src/.libs/libgoocanvas-2.0.so: error: undefined reference to 'atan2'
/var/tmp/portage/x11-libs/goocanvas-2.0.1/work/goocanvas-2.0.1/src/.libs/libgoocanvas-2.0.so: error: undefined reference to 'sqrt'
/var/tmp/portage/x11-libs/goocanvas-2.0.1/work/goocanvas-2.0.1/src/.libs/libgoocanvas-2.0.so: error: undefined reference to 'tan'
/var/tmp/portage/x11-libs/goocanvas-2.0.1/work/goocanvas-2.0.1/src/.libs/libgoocanvas-2.0.so: error: undefined reference to 'acos'
/var/tmp/portage/x11-libs/goocanvas-2.0.1/work/goocanvas-2.0.1/src/.libs/libgoocanvas-2.0.so: error: undefined reference to 'sincos'
/var/tmp/portage/x11-libs/goocanvas-2.0.1/work/goocanvas-2.0.1/src/.libs/libgoocanvas-2.0.so: error: undefined reference to 'pow'
collect2: ld returned 1 exit status
Comment 1 Justin 2012-03-10 11:58:47 UTC
Created attachment 209381 [details] [review]
Patch to fix this issue

Please find the attached patch against current HEAD which fixes this issue.
Comment 2 Damon Chaplin 2013-09-24 10:49:52 UTC
Patch applied. Thanks.