Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 528456 (glibc-2.20)

Summary: [TRACKER] Packages failing with sys-libs/glibc-2.20
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: [OLD] Core systemAssignee: 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 gentoo-dev 2014-11-06 16:36:10 UTC
- Please file a new bug for each package that fails with glibc-2.20 and have it block this one.

- The new bug should be assigned to the maintainer of the package. Please do not CC toolchain.

- *DO NOT* use this bug for any problems with glibc-2.20 itself. Instead, file a
NEW bug describing your issue and it will be assigned by a bug wrangler.
Comment 1 SpanKY gentoo-dev 2014-11-06 16:40:44 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.
Comment 2 SpanKY gentoo-dev 2014-11-06 16:45:15 UTC
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.
Comment 3 SpanKY gentoo-dev 2015-07-21 03:51:23 UTC
glibc-2.20 is stable and 2.21 is in ~arch ... closing out