[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#205328: Libc 2.3.2-2 breaks programs staticly linked against 2.3.1



Package: libc6
Version: 2.3.2-2

Any program that (indirectly) uses libnss, staticly linked with older
glibc versions will segfault after 2.3.2 is installed.  I suspect this
is because of a changed internal interface with libnss.

I believe that the problem is that the NSS mechanism uses dynamic
linking even if an executable is linked staticly.

Here's a simple test case for you.

Build it with
      cc -static -o p p.c
under a 2.3.1 glibc; run it under 2.3.2.

It segfaults.

#include <sys/types.h>
#include <pwd.h>
int main(void)
{
	struct passwd *p;
	p = getpwnam("adm");

	return 0;
}



Reply to: