[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with getgrgid when using "gcc -static"
From: |
Zack Weinberg |
Subject: |
Re: problem with getgrgid when using "gcc -static" |
Date: |
Sun, 29 Sep 2002 10:06:44 -0700 |
User-agent: |
Mutt/1.4i |
On Sun, Sep 29, 2002 at 12:58:21PM -0400, David Stuart wrote:
>
> address@hidden C]$ gcc foo.c -o foo
> address@hidden C]$ ./foo
> uid: 500 gid: 100
> group=users
>
> Everything works fine. But, when I do this:
>
> address@hidden C]$ gcc -static foo.c -o foo
> address@hidden C]$ ./foo
> uid: 500 gid: 100
> group=(null)
Statically linking the program makes it unable to load the 'name
service switch' modules which look up the group name. Don't
statically link programs that need to use any of the getXXbyYY or
getXXid routines.
zw