Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461376 - =sys-boot/lilo-23.2-r2: USE=device-mapper should depend on sys-fs/lvm2 (ld: cannot find -ldevmapper)
Summary: =sys-boot/lilo-23.2-r2: USE=device-mapper should depend on sys-fs/lvm2 (ld: c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 11:51 UTC by Milan Berger
Modified: 2015-01-22 10:55 UTC (History)
1 user (show)

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


Attachments
build.log (file_461376.txt,22.87 KB, text/plain)
2013-03-11 11:52 UTC, Milan Berger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Berger 2013-03-11 11:51:33 UTC
Tried to emerge sys-boot/lilo-23.2-r2 but it fails while building.

Reproducible: Always

Steps to Reproduce:
emerge lilo
Actual Results:  
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -fno-pic -nopie -c -Os -Wall `if [ -f /usr/include/linux/version.h ]; then echo -DHAS_VERSION_H; fi` `if [ -f /usr/include/libdevmapper.h ]; then echo -DHAS_LIBDEVMAPPER_H; fi` -DLILO=0xbb920890 `( if [ -r $DESTDIR/etc/lilo.defines ]; then cat $DESTDIR/etc/lilo.defines; else echo -DBDATA -DDSECS=3 -DEVMS -DIGNORECASE -DLVM -DNOKEYBOARD -DONE_SHOT -DPASS160 -DREISERFS -DREWRITE_TABLE -DSOLO_CHAIN -DVERSION -DVIRTUAL -DMDPRAID ; fi ) | sed 's/-D/-DLCF_/g'` temp.c
lilo.c: In function 'show_images':
lilo.c:353:2: warning: dereferencing type-punned pointer will break strict-aliasing rules
lilo.c:366:2: warning: dereferencing type-punned pointer will break strict-aliasing rules
lilo.c:457:7: warning: dereferencing type-punned pointer will break strict-aliasing rules
lilo.c:460:6: warning: dereferencing type-punned pointer will break strict-aliasing rules
lilo.c:476:7: warning: dereferencing type-punned pointer will break strict-aliasing rules
lilo.c: In function 'main':
lilo.c:218:17: warning: array subscript is above array bounds
bsect.c: In function 'bsect_uninstall':
bsect.c:1630:17: warning: array subscript is above array bounds
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -fno-pic -nopie -o lilo  lilo.o raid.o map.o geometry.o boot.o device.o common.o bsect.o cfg.o partition.o identify.o probe.o shs2.o edit.o temp.o `if [ -f /usr/include/libdevmapper.h ]; then echo "-ldevmapper"; fi`
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldevmapper
collect2: ld returned 1 exit status
make[1]: *** [lilo] Error 1
rm chain.img bootsect.img mbr2.o bitmap.img disk.img bootsect.o mbr.o first.img second.img third.img disk.o
make[1]: Leaving directory `/var/tmp/portage/sys-boot/lilo-23.2-r2/work/lilo-23.2/src'
make: *** [all] Error 2
emake failed



`--# emerge --info
Portage 2.1.11.52 (hardened/linux/amd64, gcc-4.5.4, glibc-2.16.0, 3.6.5-hardened x86_64)
=================================================================
System uname: Linux-3.6.5-hardened-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-2.1
KiB Mem:    16448184 total,    879560 free
KiB Swap:   15623208 total,  15523352 free
Timestamp of tree: Sun, 10 Mar 2013 17:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo sunrise x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --load-average=10"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j17"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 cracklib crypt curl curlwrappers cxx fastcgi fortran gd gdbm gmp hardened hpn iconv imap ipv6 libssh2 libwww maildir mailwrapper md5sum mmx mmxext mudflap multilib mysql mysqli ncurses nls nptl openrc pam perl php pic python readline sasl sse sse2 ssl sss3 suexec symlink tcl tcpd threads unicode vhosts vim-syntax xml zlib zlip" ABI_X86="64" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python3_2" PYTHON_TARGETS="python2_7 python3_2" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

sudo emerge --info  1.18s user 0.18s system 58% cpu 2.306 total
Comment 1 Milan Berger 2013-03-11 11:52:19 UTC
Created attachment 341662 [details]
build.log
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-07-28 10:11:24 UTC
The libdevmapper library is part of sys-fs/lvm2 and the .ebuild has that dependency behind USE="device-mapper" already
Or wait, are you saying libdevmapper a.k.a. lvm2 is required also without USE="device-mapper"?
Comment 3 Milan Berger 2013-07-29 08:38:06 UTC
@Samuli Suominen correct, also with USE="-device-mapper" the lvm2 seems to be needed.
Comment 4 Tomasz Golinski 2014-01-26 17:07:37 UTC
I had sys-boot/lilo-23.2-r2 built with USE=-device-mapper and it had automagic dependency on libdevmapper.so:

!!! existing preserved libs:
>>> package: sys-fs/lvm2-2.02.103
 *  - /lib64/libdevmapper.so.1.02
 *      used by /sbin/lilo (sys-boot/lilo-23.2-r2)

However, on my system lilo rebuilt correctly w/o sys-fs/lvm2 without any use flags.
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2015-01-22 10:55:06 UTC
(In reply to Tomasz Golinski from comment #4)
> However, on my system lilo rebuilt correctly w/o sys-fs/lvm2 without any use
> flags.

That is what I am expecting, that 24.0 & 24.1 deal with this correctly and that the issue no longer exists. But I must apologise for not spotting this report earlier.