Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330255 - sys-fs/lvm2-2.02.70: liblvm2app.so doesn't link against -lm like it should w/ asneeded
Summary: sys-fs/lvm2-2.02.70: liblvm2app.so doesn't link against -lm like it should w/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 330837 330983 330993 331015 331117 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-28 18:02 UTC by Patrizio Bassi
Modified: 2010-08-04 07:21 UTC (History)
10 users (show)

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


Attachments
environment (environment,90.43 KB, text/plain)
2010-07-28 22:07 UTC, Patrizio Bassi
Details
build.log (build.log,37.82 KB, text/plain)
2010-07-28 22:07 UTC, Patrizio Bassi
Details
Fix underlinking in lvm2 (lvm2-2.02.70-asneeded.patch,429 bytes, patch)
2010-08-01 13:13 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2010-07-28 18:02:28 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -DPACKAGE_LIBEXEC_DIR=\""/usr/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib64"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -pthread -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/polkit-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/gudev-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include      -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include     -O2 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -c -o udisks_lvm_pv_export-udisks-lvm-pv-export.o `test -f 'udisks-lvm-pv-export.c' || echo './'`udisks-lvm-pv-export.c
  CCLD   udisks-dm-export
  CCLD   udisks-probe-ata-smart
  CCLD   udisks-probe-sas-expander
  CCLD   udisks-lvm-pv-export
  CCLD   udisks-part-id
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/../../../../lib64/liblvm2app.so: undefined reference to `floor'
collect2: ld returned 1 exit status
make[4]: *** [udisks-lvm-pv-export] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/sys-fs/udisks-1.0.1-r1/work/udisks-1.0.1/src/probers'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/sys-fs/udisks-1.0.1-r1/work/udisks-1.0.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/sys-fs/udisks-1.0.1-r1/work/udisks-1.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/sys-fs/udisks-1.0.1-r1/work/udisks-1.0.1'
make: *** [all] Error 2


Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34 x86_64)
=================================================================
System uname: Linux-2.6.34-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 28 Jul 2010 08:45:03 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula dlj-1.1 PUEL googleearth AdobeFlash-10.1 AdobeFlash-10"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
DISTDIR="/mnt/Dati/Gentoo/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="39"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/mnt/Dati/Gentoo/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/Dati/Gentoo/tmp/"
PORTDIR="/mnt/Dati/Gentoo/portage/"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 bash-completion branding bzip2 cairo caps cdda cddb cdr connectionstatus cracklib crypt css cups curl cxx daemon dbus device-mapper divx dri dts dvd dvdr dvdread dynamicplugin encode exif extras ffmpeg firefox firefox3 flac ftp gallium gif glibc-omitfp glitz glut gnutls gpm hddtemp iconv idn ipod ipv6 irc java java6 javascript jpeg jpeg2k justify kde kde4 kdehiddenvisibility kpathsea kqemu lame lcms libv4l2 lightning lilo live lm_sensors lzo mad matroska mime mmx mmxext mng moonlight mozdevelop mp3 mp4 mp4live mpeg mpeg2 mplayer msn mudflap multilib musepack mysql ncurses network nls nntp npp nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp openssl pam pango pdf plasma png policykit python3 qt3support qt4 quicktime readline reiserfs remote rtc samba scanner sdl secure-delete semantic-desktop session sip slang smp sockets speex spell sse sse2 sse3 ssl ssse3 svg tao theora threads tiff truetype unicode usb userlocales v4l v4l2 vaapi vdpau video vorbis vpx wav wavpack webkit wlm wma wxwindows x264 xcb xcomposite xine xml xorg xpm xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-07-28 20:26:00 UTC
Hello Patrizio,

can you please attach the complete build.log and environment files mentioned at the end of the emerege process to this bug, thanks,

Michael
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-07-28 20:26:53 UTC
Can you please provide the version of lvm2 you've installed (`emerge -pv lvm2` or something like that)
Comment 3 Patrizio Bassi 2010-07-28 22:07:03 UTC
Created attachment 240515 [details]
environment
Comment 4 Patrizio Bassi 2010-07-28 22:07:36 UTC
Created attachment 240517 [details]
build.log
Comment 5 Patrizio Bassi 2010-07-28 22:08:26 UTC
[ebuild   R   ] sys-fs/lvm2-2.02.70  USE="lvm1 readline (-clvm) (-cman) (-selinux) -static" 0 kB


hope all infos are enough. i will test any patch if you need.
Comment 6 dongxu li 2010-08-01 13:02:22 UTC
you can not use LDFLAGS="-Wl,--as-needed" to build lvm2

remove as-needed, build lvm2, then, udisks will build
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-08-01 13:13:19 UTC
Created attachment 240915 [details, diff]
Fix underlinking in lvm2

Adds explicit -lm linking due to usage of function 'floor'. Needs a lvm2 revision bump so the change is propagated.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2010-08-02 14:36:45 UTC
*** Bug 330837 has been marked as a duplicate of this bug. ***
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2010-08-03 06:51:08 UTC
+*lvm2-2.02.70-r1 (03 Aug 2010)
+
+  03 Aug 2010; Samuli Suominen <ssuominen@gentoo.org>
+  +lvm2-2.02.70-r1.ebuild, +files/lvm2-2.02.70-asneeded.patch:
+  Link liblvm2app to libm even with LDFLAGS="-Wl,--as-needed" wrt #330255 by
+  Patrizio Bassi.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-08-03 08:58:18 UTC
*** Bug 330983 has been marked as a duplicate of this bug. ***
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2010-08-03 09:56:00 UTC
*** Bug 330993 has been marked as a duplicate of this bug. ***
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2010-08-03 11:10:00 UTC
*** Bug 331015 has been marked as a duplicate of this bug. ***
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2010-08-03 21:16:54 UTC
*** Bug 331117 has been marked as a duplicate of this bug. ***