Re: cryptsetup-1.0.3 final

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/04/2006 Clemens Fruhwirth wrote:
> Packagers: remember to remove the -static flags from LDFLAGS (in case
> you instructed configure to add them). This will lead to a broken
> executable. The configure script takes care of static linking when
> called with --enable-static.

hello clemens,

i tried to build cryptsetup with --enable-static option to configure
now, but it fails:
[...]
Making all in src
make[3]: Entering directory
`/home/jonas/debian/cryptsetup/pkg-cryptsetup/cryptsetup/build-area/cryptsetup-1.0.3/src'
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib
-DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\"
-DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/usr/etc"\"
-DVERSION=\""1.0.3"\" -D_GNU_SOURCE    -g -O2 -MT cryptsetup.o -MD -MP
-MF ".deps/cryptsetup.Tpo" -c -o cryptsetup.o cryptsetup.c; \
        then mv -f ".deps/cryptsetup.Tpo" ".deps/cryptsetup.Po"; else rm
-f ".deps/cryptsetup.Tpo"; exit 1; fi
cryptsetup.c: In function 
hello clemens,

i tried to build cryptsetup with --enable-static option to configure
now, but it fails:
[...]
DialogMaking all in src
make[3]: Entering directory
`/home/jonas/debian/cryptsetup/pkg-cryptsetup/cryptsetup/build-area/cryptsetup-1.0.3/src'
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib
-DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\"
-DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/usr/etc"\"
-DVERSION=\""1.0.3"\" -D_GNU_SOURCE    -g -O2 -MT cryptsetup.o -MD -MP
-MF ".deps/cryptsetup.Tpo" -c -o cryptsetup.o cryptsetup.c; \
        then mv -f ".deps/cryptsetup.Tpo" ".deps/cryptsetup.Po"; else rm
-f ".deps/cryptsetup.Tpo"; exit 1; fi
cryptsetup.c: In function 
hello clemens,

i tried to build cryptsetup with --enable-static option to configure
now, but it fails:
[...]
Making all in src
make[3]: Entering directory `/home/jonas/debian/cryptsetup/pkg-cryptsetup/cryptsetup/build-area/cryptsetup-1.0.3/src'
if x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -DDATADIR=\""/usr/share"\" -DLOCALEDIR=\""/usr/share/locale"\" -DLIBDIR=\""/usr/lib"\" -DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/usr/etc"\" -DVERSION=\""1.0.3"\" -D_GNU_SOURCE    -g -O2 -MT cryptsetup.o -MD -MP -MF ".deps/cryptsetup.Tpo" -c -o cryptsetup.o cryptsetup.c; \
	then mv -f ".deps/cryptsetup.Tpo" ".deps/cryptsetup.Po"; else rm -f ".deps/cryptsetup.Tpo"; exit 1; fi
cryptsetup.c: In function `yesDialog':
cryptsetup.c:200: warning: passing argument 2 of `getline' from incompatible pointer type
/bin/sh ../libtool --mode=link x86_64-linux-gnu-gcc  -g -O2   -o cryptsetup -all-static  cryptsetup.o -lpopt ../lib/libcryptsetup.la
mkdir .libs
x86_64-linux-gnu-gcc -g -O2 -o cryptsetup -static cryptsetup.o /usr/lib/libpopt.a ../lib/.libs/libcryptsetup.a -ldevmapper /usr/lib/libgcrypt.a -lnsl /usr/lib/libgpg-error.a -luuid
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/libdevmapper.a(libdm-common.o): In function `dm_set_selinux_context': undefined reference to `is_selinux_enabled'
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/libdevmapper.a(libdm-common.o): In function `dm_set_selinux_context': undefined reference to `matchpathcon'
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/libdevmapper.a(libdm-common.o): In function `dm_set_selinux_context': undefined reference to `lsetfilecon'
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/libdevmapper.a(libdm-common.o): In function `dm_set_selinux_context': undefined reference to `freecon'
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/libdevmapper.a(libdm-common.o): In function `dm_set_selinux_context': undefined reference to `freecon'
collect2: ld returned 1 exit status
make[3]: *** [cryptsetup] Error 1
make[3]: Leaving directory `/home/jonas/debian/cryptsetup/pkg-cryptsetup/cryptsetup/build-area/cryptsetup-1.0.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jonas/debian/cryptsetup/pkg-cryptsetup/cryptsetup/build-area/cryptsetup-1.0.3'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jonas/debian/cryptsetup/pkg-cryptsetup/cryptsetup/build-area/cryptsetup-1.0.3'
make: *** [build-stamp] Error 2

do you have an idea why this fails?

...
 jonas

---------------------------------------------------------------------
 - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux