This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Somebody might want to look at nss_db. It seems broken when used in statically linked applications.
---------------. ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Red Hat `--' drepper at redhat.com `------------------------
- To: drepper at redhat dot com
- Subject: makedb and libnss_db in glibc 2.1.91 are broken
- From: Jan Rekorajski <baggins at sith dot mimuw dot edu dot pl>
- Date: Tue, 18 Jul 2000 23:52:31 +0200
Hi, Bug in makedb is simple and fix obvious, patch attached. (wrong check for return value from load_db()) As for libnss_db the problem is that it does not work, almost every staticaly linked program segfaults. I did recompile/relink all libs, gcc and offending program but it didn't help. Only removing references to "db" from /etc/nsswitch.conf or running nscd helps. Even deleting the databases didn't. Jan -- Jan Rękorajski | ALL SUSPECTS ARE GUILTY. PERIOD! baggins<at>mimuw.edu.pl | OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY? BOFH, type MANIAC | -- TROOPS by Kevin RubioIndex: makedb.c =================================================================== RCS file: /cvs/glibc/libc/nss/makedb.c,v retrieving revision 1.4 diff -u -r1.4 makedb.c --- makedb.c 2000/01/08 05:26:58 1.4 +++ makedb.c 2000/07/18 21:38:17 @@ -138,7 +138,7 @@ /* First load the shared object to initialize version dependend variables. */ - if (load_db ()) + if (load_db () != NSS_STATUS_SUCCESS) error (EXIT_FAILURE, 0, gettext ("No usable database library found.")); /* Special handling if we are asked to print the database. */
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |