This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix linking ldconfig when --enable-static-nss (with ChangeLog)
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 25 Feb 2012 10:08:21 -0800
- Subject: Re: [patch] Fix linking ldconfig when --enable-static-nss (with ChangeLog)
- Authentication-results: mr.google.com; spf=pass (google.com: domain of ppluzhnikov@google.com designates 10.180.80.226 as permitted sender) smtp.mail=ppluzhnikov@google.com; dkim=pass header.i=ppluzhnikov@google.com
- References: <20100113022746.7769A76A5E@ppluzhnikov.mtv.corp.google.com><201001131320.44826.vapier@gentoo.org> <8ac60eac1001131117h61196313mf16ab24e66aadf78@mail.gmail.com><CALoOobOzHMa9QLNi8ZnkArpihxuGrUAGH0YdT8FWSFVJ6MPT0g@mail.gmail.com>
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