Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464734 - x11-libs/goocanvas-1.0.0 - ../src/.libs/libgoocanvas.so: error: undefined reference to 'floor'
Summary: x11-libs/goocanvas-1.0.0 - ../src/.libs/libgoocanvas.so: error: undefined ref...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gilles Dartiguelongue (RETIRED)
URL:
Whiteboard:
Keywords: InVCS, PATCH
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-04-05 13:39 UTC by cmuelle8
Modified: 2013-08-12 22:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
x11-libs/goocanvas-1.0.0:0 gcc-4.7.2 build log (1365167256-install-x11-libs_goocanvas-1.0.0:0::gentoo.out,44.65 KB, text/plain)
2013-04-05 13:39 UTC, cmuelle8
Details
goocanvas-1.0.0.ebuild.patch (file_464734.txt,306 bytes, patch)
2013-04-05 13:42 UTC, cmuelle8
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cmuelle8 2013-04-05 13:39:02 UTC
Testing environment:
AMD64
gcc-4.7.2-r1

Build log failure:
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=native -pipe -O2 -mfpmath=sse -flto=4 -floop-block -floop-interchange -floop-strip-mine -fuse-linker-plugin -version-info 8:0:5 -export-dynamic  -rpath /usr/lib64  -march=native -pipe -O2 -mfpmath=sse -flto=4 -floop-block -floop-interchange -floop-strip-mine -fuse-linker-plugin -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o libgoocanvas.la -rpath /usr/lib64 goocanvasatk.lo goocanvasellipse.lo goocanvasenumtypes.lo goocanvasgrid.lo goocanvasgroup.lo goocanvasimage.lo goocanvasitem.lo goocanvasitemmodel.lo goocanvasitemsimple.lo goocanvasmarshal.lo goocanvaspolyline.lo goocanvaspath.lo goocanvasrect.lo goocanvasstyle.lo goocanvastable.lo goocanvastext.lo goocanvasutils.lo goocanvaswidget.lo goocanvas.lo -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfreetype -lfontconfig -lglib-2.0 -lcairo   
libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/goocanvasatk.o .libs/goocanvasellipse.o .libs/goocanvasenumtypes.o .libs/goocanvasgrid.o .libs/goocanvasgroup.o .libs/goocanvasimage.o .libs/goocanvasitem.o .libs/goocanvasitemmodel.o .libs/goocanvasitemsimple.o .libs/goocanvasmarshal.o .libs/goocanvaspolyline.o .libs/goocanvaspath.o .libs/goocanvasrect.o .libs/goocanvasstyle.o .libs/goocanvastable.o .libs/goocanvastext.o .libs/goocanvasutils.o .libs/goocanvaswidget.o .libs/goocanvas.o   -Wl,--as-needed -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lfreetype -lfontconfig -lglib-2.0 -lcairo  -march=native -mfpmath=sse -march=native -mfpmath=sse -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common   -Wl,-soname -Wl,libgoocanvas.so.3 -o .libs/libgoocanvas.so.3.5.0
libtool: link: (cd ".libs" && rm -f "libgoocanvas.so.3" && ln -s "libgoocanvas.so.3.5.0" "libgoocanvas.so.3")
libtool: link: (cd ".libs" && rm -f "libgoocanvas.so" && ln -s "libgoocanvas.so.3.5.0" "libgoocanvas.so")
libtool: link: ( cd ".libs" && rm -f "libgoocanvas.la" && ln -s "../libgoocanvas.la" "libgoocanvas.la" )
make[3]: Leaving directory `/var/tmp/paludis/x11-libs-goocanvas-1.0.0/work/goocanvas-1.0.0/src'
make[2]: Leaving directory `/var/tmp/paludis/x11-libs-goocanvas-1.0.0/work/goocanvas-1.0.0/src'
Making all in docs
make[2]: Entering directory `/var/tmp/paludis/x11-libs-goocanvas-1.0.0/work/goocanvas-1.0.0/docs'
gtk-doc: Scanning header files
../src/.libs/libgoocanvas.so: error: undefined reference to 'floor'
../src/.libs/libgoocanvas.so: error: undefined reference to 'ceil'
../src/.libs/libgoocanvas.so: error: undefined reference to 'atan2'
../src/.libs/libgoocanvas.so: error: undefined reference to 'sqrt'
../src/.libs/libgoocanvas.so: error: undefined reference to 'tan'
../src/.libs/libgoocanvas.so: error: undefined reference to 'acos'
../src/.libs/libgoocanvas.so: error: undefined reference to 'sincos'
../src/.libs/libgoocanvas.so: error: undefined reference to 'pow'
collect2: error: ld returned 1 exit status
Linking of scanner failed: 
make[2]: *** [scan-build.stamp] Error 1
make[2]: Leaving directory `/var/tmp/paludis/x11-libs-goocanvas-1.0.0/work/goocanvas-1.0.0/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/x11-libs-goocanvas-1.0.0/work/goocanvas-1.0.0'
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in x11-libs/goocanvas-1.0.0::gentoo:
!!! In gnome2_src_compile at line 3542
!!! compile failure

!!! Call stack:
!!!    * gnome2_src_compile (/var/tmp/paludis/x11-libs-goocanvas-1.0.0/temp/loadsaveenv:3542)
!!!    * src_compile (/var/tmp/paludis/x11-libs-goocanvas-1.0.0/temp/loadsaveenv:4640)
!!!    * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:56)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:668)
!!!    * main (/usr/libexec/paludis/ebuild.bash:691)



Reproducible: Always
Comment 1 cmuelle8 2013-04-05 13:39:56 UTC
Created attachment 344492 [details]
x11-libs/goocanvas-1.0.0:0 gcc-4.7.2 build log
Comment 2 cmuelle8 2013-04-05 13:42:47 UTC
Created attachment 344498 [details, diff]
goocanvas-1.0.0.ebuild.patch

Builds fine with this patch here.

This is still dependent upon, even though goocanvas:2 is in tree already.  For my box:

pitivi
 +- pygoocanvas:0
     +- goocanvas:0
Comment 3 cmuelle8 2013-04-05 13:46:29 UTC
Btw, this is /not/ an LTO bug, it happens ommiting lto cflags as well.  goocanvas:2 from tree compiled fine without modifications.
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-08-12 04:08:12 UTC
Fixed, sorry for the wait.

+*goocanvas-2.0.1-r1 (12 Aug 2013)
+
+  12 Aug 2013; Alexandre Rostovtsev <tetromino@gentoo.org>
+  goocanvas-0.14.ebuild, goocanvas-1.0.0.ebuild, goocanvas-2.0.0.ebuild,
+  goocanvas-2.0.1.ebuild, +goocanvas-2.0.1-r1.ebuild,
+  +files/goocanvas-1.0.0-gold.patch:
+  Add upstream patches to fix compatibility with modern gobject-introspection
+  and pygobject versions (bug #480494, thanks to Harris Landgarten) and
+  modernize ebuild. Fix 1.0.0's underlinking failure with gold (bug #464734,
+  thanks to cmuelle8). Fix license information (LGPL, not GPL).
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-08-12 22:29:05 UTC
Closing per previous message.