Bug 13008

Summary: undefined reference to `strdupa' in sysdeps/unix/sysv/linux/pathconf.c:99
Product: glibc Reporter: Karsten Hopp <karsten>
Component: libcAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED DUPLICATE    
Severity: normal Flags: fweimer: security-
Priority: P2    
Version: 2.14   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

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 ***