From owner-freebsd-hackers Tue Apr 2 02:11:06 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA00513 for hackers-outgoing; Tue, 2 Apr 1996 02:11:06 -0800 (PST) Received: from schizo.cdsnet.net (schizo.cdsnet.net [204.118.244.32]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA00503 for ; Tue, 2 Apr 1996 02:11:03 -0800 (PST) Received: (from mrcpu@localhost) by schizo.cdsnet.net (8.7.5/8.6.12) id CAA00538; Tue, 2 Apr 1996 02:10:52 -0800 (PST) Date: Tue, 2 Apr 1996 02:10:52 -0800 (PST) From: Jaye Mathisen To: hackers@freebsd.org Subject: ldconfig problem. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I built the tcl/tk binaries in the ports collection, and it did an ldconfig -m at the end. But wish4.1 barfs with unable to find the tk shlib. So I run ldconfig -r, and sure enough it's not there. so "ldconfig -m /usr/local/lib", thinking that would add it, and it still doesn't. However, other libs in /usr/local/lib it finds fine. Or rather, some it does, some it doesn't. It finds libjpeg, but can't find libtcl* or libtk*. The only thing I notice about these 2 is that the libtk/libtcl's have x.y stuff before the .so, and maybe there's a regex getting muffed in ldconfig. This line looks suspicious in ldconfig: n = sscanf(dp->d_name, "lib%[^.].so.%s", name, rest); A ldconfig -r doesn't show any libraries that have a '.' before the .so. schizo# ls -l lib*so* -r--r--r-- 1 bin bin 126079 Dec 24 03:58 libjpeg.so.6.0 -r--r--r-- 1 root bin 267247 Apr 2 01:26 libtcl7.5.so.1.0 -r--r--r-- 1 bin bin 256764 Dec 24 04:05 libtiff.so.3.3 -r--r--r-- 1 root bin 560527 Apr 2 01:39 libtk4.1.so.1.0 libjpeg.so.6.0 show up, and libtiff show up. Am I like wandering in the dark here? Anyway, this is with 2.1-stable, supped a day or so ago. Anybody have an easy fix? I haven't looked at -current to see what's on it, that box is down currently.