[patch] Fix linking ldconfig when --enable-static-nss (with ChangeLog)
Paul Pluzhnikov
ppluzhnikov@google.com
Sat Feb 25 18:09:00 GMT 2012
On Sat, Feb 11, 2012 at 11:41 AM, Paul Pluzhnikov
<ppluzhnikov@google.com> wrote:
> On Wed, Jan 13, 2010 at 11:17 AM, Paul Pluzhnikov
> <ppluzhnikov@google.com> wrote:
>
>> How about "middle ground" below?
>
> Ping?
>
> I am upgrading to glibc-2.15, and --enable-static-nss is still broken ;-(
Ping? Ping?
The patch allows glibc to build, but --enable-static-nss is now broken
in another way (using git trunk): any statically linked binary will
crash:
(gdb) r
Program received signal SIGSEGV, Segmentation fault.
0x00000000004108b8 in __nss_lookup_function (ni=0x6e5f50,
fct_name=0x4aea7f "getpwnam_r") at nsswitch.c:460
460 size_t namlen = (5 + strlen (ni->library->name) + 1
(gdb) bt
#0 0x00000000004108b8 in __nss_lookup_function (ni=0x6e5f50,
fct_name=0x4aea7f "getpwnam_r") at nsswitch.c:460
#1 0x0000000000410aae in __nss_lookup (ni=0x7fffffffd8b8,
fct_name=0x4aea7f "getpwnam_r", fct2_name=0x0, fctp=0x7fffffffd8b0) at
nsswitch.c:161
#2 0x000000000040e446 in __getpwnam_r (name=0x4ab924 "root",
resbuf=0x6e0ce0, buffer=0x6e5840 "", buflen=1024,
result=0x7fffffffd908) at ../nss/getXXbyYY_r.c:202
#3 0x000000000040e15c in getpwnam (name=0x4ab924 "root") at
../nss/getXXbyYY.c:116
#4 0x0000000000400e86 in main () at t.c:6
(gdb) p ni.library
$1 = (service_library *) 0x0
I can send a patch for this, but if I can't even get the Makefile
patch accepted, then I wouldn't bother.
Thanks,
--
Paul Pluzhnikov
More information about the Libc-alpha
mailing list