Bug 185932
Summary: | When compiling with --std=c99, drand48 is not in stdlib.h | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Horst H. von Brand <vonbrand> | ||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-03-20 15:38:54 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: | |||||||
Attachments: |
|
Description
Horst H. von Brand
2006-03-20 02:03:35 UTC
Created attachment 126331 [details]
A little test program
That's correct, <stdlib.h> header content is mandated by ISO C99, and drand48 is not an ISO C99 function. Please read info libc 'Feature Test Macros' for details. E.g. -std=gnu99 instead of -std=c99, or -std=c99 -D_GNU_SOURCE, -std=c99 -D_XOPEN_SOURCE=600 and several other switches will provide the drand48 prototype. |