Bug 130815
Summary: | gcc 3.[45] with -std=c99, strdup() not declared in string.h | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | John Ellson <john.ellson> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-08-30 06:33:40 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
John Ellson
2004-08-24 21:54:42 UTC
strdup is not an ISO C99 function, string.h is a ISO C99 header. Therefore when requesting strict ISO C99 namespace strdup can't be visible. Please RTFM info libc about feature set macros. Particularly, e.g. gcc -std=c99 -D_POSIX_C_SOURCE=200112L, -std=c99 -D_GNU_SOURCE (and similarly for other feature sets which include strdup) will provide a strdup prototype. *** Bug 130819 has been marked as a duplicate of this bug. *** *** Bug 130825 has been marked as a duplicate of this bug. *** *** Bug 130829 has been marked as a duplicate of this bug. *** |