compiling cryptsetup without largefile support

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

 



I am trying to compile cryptsetup for an embedded distribution that uses
uClibc without large file support and the compilation failed because
the Makefiles in luks and lib explicitely set _LARGEFILE64_SOURCE and
_FILE_OFFSET_BITS=64 even when using configure --disable-largefile

For now, I fixed my problem by removing the defined symbols from the
makefiles completely, probably breaking the build for other systems...
See attached patch against cryptsetup-1.0.5
Unfortunately, I do not know autoconf enough to provide a clean solution.

I am willing to test a better fix if you have one.

-- 
Stéphane Billiart                      http://perso.orange.fr/billiart/
diff -ruN cryptsetup-1.0.5.org/lib/Makefile.am cryptsetup-1.0.5/lib/Makefile.am
--- cryptsetup-1.0.5.org/lib/Makefile.am	2006-11-21 04:06:47.000000000 -0500
+++ cryptsetup-1.0.5/lib/Makefile.am	2007-10-08 20:50:59.000000000 -0400
@@ -33,8 +33,6 @@
 	-DSYSCONFDIR=\""$(sysconfdir)"\"	\
 	-DVERSION=\""$(VERSION)"\"		\
 	-D_GNU_SOURCE				\
-	-D_LARGEFILE64_SOURCE			\
-	-D_FILE_OFFSET_BITS=64			\
 	@LIBDEVMAPPER_CFLAGS@			\
 	$(_LIBDEVMAPPER_CFLAGS)			\
 	@LIBGCRYPT_CFLAGS@			\
diff -ruN cryptsetup-1.0.5.org/lib/Makefile.in cryptsetup-1.0.5/lib/Makefile.in
--- cryptsetup-1.0.5.org/lib/Makefile.in	2007-05-06 15:34:25.000000000 -0400
+++ cryptsetup-1.0.5/lib/Makefile.in	2007-10-08 20:51:02.000000000 -0400
@@ -267,8 +267,6 @@
 	-DSYSCONFDIR=\""$(sysconfdir)"\"	\
 	-DVERSION=\""$(VERSION)"\"		\
 	-D_GNU_SOURCE				\
-	-D_LARGEFILE64_SOURCE			\
-	-D_FILE_OFFSET_BITS=64			\
 	@LIBDEVMAPPER_CFLAGS@			\
 	$(_LIBDEVMAPPER_CFLAGS)			\
 	@LIBGCRYPT_CFLAGS@			\
diff -ruN cryptsetup-1.0.5.org/luks/Makefile.am cryptsetup-1.0.5/luks/Makefile.am
--- cryptsetup-1.0.5.org/luks/Makefile.am	2006-11-21 04:06:47.000000000 -0500
+++ cryptsetup-1.0.5/luks/Makefile.am	2007-10-08 20:51:06.000000000 -0400
@@ -23,8 +23,6 @@
 	luks.h
 
 INCLUDES = -D_GNU_SOURCE			\
-	-D_LARGEFILE64_SOURCE                   \
-	-D_FILE_OFFSET_BITS=64                  \
         -I$(top_srcdir)/lib
 
 EXTRA_DIST = sha/hmac.c testing/fileDiffer.py
diff -ruN cryptsetup-1.0.5.org/luks/Makefile.in cryptsetup-1.0.5/luks/Makefile.in
--- cryptsetup-1.0.5.org/luks/Makefile.in	2007-05-06 15:34:25.000000000 -0400
+++ cryptsetup-1.0.5/luks/Makefile.in	2007-10-08 20:51:11.000000000 -0400
@@ -233,8 +233,6 @@
 	luks.h
 
 INCLUDES = -D_GNU_SOURCE			\
-	-D_LARGEFILE64_SOURCE                   \
-	-D_FILE_OFFSET_BITS=64                  \
         -I$(top_srcdir)/lib
 
 EXTRA_DIST = sha/hmac.c testing/fileDiffer.py

---------------------------------------------------------------------
dm-crypt mailing list - 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