The configure scripts of patch-2.5 detect the LFS support in glibc-2.1, but due to the lack of a definition of _GNU_SOURCE, no prototypes for fseeko are declared. That way the compiler thinks fseeko is taking a 32bit argument for the offset, when in reality it takes a 64bit offset. Proof: compile with -W -Wall Fix: modify the spec Index: patch.spec ============================================================ ======= RCS file: /cvsroot/rh61/patch/SPECS/patch.spec,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- patch.spec 1999/10/04 18:50:17 1.1 +++ patch.spec 1999/10/08 16:22:56 1.2 @@ -28,6 +28,8 @@ applications. #./configure --prefix=/usr #make "CFLAGS=$RPM_OPT_FLAGS" LDFLAGS=-s +MY_CFLAGS="%{optflags} -D_GNU_SOURCE -W -Wall" +%define optflags \$MY_CFLAGS %configure # XXX unset CPPFLAGS on (ultra?)sparc to avoid large file system support
Red Hat doesn't yet support LFS (because AFAIK it doesn't work on i386 yet). I'm marking this problem deferred until we can deliver a working LFS on all arches. Thanks for the patch.