Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405199 - dev-libs/rasqal-0.9.27 - ../src/.libs/librasqal.so: undefined reference to `floor'
Summary: dev-libs/rasqal-0.9.27 - ../src/.libs/librasqal.so: undefined reference to `f...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-21 23:09 UTC by Jaak Ristioja
Modified: 2012-02-22 12:22 UTC (History)
0 users

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


Attachments
rasqal-0.9.27 build.log (rasqal-0.9.27 build.log,56.99 KB, text/plain)
2012-02-21 23:12 UTC, Jaak Ristioja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2012-02-21 23:09:32 UTC
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -ggdb `/usr/bin/pkg-config raptor2 --libs` -Wl,-O1 -Wl,--as-needed -o roqet roqet.o  ../src/librasqal.la 
libtool: link: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -ggdb -Wl,-O1 -Wl,--as-needed -o .libs/roqet roqet.o  -lraptor2 ../src/.libs/librasqal.so
../src/.libs/librasqal.so: undefined reference to `floor'
../src/.libs/librasqal.so: undefined reference to `ceil'
../src/.libs/librasqal.so: undefined reference to `round'
collect2: ld returned 1 exit status

This might also somewhat affect bug 404961 and bug 404655. Regarding the latter, redland-1.0.15 fails to build in the following manner:

/bin/sh ../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -DLIBRDF_INTERNAL=1 -O2 -pipe -march=native -ggdb  -DLIBRDF_INTERNAL=1 -O2 -pipe -march=native -ggdb -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o redland-db-upgrade db_upgrade.o -lraptor2   ../src/librdf.la -ldl 
libtool: link: x86_64-pc-linux-gnu-gcc -DLIBRDF_INTERNAL=1 -O2 -pipe -march=native -ggdb -DLIBRDF_INTERNAL=1 -O2 -pipe -march=native -ggdb -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o .libs/redland-db-upgrade db_upgrade.o  -lraptor2 ../src/.libs/librdf.so -ldl
/usr/lib64/librasqal.so.3: undefined reference to `floor'
/usr/lib64/librasqal.so.3: undefined reference to `ceil'
/usr/lib64/librasqal.so.3: undefined reference to `round'
collect2: ld returned 1 exit status

I checked that dev-libs/rasqal-0.9.27 and dev-libs/redland-1.0.14 got previously emerged (properly) on September 21, 2011. So that is why I had rasqal 0.9.27 installed and actually got the redland error first on redland upgrade.

Related:
 * bugs.librdf.org/mantis/view.php?id=446
 * RELEASE.html in the rasqal source code contains details about the -lm magic for floor/ceil/round etc. I guess their mechanism for detecting whether -lm is needed fails:

checking for ceil, floor and round in default libs... yes
Comment 1 Jaak Ristioja 2012-02-21 23:12:23 UTC
Created attachment 302751 [details]
rasqal-0.9.27 build.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-21 23:57:15 UTC
Please post your `emerge --info' output in a comment.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-22 00:08:02 UTC
Oh, and your `emerge -vpq dev-libs/rasqal' output too.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-02-22 12:22:08 UTC
emerge -C raptor rasqal
emerge -1 =rasqal-0.9.28 (going stable from bug 404961)

If you can still reproduce with latest, reopen