From utsl@skaro.quic.net  Mon Feb 18 17:29:50 2002
Return-Path: <utsl@skaro.quic.net>
Received: from skaro.quic.net (cvg-65-27-234-192.cinci.rr.com [65.27.234.192])
	by hub.freebsd.org (Postfix) with ESMTP id DD9E137B402
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Feb 2002 17:29:48 -0800 (PST)
Received: (from root@localhost)
	by skaro.quic.net (8.11.3/8.11.3) id g1J1UOl33873;
	Mon, 18 Feb 2002 20:30:24 -0500 (EST)
	(envelope-from utsl)
Message-Id: <200202190130.g1J1UOl33873@skaro.quic.net>
Date: Mon, 18 Feb 2002 20:30:24 -0500 (EST)
From: Nathan Hawkins <uts@quic.net>
Reply-To: Nathan Hawkins <utsl@quic.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ldd in -STABLE fails on libc.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35099
>Category:       bin
>Synopsis:       ldd in -STABLE fails on libc.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sobomax
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 18 17:30:01 PST 2002
>Closed-Date:    Thu May 22 16:18:04 PDT 2003
>Last-Modified:  Thu May 22 16:18:04 PDT 2003
>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:
Responsible-Changed-From-To: freebsd-bugs->sobomax 
Responsible-Changed-By: dd 
Responsible-Changed-When: Fri Mar 8 20:18:49 PST 2002 
Responsible-Changed-Why:  
Maxim added this functionality. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35099 
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Thu May 22 16:17:47 PDT 2003 
State-Changed-Why:  
Fixed both in -current and -stable. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35099 
>Unformatted:
