Date: Mon, 18 Feb 2002 20:30:24 -0500 (EST) From: Nathan Hawkins <uts@quic.net> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/35099: ldd in -STABLE fails on libc. Message-ID: <200202190130.g1J1UOl33873@skaro.quic.net>
next in thread | raw e-mail | index | archive | help
>Number: 35099
>Category: bin
>Synopsis: ldd in -STABLE fails on libc.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 18 17:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Nathan Hawkins <utsl@quic.net>
>Release: FreeBSD 4.5-RELEASE i386
>Organization:
Quality Internet Communications
>Environment:
System: FreeBSD skaro.quic.net 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Fri Feb 1 12:35:40 EST 2002 root@skaro.quic.net:/skaro/obj/usr/src/sys/GENERIC i386
>Description:
The new ldd support for shared libraries, which is now in -STABLE
doesn't work on libc.
>How-To-Repeat:
# ldd /usr/lib/libc.so.4
/usr/lib/libc.so.4:
ldd: /usr/lib/libc.so.4: (null)
/usr/lib/libc.so.4: exit status 1
>Fix:
Apply the following patch to src/libexec/rtld-elf/rtld.c
--- ldd-fix.diff begins here ---
--- rtld.c.bak Tue Feb 19 00:15:30 2002
+++ rtld.c Tue Feb 19 00:43:00 2002
@@ -1589,7 +1589,12 @@
/* Make list of init functions to call. */
initlist_add_objects(obj, &obj->next, &initlist);
}
- }
+ } else
+ if (ld_tracing) {
+ trace_loaded_objects(obj);
+ wlock_release();
+ exit(0);
+ }
}
GDB_STATE(RT_CONSISTENT,obj ? &obj->linkmap : NULL);
--- ldd-fix.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202190130.g1J1UOl33873>
