Bug 129712

Summary: Headers are not completely compatible with the i386 headers
Product: [Fedora] Fedora Reporter: Miloslav Trmač <mitr>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: roland
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-01 12:40:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miloslav Trmač 2004-08-11 23:55:29 UTC
Version-Release number of selected component (if applicable):
2.3.3-39

While most header files protect differences between x86_64 and
i386 by #if... __WORDSIZE == 64 (to preserver binary compatibility
with i386 when compiled with gcc -m32), there are a few exceptions:

bits/fenv.h: x86_64 has an added __mxcsr member in fenv_t
bits/mathdef.h: x86_64 has float_t, double_t == float, double,
        should be long double for i386
bits/wchar.h: __WCHAR_MIN and WCHAR_MAX have type int even for 32-bit
        mode

gnu/lib-names.h: several differences
gnu/stubs.h: several differences
sys/elf.h: completely missing on x86_64
sys/procfs.h: several differences
sys/vm86.h: completely missing on x86_64

Comment 1 Bill Nottingham 2004-08-12 00:59:29 UTC
32 bit vm86() doesn't work in 64-bit mode, so not sure having
sys/vm86.h there helps. :)

Comment 3 Jakub Jelinek 2005-03-01 12:40:30 UTC
Together with the recent changes for e.g. gnu/lib-names.h and gnu/stubs.h,
I think all that is needed is fixed by now.