Bug 8711

Summary: Statically linking against glibc 2.21 results in broken uid/gid detection
Product: Busybox Reporter: alex hauras <d77190>
Component: OtherAssignee: unassigned
Status: RESOLVED DUPLICATE    
Severity: major CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description alex hauras 2016-02-22 13:31:55 UTC
Dynamically linked busybox:
# ./busybox whoami
root
# ./busybox groups
root bin daemon sys adm disk wheel floppy tape video

Statically linked busybox:
# ./busybox whoami
whoami: unknown uid 0

# ./busybox groups
0groups: unknown ID 0
 1groups: unknown ID 1
 2groups: unknown ID 2
 3groups: unknown ID 3
 4groups: unknown ID 4
 6groups: unknown ID 6
 10groups: unknown ID 10
 11groups: unknown ID 11
 26groups: unknown ID 26
 27groups: unknown ID 27

... And many other applets, which use text uid/gid names (for example login cannot find user, etc)

glibc 2.21, gcc 4.9.3
tried compiling busybox with gcc -O0 with same error.
Comment 1 alex hauras 2016-02-23 06:58:55 UTC

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