Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sys-fs/lvm2-2.02.88 failed cannot find -ludev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4016
Location: india

PostPosted: Sat Sep 29, 2012 11:09 am    Post subject: sys-fs/lvm2-2.02.88 failed cannot find -ludev Reply with quote

Code:
      -o dmsetup dmsetup.o -ldevmapper  -ludev -lrt 
i686-pc-linux-gnu-gcc -O2 -march=i686 -pipe -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 -O2 -march=i686 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -Wpointer-arith -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd -Wl,--no-export-dynamic -static -L../libdm/ioctl \
      -o dmsetup.static dmsetup.o -ldevmapper  -ludev -lrt    -ludev -lrt 
dmsetup.o: In function `main':
dmsetup.c:(.text+0x6ab9): undefined reference to `udev_get_dev_path'
collect2: ld returned 1 exit status
make[1]: *** [dmsetup] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/lib/gcc/i686-pc-linux-gnu/4.5.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ludev
/usr/lib/gcc/i686-pc-linux-gnu/4.5.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ludev
collect2: ld returned 1 exit status
make[1]: *** [dmsetup.static] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.88/work/LVM2.2.02.88/tools'
make: *** [tools.device-mapper] Error 2
emake failed
 * ERROR: sys-fs/lvm2-2.02.88 failed (compile phase):
 *   compile fail
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 3499:  Called die
 * The specific snippet of code:
 *       emake || die "compile fail"
 *


Code:
localhost ramaswamy # emerge --info =sys-fs/lvm2-2.02.88
Portage 2.1.11.9 (default/linux/x86/10.0, gcc-4.5.4, glibc-2.15-r2, 3.3.8-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.3.8-gentoo-i686-AMD_E1-1200_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.1
Timestamp of tree: Sat, 29 Sep 2012 01:30:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo kde-sunset
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/kde-sunset"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa berkdb bzip2 cdr cli cracklib crypt cups cxx dri dvd fortran gdbm gnome gpm iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre pppd qt4 readline session ssl tcpd unicode x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

localhost ramaswamy #


this is part of xfce4-power-manager merge
udev-192 s used here.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2165

PostPosted: Sun Sep 30, 2012 2:47 pm    Post subject: Reply with quote

padoor ...

you need to build sys-fs/udev with the 'static-libs' useflag enabled as lvm2 has IUSE +static and +static-lib.

best ... khay
Back to top
View user's profile Send private message
todd93
Guru
Guru


Joined: 30 Oct 2006
Posts: 455
Location: Missouri

PostPosted: Mon Oct 01, 2012 10:10 pm    Post subject: Reply with quote

khayyam wrote:
padoor ...

you need to build sys-fs/udev with the 'static-libs' useflag enabled as lvm2 has IUSE +static and +static-lib.

best ... khay


Hi, I'm having a similar problem with sys-fs/lvm2-2.02.88, however, it's just failing, nothing to do with ludev. I have built udev with the 'static-libs' use flag, but it does no good. I get the following message at the end of the emerge:

Code:

:
(.text.util_lookup_user+0xc6): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../lib64/libudev.a(util.o): In function `lookup_uid':
(.text.lookup_uid+0x8b): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
dmsetup.o: In function `main':
dmsetup.c:(.text.startup+0x96d): undefined reference to `udev_get_dev_path'
collect2: ld returned 1 exit status
make[1]: *** [dmsetup.static] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.88/work/LVM2.2.02.88/tools'
make: *** [tools.device-mapper] Error 2
emake failed
 * ERROR: sys-fs/lvm2-2.02.88 failed (compile phase):
 *   compile fail
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 3539:  Called die
 * The specific snippet of code:
 *       emake || die "compile fail"
 *
 * If you need support, post the output of `emerge --info '=sys-fs/lvm2-2.02.88'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/lvm2-2.02.88'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.88/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.88/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/lvm2-2.02.88/work/LVM2.2.02.88'
 * S: '/var/tmp/portage/sys-fs/lvm2-2.02.88/work/LVM2.2.02.88'

>>> Failed to emerge sys-fs/lvm2-2.02.88, Log file:

>>>  '/var/tmp/portage/sys-fs/lvm2-2.02.88/temp/build.log'

 * Messages for package sys-fs/lvm2-2.02.88:

 * Warning, we no longer overwrite /sbin/lvm and /sbin/dmsetup with
 * their static versions. If you need the static binaries,
 * you must append .static to the filename!
 * ERROR: sys-fs/lvm2-2.02.88 failed (compile phase):
 *   compile fail
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 3539:  Called die
 * The specific snippet of code:
 *       emake || die "compile fail"
 *
 * If you need support, post the output of `emerge --info '=sys-fs/lvm2-2.02.88'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/lvm2-2.02.88'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/lvm2-2.02.88/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/lvm2-2.02.88/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/lvm2-2.02.88/work/LVM2.2.02.88'
 * S: '/var/tmp/portage/sys-fs/lvm2-2.02.88/work/LVM2.2.02.88'
 * revdep-rebuild failed to emerge all packages.
 * you have the following choices:
 * - If emerge failed during the build, fix the problems and re-run revdep-rebuild.
 * - Use /etc/portage/package.keywords to unmask a newer version of the package.
 *   (and remove 5_order.rr to be evaluated again)
 * - Modify the above emerge command and run it manually.
 * - Compile or unmerge unsatisfied packages manually,
 *   remove temporary files, and try again.
 *   (you can edit package/ebuild list first)


I have also tried to keyword it, and emerge a newer version, but it fails in the same manner. I would really appreciate any help I can get on this!!

Thanks!!

Todd


Last edited by todd93 on Sat Oct 06, 2012 10:35 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2165

PostPosted: Tue Oct 02, 2012 4:19 am    Post subject: Reply with quote

todd93 wrote:
I'm having a similar problem with sys-fs/lvm2-2.02.88, however, it's just failing, nothing to do with ludev. I have built udev with the 'static-libs' use flag, but it does no good.

todd93 ... its not the same issue and so you should start a seperate thread.

best ... khay
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4016
Location: india

PostPosted: Sat Oct 06, 2012 4:00 am    Post subject: Reply with quote

lvm2-2.02.97 merged ok
after udev remerge with static-libs
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum