shakna-israel / cryptsetup

Automatically exported from code.google.com/p/cryptsetup
GNU General Public License v2.0
0 stars 0 forks source link

cryptsetup fails to compile with =util-linux-2.20 #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile cryptsetup with =util-linux-2.20
2.
3.

What is the expected output? What do you see instead?
Expected output is to have cryptsetup compile.

What version of the product are you using? On what operating system?
Using cryptsetup-1.3.1

Please provide any additional information below.
mv -f .deps/cryptsetup_static-cryptsetup.Tpo 
.deps/cryptsetup_static-cryptsetup.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -Wall -g -O2 -all-static  -o 
cryptsetup.static cryptsetup_static-utils_crypt.o 
cryptsetup_static-utils_loop.o cryptsetup_static-cryptsetup.o 
../lib/libcryptsetup.la -lpopt  -lgcrypt -lgpg-error -lgpg-error -L/lib64 
-ldevmapper -ludev -lrt -luuid  
libtool: link: gcc -Wall -g -O2 -static -o cryptsetup.static 
cryptsetup_static-utils_crypt.o cryptsetup_static-utils_loop.o 
cryptsetup_static-cryptsetup.o  ../lib/.libs/libcryptsetup.a -L/lib64 -lpopt 
/usr/lib64/libgcrypt.a -lgpg-error -ldevmapper /usr/lib64/libudev.a -lrt -luuid
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -luuid
collect2: ld returned 1 exit status
make[2]: *** [cryptsetup.static] Erreur 1
make[2] : on quitte le r�pertoire � 
/var/tmp/kigen/work/cryptsetup-1.3.1/src �
make[1]: *** [all-recursive] Erreur 1
make[1] : on quitte le r�pertoire � /var/tmp/kigen/work/cryptsetup-1.3.1 �
make: *** [all] Erreur 2

Or for the english version
https://github.com/r1k0/kigen/issues/15

If I downgrade util-linux to 2.19.1, it does compile and link to uuid.

Thank you for your work!

Original issue reported on code.google.com by erick.mi...@gmail.com on 30 Sep 2011 at 8:40

GoogleCodeExporter commented 9 years ago
Attached is the full output of compilation with =util-linux-2.20 failing and 
with =util-linux-2.19.1 working.

Thank you!

Original comment by erick.mi...@gmail.com on 30 Sep 2011 at 8:57

Attachments:

GoogleCodeExporter commented 9 years ago
This happens using Portage (gentoo/funtoo/sabayon)

Original comment by erick.mi...@gmail.com on 30 Sep 2011 at 9:02

GoogleCodeExporter commented 9 years ago
hm, this seems like some portage problem but I'll check it, I am using Gentoo 
for devel work as well

Original comment by gmazyl...@gmail.com on 9 Oct 2011 at 1:54

GoogleCodeExporter commented 9 years ago
Seems just missing static library. I can add better detection but it usually 
fails somewhere else...

This work for me - force rebuild these libraries with static libs:

# cat /etc/portage/package.use 
dev-libs/popt static-libs
dev-libs/libgcrypt static-libs
dev-libs/libgpg-error static-libs
sys-apps/util-linux static-libs

Original comment by gmazyl...@gmail.com on 9 Oct 2011 at 2:55

GoogleCodeExporter commented 9 years ago
I added check for static uuid library, so it fails during configure phase
http://code.google.com/p/cryptsetup/source/detail?r=627#

Anyway, you have to compile util-linux with static-libs (no idea why it changed 
by default from 2.19-2.20 - ask distro maintainer).

Original comment by gmazyl...@gmail.com on 9 Oct 2011 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by gmazyl...@gmail.com on 9 Oct 2011 at 3:25

GoogleCodeExporter commented 9 years ago
Thank you for your time and work! It's a great project.

Original comment by erick.mi...@gmail.com on 10 Oct 2011 at 5:01