Bug 172236 - missing C standard headers
missing C standard headers
Product: Fedora
Classification: Fedora
Component: perl (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jason Vas Dias
David Lawrence
: 71513 (view as bug list)
Depends On:
Blocks: 175129
  Show dependency treegraph
Reported: 2005-11-01 14:58 EST by Jason Vas Dias
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version: 5.8.5-18.FC3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-10-04 14:31:33 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 Jason Vas Dias 2005-11-01 14:58:20 EST
Description of problem:

All perl versions on Linux / glibc / gcc systems fail to look for the 
C standard header files in the correct location, eg. :

  stddef.h  syslimits.h  stdarg.h  float.h  stdbool.h  

These are gcc built-in headers, and cpp searches for them in the gcc 
architecture specific include directory before the system include directory:

During the perl build, perl does not look for any headers in the 
gcc architecture specific include directory, but instead either 
fails to find the header at all, or finds versions of them used 
only by the kernel, eg. as shown by this excerpt from a log of a 
Rawhide perl build :
+ for i in asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h sys/socket.h
sys/time.h wait.h ...
+ /var/tmp/perl-5.8.7-0.5.fc5-root-jvdias//usr/bin/perl
/var/tmp/perl-5.8.7-0.5.fc5-root-jvdias//usr/bin/h2ph -a -d
Can't open syslimits.h: No such file or directory
syslimits.h -> syslimits.ph

( empty syslimits.ph - no syslimits.ph shipped )

+ /var/tmp/perl-5.8.7-0.5.fc5-root-jvdias//usr/bin/perl
/var/tmp/perl-5.8.7-0.5.fc5-root-jvdias//usr/bin/h2ph -a -d
linux/stddef.h -> linux/stddef.ph

No <stddef.h> shipped, only <linux/stddef.h>, which is meant to be used only
by the kernel.

This results in many system headers that reference the C standard headers 
being unusable because the C standard headers are not found 
(eg. sys/resource.ph -> bits/resource.ph -> linux/types.ph -> stddef.ph 
 -> stddef.ph not found,
 bug 170088 ).

The perl build process should find the C standard headers in their correct 
location, as many system perl headers that are shipped by perl reference them.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
$ perl -e 'require "sys/resource.ph";'
Actual results:
Fails due to missing stddef.ph

Expected results:
No error

Additional info:
Comment 1 Warren Togami 2005-11-01 15:35:08 EST
*** Bug 71513 has been marked as a duplicate of this bug. ***
Comment 2 Jason Vas Dias 2005-11-01 18:23:31 EST
This bug is now fixed with perl-5.8.7-0.7.fc5+ (Rawhide) .
Upstream perl bug 37582 has been raised on this issue, with the patch.
Comment 4 Fedora Update System 2005-12-01 18:57:20 EST
From User-Agent: XML-RPC

perl-5.8.5-18.FC3 has been pushed for FC3, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.

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