From owner-freebsd-questions Mon Nov 3 06:28:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA05569 for questions-outgoing; Mon, 3 Nov 1997 06:28:11 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from novera-bh.novera.com (novera-bh.novera.com [205.181.37.66]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id GAA05558 for ; Mon, 3 Nov 1997 06:28:05 -0800 (PST) (envelope-from jeffa@novera.com) Received: (from uucp@localhost) by novera-bh.novera.com (8.6.12/8.6.11) id JAA14400 for ; Mon, 3 Nov 1997 09:28:03 -0500 Received: from 200.0.0.60 by novera-bh.novera.com via smap (3.2) id xma014395; Mon, 3 Nov 97 09:28:00 -0500 Received: from novera.com by epic.novera.com (SMI-8.6/SMI-SVR4) id JAA28545; Mon, 3 Nov 1997 09:23:16 -0500 Message-ID: <345DDF8E.FD3B3A9@novera.com> Date: Mon, 03 Nov 1997 09:28:30 -0500 From: Jeffrey Anuszczyk Reply-To: jeffa@novera.com Organization: Novera Software, Inc. X-Mailer: Mozilla 4.03 [en] (WinNT; I) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Question about shared library loading under 2.2.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi All, I've been trying to get the UMich. LDAP server located in ports/net/ldap over the weekend. I took the shortcut and installed the ldap-3.3 package on the 2.2.2 CD-ROM. However when I tried to build the database I was getting core dumps. It took me a while, but I finally tracked it down to /usr/lib/libc.so.3.0 failing to be loaded for ldif2id2children. This causes any reference to a symbol in libc to SEGV (i.e., memset(), strtok(), etc.). To confirm this I rebuilt the images using -static and all is well. To doubly confirm I turned on the environment variable for ld.so that tells it to list all shared libraries it will be loading and then exit. For all images it reported it would load "-lc.3.0 -> /usr/lib/libc.so.3.0" (forgive me but I'm doing the exact text from memory here). However when I explicitly run ldif2id2children it reports no shared libraries being loaded. Hmmm, I'm puzzled as to what's up. I rebuilt the images the "normal" way (make clean; make ; make install). nm reports all is well but this image seems to have no reference to libc even though it needs to. FYI: I have linux emulation enabled (for jdk1.1.3 support). Any thoughts on why this is happening? What I can check? I've worked around this by making the images static. But I only have 24MB on this system so I'd rather use the shared libraries. Thoughts, hints, suggestions most welcome! - Jeff