Summary: | [TRACKER] Packages failing with sys-libs/glibc-2.20 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | SpanKY <vapier> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | tdalman |
Priority: | Normal | Keywords: | Tracker |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 524048, 526382, 526728, 526970, 527190, 527324, 527358, 527360, 527390, 527582, 528354, 528558, 528692, 528768, 528934, 528936, 528938, 529162, 530952, 531248, 531282, 534768, 535838, 537952, 544292, 546364, 549264 | ||
Bug Blocks: |
Description
SpanKY
2014-11-06 16:36:10 UTC
PROBLEM: people try to use "strndup" (as a prototype, variable, struct member, etc...), and end up with errors like: error: expected identifier or '(' before '__extension__' char* strndup(const char* str, size_t n); FIX: don't use the symbol "strndup" :). usually it's because the code shouldn't be declaring a prototype at all, but sometimes the code will need to change to not use that symbol at all. PROBLEM: code uses _BSD_SOURCE or _SVID_SOURCE defines, but glibc has obsoleted them with _DEFAULT_SOURCE. this is a warning emitted by features.h, not an error, but some packages end up failing due to -Werror or other tool usage. FIX: if using -Werror, stop doing that (see bug 260867). if not using -Werror, you might have to fix the tools to not die/parse that #warning message. otherwise, you can migrate to the new define by deleting the old ones entirely (if possible), or using the new _DEFAULT_SOURCE symbol. glibc-2.20 is stable and 2.21 is in ~arch ... closing out |