Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316571 - sys-fs/cryptsetup-1.1.0 fails to build with sys-fs/lvm2-2.02.63-r1
Summary: sys-fs/cryptsetup-1.1.0 fails to build with sys-fs/lvm2-2.02.63-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 316591 316689 316705 316793 316839 316873 324141 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-21 19:05 UTC by Joel
Modified: 2010-06-15 19:12 UTC (History)
8 users (show)

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


Attachments
emerge --info of the 32 bit chroot (info.txt,3.71 KB, text/plain)
2010-04-21 21:22 UTC, Joel
Details
cryptsetup configure log (config.log,51.53 KB, text/plain)
2010-04-21 21:23 UTC, Joel
Details
build log of sys-fs/cryptsetup-1.1.0 (build.log,29.95 KB, text/plain)
2010-04-23 00:55 UTC, n3ph
Details
cryptsetup-1.1.0 build.log after upgrading to lvm2-2.02.63-r2 (build.log,30.09 KB, text/plain)
2010-04-23 16:11 UTC, robinetd
Details
cryptsetup-1.1.0-udev.patch (foo.patch,964 bytes, patch)
2010-04-23 18:46 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joel 2010-04-21 19:05:27 UTC
I've a 32 bit chroot on an amd64 gentoo (testing), I was trying to install crypsetup, but the configure failed with "configure: error: 'You need the device-mapper library'". Downgrading lvm2 to the old version (2.02.56-r3) solved the issue.

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-04-21 19:34:35 UTC
Post the config.log from cryptsetup along with your emerge --info
Comment 2 Joel 2010-04-21 21:22:48 UTC
Created attachment 228671 [details]
emerge --info of the 32 bit chroot
Comment 3 Joel 2010-04-21 21:23:08 UTC
Created attachment 228673 [details]
cryptsetup configure log
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-04-22 07:27:14 UTC
*** Bug 316591 has been marked as a duplicate of this bug. ***
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-04-22 07:30:31 UTC
configure:14431: checking for dm_task_set_name in -ldevmapper
configure:14456: i686-pc-linux-gnu-gcc -o conftest -march=core2 -O2 -pipe  -Wl,-O1 conftest.c -ldevmapper   >&5
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot open linker script file /lib/libdevmapper.so: No such file or directory
collect2: ld returned 1 exit status
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-22 07:59:42 UTC
reproduced, will fix tmrw
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-04-22 16:28:49 UTC
*** Bug 316689 has been marked as a duplicate of this bug. ***
Comment 8 meyerm 2010-04-22 17:55:13 UTC
*** Bug 316705 has been marked as a duplicate of this bug. ***
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-22 19:33:57 UTC
Ok, please test lvm2-2.02.63-r2 that I've just added to the tree.
Comment 10 n3ph 2010-04-22 20:32:21 UTC
Hmm.. 

I run emerge --sync but there is no lvm2-2.02.63-r2..



s0uRg3 n3ph # emerge -s lvm2
Searching...    
[ Results for search key : lvm2 ]
[ Applications found : 1 ]

*  sys-fs/lvm2
      Latest version available: 2.02.63-r1
      Latest version installed: 2.02.56-r3
      Size of files: 842 kB
      Homepage:      http://sources.redhat.com/lvm2/
      Description:   User-land utilities for LVM2 (device-mapper) software.
      License:       GPL-2


did you mean you added it to an overlay or to the main-portage??

n3ph
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-22 20:39:49 UTC
Nope, you just need to wait a little longer, here's my buffer from earlier.


Using commit message:
------------------------------------------------------------------------------
Bug #316571: more work on library installs.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
------------------------------------------------------------------------------

/var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v  <--  ChangeLog
new revision: 1.205; previous revision: 1.204
/var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.63-r2.ebuild,v  <--  lvm2-2.02.63-r2.ebuild
initial revision: 1.1
>>> Creating Manifest for /usr/portage/sys-fs/lvm2
/var/cvsroot/gentoo-x86/sys-fs/lvm2/Manifest,v  <--  Manifest
new revision: 1.250; previous revision: 1.249

Commit complete.
RepoMan sez: "If everyone were like you, I'd be out of business!"
Comment 12 n3ph 2010-04-22 21:04:33 UTC
how long does it usually take for committed ebuilds to be synced on repos?
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-22 22:59:15 UTC
15-60 minutes depending on which of the mirrors you're hitting (official vs. community). If you're using an additional custom tier beyond that, possibly longer.

I've got an ACK on this working now too.
Comment 14 n3ph 2010-04-23 00:55:38 UTC
Created attachment 228833 [details]
build log of sys-fs/cryptsetup-1.1.0
Comment 15 n3ph 2010-04-23 13:20:14 UTC
hm :) too few information , i was so tired last night that i just uploaded the build-log from cryptsetup...


please REOPEN...


I compiled lvm2-2.02.63-r2 successfully..
Compilation of cryptsetup-1.1.0 against the new libdevmapper.a failed 

-> see build.log
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2010-04-23 13:25:31 UTC
*** Bug 316793 has been marked as a duplicate of this bug. ***
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2010-04-23 13:26:11 UTC
Reopen per Comment #14 and bug 316793.
Comment 18 robinetd 2010-04-23 16:11:01 UTC
Created attachment 228901 [details]
cryptsetup-1.1.0 build.log after upgrading to lvm2-2.02.63-r2 

It gets past the configurescript now but still fails due to devmapper during the compile.
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-23 16:47:59 UTC
Dakota:
Does your udev have /usr/lib/libudev.a and /usr/lib/libudev.so?
I don't see them being referenced at all from the linking call to gcc.
Comment 20 robinetd 2010-04-23 16:50:04 UTC
(In reply to comment #19)
> Dakota:
> Does your udev have /usr/lib/libudev.a and /usr/lib/libudev.so?
> I don't see them being referenced at all from the linking call to gcc.
> 

Sure does. I'm using udev-151-r2
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2010-04-23 16:59:41 UTC
*** Bug 316839 has been marked as a duplicate of this bug. ***
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2010-04-23 18:46:52 UTC
Created attachment 228919 [details, diff]
cryptsetup-1.1.0-udev.patch

Well, here is a patch against cryptsetup-1.1.0 to link against -ludev. 
It basically checks if udev is present and then feeds the -ludev to linker...

I'm sure there are better ways to accomplish the same, but this works for me
Comment 23 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-23 19:35:13 UTC
ssuominen:
Ok, committed that patch now. We should encourage cryptsetup upstream to move to pkgconfig for libdevmapper, as that will bring in the libudev too.
Comment 24 Samuli Suominen (RETIRED) gentoo-dev 2010-04-23 19:56:52 UTC
(In reply to comment #23)
> ssuominen:
> Ok, committed that patch now. We should encourage cryptsetup upstream to move
> to pkgconfig for libdevmapper, as that will bring in the libudev too.
> 

nod, I've opened a upstream bug for this, the problem is pretty clear but as usual I suck at explaining myself so if you have something to add... please do

http://code.google.com/p/cryptsetup/issues/detail?id=64
Comment 25 Artie Ziff 2010-04-23 22:22:04 UTC
A work-around exists by adding "dynamic" use flag. 
This will allow a successful build to complete. 

http://forums.gentoo.org/viewtopic-t-824816.html
Comment 26 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-23 23:27:34 UTC
(In reply to comment #25)
> A work-around exists by adding "dynamic" use flag. 
> This will allow a successful build to complete. 
> http://forums.gentoo.org/viewtopic-t-824816.html
You don't need that. Just sync and get the updated ebuild with the patch.

Re the libdevmapper pkgconfig, upstream LVM says that will be in .64, along with other library cleanups.
Comment 27 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-04-23 23:28:10 UTC
artie:
please CC yourself if you're going to be getting a response.
see my comment #26.
Comment 28 Samuli Suominen (RETIRED) gentoo-dev 2010-04-24 06:40:36 UTC
*** Bug 316873 has been marked as a duplicate of this bug. ***
Comment 29 Thomas Capricelli 2010-06-15 19:06:00 UTC
*** Bug 324141 has been marked as a duplicate of this bug. ***
Comment 30 Thomas Capricelli 2010-06-15 19:12:18 UTC
Hi, just to say that i had the pb on stable amd64 system with cryptsetup added
to package.keywords

It seems like old udev ebuilds do not build and/or install the static
libudev.a, only newer ebuilds. And recent cryptsetup packages rely on this
static lib being available.

By unmasking udev as well, i've solved my pb and could install cryptsetup.
(equery files mention libudev.a now)