Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464596 - net-libs/libdmapsharing-2.9.15 - Fails compilation at link stage - "-lm" missing in linked libs.
Summary: net-libs/libdmapsharing-2.9.15 - Fails compilation at link stage - "-lm" miss...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-04 14:05 UTC by cmuelle8
Modified: 2013-12-24 13:38 UTC (History)
1 user (show)

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


Attachments
libdmapsharing-2.9.15.ebuild.patch (file_464596.txt,457 bytes, text/plain)
2013-04-04 14:07 UTC, cmuelle8
Details
libdmapsharing-2.9.15.ebuild.patch (file_464596.txt,458 bytes, text/plain)
2013-04-04 14:10 UTC, cmuelle8
Details
build log 1367970938-install-net-libs_libdmapsharing-2.9.17:3.0::gentoo.out (1367970938-install-net-libs_libdmapsharing-2.9.17:3.0::gentoo.out,67.75 KB, text/plain)
2013-05-08 00:02 UTC, cmuelle8
Details
libdmapsharing-2.9.17.ebuild.patch (libdmapsharing-2.9.17.ebuild.patch,609 bytes, patch)
2013-05-08 00:02 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-04 14:05:52 UTC
The floorf function is used in the source of the pkg directly, at one place:

net-libs-libdmapsharing-2.9.15 # grep -r "floorf" *

work/libdmapsharing-2.9.15/libdmapsharing/dmap-connection.c:	dmap_hash_generate ((short) floorf (priv->dmap_version),


Trying to build the pkg yields

/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=native -pipe -O2 -mfpmath=sse  -O2 -Wall  -march=native -pipe -O2 -mfpmath=sse -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o test-dmap-client test-dmap-db.o test-daap-record.o test-dpap-record.o test-daap-record-factory.o test-dpap-record-factory.o test-dmap-client.o -lglib-2.0  -lgthread-2.0 -pthread -lrt -lglib-2.0  -lgstapp-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -pthread -lrt -lgthread-2.0 -pthread -lrt -lglib-2.0 -lxml2  -lgobject-2.0 -lglib-2.0  -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0  -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0   -lavahi-common -lavahi-client -lavahi-glib -lglib-2.0  ../libdmapsharing/libdmapsharing-3.0.la 
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -pipe -O2 -mfpmath=sse -O2 -Wall -march=native -pipe -O2 -mfpmath=sse -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -o .libs/test-dmap-client test-dmap-db.o test-daap-record.o test-dpap-record.o test-daap-record-factory.o test-dpap-record-factory.o test-dmap-client.o -pthread -pthread -pthread  ../libdmapsharing/.libs/libdmapsharing-3.0.so -lgdk_pixbuf-2.0 -lavahi-common -lavahi-client -lavahi-glib -lgstapp-0.10 -lgstbase-0.10 -lgstreamer-0.10 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lsoup-2.4 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lz -pthread
../libdmapsharing/.libs/libdmapsharing-3.0.so: error: undefined reference to 'floorf'
collect2: error: ld returned 1 exit status
make[3]: *** [test-dmap-client] Error 1
make[3]: Leaving directory `/var/tmp/paludis/net-libs-libdmapsharing-2.9.15/work/libdmapsharing-2.9.15/tests'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/paludis/net-libs-libdmapsharing-2.9.15/work/libdmapsharing-2.9.15/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/net-libs-libdmapsharing-2.9.15/work/libdmapsharing-2.9.15'
make: *** [all] Error 2


Reproducible: Always
Comment 1 cmuelle8 2013-04-04 14:07:50 UTC
Created attachment 344380 [details]
libdmapsharing-2.9.15.ebuild.patch

tested on AMD64 + gcc-4.7.2-r1
(both LTO, non-LTO build fine)
Comment 2 cmuelle8 2013-04-04 14:10:44 UTC
Created attachment 344382 [details]
libdmapsharing-2.9.15.ebuild.patch

add whitespace tolerance to sed substitution
Comment 3 Pacho Ramos gentoo-dev 2013-04-22 18:24:37 UTC
Can you try with 2.9.17?
Comment 4 cmuelle8 2013-05-08 00:02:02 UTC
Created attachment 347674 [details]
build log 1367970938-install-net-libs_libdmapsharing-2.9.17:3.0::gentoo.out

(In reply to comment #3)
> Can you try with 2.9.17?

Same problem, see build log.
Comment 5 cmuelle8 2013-05-08 00:02:40 UTC
Created attachment 347676 [details, diff]
libdmapsharing-2.9.17.ebuild.patch

Updated patch for 2.9.17
Comment 6 Pacho Ramos gentoo-dev 2013-05-08 06:35:39 UTC
Please report this problem to upstream also and post the link here: bugzilla.gnome.org
Comment 7 Pacho Ramos gentoo-dev 2013-09-29 10:52:25 UTC
Did you report it? Thanks
Comment 8 Pacho Ramos gentoo-dev 2013-12-24 13:38:15 UTC
Please report it as we neither support LTO for now