Bug 13008 - undefined reference to `strdupa' in sysdeps/unix/sysv/linux/pathconf.c:99
: undefined reference to `strdupa' in sysdeps/unix/sysv/linux/pathconf.c:99
Status: RESOLVED DUPLICATE of bug 333
Product: glibc
Classification: Unclassified
Component: libc
: 2.14
: P2 normal
: ---
Assigned To: Ulrich Drepper
:
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-20 15:34 UTC by Karsten Hopp
Modified: 2011-07-20 16:16 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Hopp 2011-07-20 15:34:00 UTC
commit 4e5f31c847982997c856f03bbc35134e9fd0f61f added a call to strdupa in
sysdeps/unix/sysv/linux/pathconf.c without adding an #include <string.h>

This breaks builds p.e. on PPC:
/builddir/build/BUILD/glibc-2.14-105-ga6928d5/build-ppc-redhat-linux/libc_pic.os:
In function `distinguish_extX':
/builddir/build/BUILD/glibc-2.14-105-ga6928d5/posix/../sysdeps/unix/sysv/linux/pathconf.c:99:
undefined reference to `strdupa'
collect2: ld returned 1 exit status
make[2]: ***
[/builddir/build/BUILD/glibc-2.14-105-ga6928d5/build-ppc-redhat-linux/libc.so]
Comment 1 Ulrich Drepper 2011-07-20 16:16:04 UTC
This sysstem is not for build problems.

*** This bug has been marked as a duplicate of bug 333 ***