From owner-freebsd-hackers Fri Mar 10 16: 3:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 2DB0B37BA75; Fri, 10 Mar 2000 16:03:29 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id QAA24861; Fri, 10 Mar 2000 16:35:18 -0800 (PST) Date: Fri, 10 Mar 2000 16:35:18 -0800 From: Alfred Perlstein To: Oscar Bonilla Cc: Kris Kennaway , freebsd-hackers@FreeBSD.ORG Subject: Re: inner workings of the C compiler Message-ID: <20000310163518.M14279@fw.wintelcom.net> References: <20000308163057.W14279@fw.wintelcom.net> <20000310164428.A89006@fisicc-ufm.edu> <20000310152737.J14279@fw.wintelcom.net> <20000310172706.A93660@fisicc-ufm.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000310172706.A93660@fisicc-ufm.edu>; from obonilla@fisicc-ufm.edu on Fri, Mar 10, 2000 at 05:27:06PM -0600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Oscar Bonilla [000310 16:00] wrote: > On Fri, Mar 10, 2000 at 03:27:37PM -0800, Alfred Perlstein wrote: > > I think you'll want LD_LIBRARY_PATH to be: > > /home/obonilla/freebsd/nss/libc/:/usr/lib:/usr/local/lib > > I don't see why since the only library I use is libc. Anyway, I tried > just for kicks and still got the same error. > > $ echo $LD_LIBRARY_PATH > /home/obonilla/freebsd/nss/libc:/usr/lib:/usr/local/lib > $ echo $LD_PRELOAD > /home/obonilla/freebsd/nss/libc/libc.so.4 > $ make > cc -g -DYP -DFreeBSD -Wall -pedantic -ansi -o nss-test -I../../libc/include nss-test.c > /tmp/ccE93722.o: In function `main': > /home/obonilla/freebsd/nss/tests/libc/nss-test.c(.text+0xb0): undefined reference to `nsdispatch' > *** Error code 1 > > Stop in /usr/home/obonilla/freebsd/nss/tests/libc. > > > please use the dynamic, it's a hell of a lot easier. > > sure, as soon as it works I'll use it ;) It seems to be working just fine, I suspect that there's something wrong with your code and you're referencing a function that somehow is not being compiled into libc: ~ % nm /usr/lib/libc.a | grep nsdispatch ~ % is this a function you've added? Are you _sure_ it's being compiled into the libc you're making? -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message