Comment 23 for bug 128517

Revision history for this message
In , Mike (mike-redhat-bugs) wrote :

I'm trying to narrow problem.

Rpm build from this file won't work - same problem:
5e36a0d45cb06f80bb9ac6c9034230f1 fatsort-0.9.8.2-1.fc8.src.rpm

line from build by 'make':
gcc -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c fatsort.c -o fatsort.o

line from build by 'rpmbuild -bb fatsort.spec':
gcc -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -c
fatsort.c -o fatsort.o

This pendrive (mp3) is almost 4GB (without 40MB for firmware).

$ diff -u fatsort.spec-orig fatsort.spec
--- fatsort.spec-orig 2008-07-07 00:22:44.000000000 +0200
+++ fatsort.spec 2008-07-07 00:23:11.000000000 +0200
@@ -21,7 +21,7 @@

 %build
-make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS"
+make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64" LDFLAGS="$RPM_OPT_FLAGS"

 %install

problem "solved", but I don't know about "proper" state, need confirmation from
upstream

btw, is there anything we can do about '-f'?
 check_mounted: Unable to get realpath!
 sort_fs: Could not check if filesystem is mounted!
 main: Failed to sort file system!