Bug 502666 - 64 bit distribution is missing 32 bit headers.
64 bit distribution is missing 32 bit headers.
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: glibc (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2009-05-26 16:01 EDT by Audrius Meskauskas
Modified: 2009-05-26 16:07 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-05-26 16:07:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Audrius Meskauskas 2009-05-26 16:01:44 EDT
Description of problem:
When compiling 32 bit executable under 64 bit installation I observe the following error message: 

/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

Search on a web pointed me to the following page:

After that I tried to install 32 bit glibc headers but, indeed, only glibc-headers-2.5-34x86_64 are visible in the package manager.

How reproducible:
I am building the L4 kernel from http://os.inf.tu-dresden.de/drops/download.html so I do not know if it makes sense to go into too big details. I will do if you will report it otherwise should work.
Comment 1 Jakub Jelinek 2009-05-26 16:07:02 EDT
glibc-headers is intentionally shipped for the primary arch only on multilib installs, the headers e.g. on x86_64 are usable both for 32-bit and 64-bit compilation.

What you forgot to install is glibc-devel.i386 in addition to glibc-devel.x86_64,
/usr/include/gnu/stubs-{32,64}.h is provided by glibc-devel, not glibc-headers.

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