[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-bug
Subject:    Re: problem with getgrgid when using "gcc -static"
From:       David Stuart <dstuartspam () rogers ! com>
Date:       2002-09-29 19:03:31
[Download RAW message or body]

Interesting,

two follow up questions, though...

When I boot from my 7.2 "rescue" disk, I am able to do the same thing, 
but it works (i.e. the "-static" run reports "users" for the group). 
Does this make sense?

Also,  could this possibly affect another program (like rpm, for instance)?

Zack Weinberg wrote:

>On Sun, Sep 29, 2002 at 12:58:21PM -0400, David Stuart wrote:
>  
>
>>[dave@cpe0080c6f8615f C]$ gcc foo.c -o foo
>>[dave@cpe0080c6f8615f C]$ ./foo
>>uid: 500 gid: 100
>>group=users
>>
>>Everything works fine. But, when I do this:
>>
>>[dave@cpe0080c6f8615f C]$ gcc -static foo.c -o foo
>>[dave@cpe0080c6f8615f 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
>
>  
>




_______________________________________________
Bug-glibc mailing list
Bug-glibc@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-glibc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic