Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2000 16:35:18 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Oscar Bonilla <obonilla@fisicc-ufm.edu>
Cc:        Kris Kennaway <kris@hub.freebsd.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: inner workings of the C compiler
Message-ID:  <20000310163518.M14279@fw.wintelcom.net>
In-Reply-To: <20000310172706.A93660@fisicc-ufm.edu>; from obonilla@fisicc-ufm.edu on Fri, Mar 10, 2000 at 05:27:06PM -0600
References:  <20000308163057.W14279@fw.wintelcom.net> <Pine.BSF.4.21.0003091719340.82270-100000@hub.freebsd.org> <20000310164428.A89006@fisicc-ufm.edu> <20000310152737.J14279@fw.wintelcom.net> <20000310172706.A93660@fisicc-ufm.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
* Oscar Bonilla <obonilla@fisicc-ufm.edu> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000310163518.M14279>