Bug 5732 - patch broken with glibc-2.1
patch broken with glibc-2.1
Status: CLOSED DEFERRED
Product: Red Hat Linux
Classification: Retired
Component: patch (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Cristian Gafton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-10-08 12:59 EDT by franz.sirl-kernel
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-28 18:46:27 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description franz.sirl-kernel 1999-10-08 12:59:28 EDT
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
Comment 1 Jeff Johnson 2000-02-28 18:46:59 EST
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.

Note You need to log in before you can comment on or make changes to this bug.