Bug 8711 - Statically linking against glibc 2.21 results in broken uid/gid detection
Summary: Statically linking against glibc 2.21 results in broken uid/gid detection
Status: RESOLVED DUPLICATE of bug 8706
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-22 13:31 UTC by alex hauras
Modified: 2016-02-23 06:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***