Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!helena.MT.net!nate From: nate@trout.sri.MT.net (Nate Williams) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Help: Can not compile FreeBSD-stable Date: 25 Sep 1995 23:15:35 GMT Organization: SRI Intl. - Montana Operations Lines: 57 Message-ID: <447d6n$1jo@helena.MT.net> References: <446uvi$331@agate.berkeley.edu> Reply-To: "Nate Williams" <nate@sneezy.sri.com> NNTP-Posting-Host: trout.sri.mt.net In article <446uvi$331@agate.berkeley.edu>, C.Y. Chiu <chiuc@ute.CS.Berkeley.EDU> wrote: >Hi: > >When I try to compile FreeBSD-stable, I get the following when I compile >crt0.o: First of all, you *need* to subscribe to the freebsd-current mailing lists if you want to run -current. Simply grabbing it is not enough. Second of all, posting to News and not to the mailing list is not a very good way to get your question answered since most of the developers don't have the time to answer questions, and those that do have time are rapidly running out of it. :( The problem you are seeing is solved by doing a 'make world'. However, this will blat new binaries over top of your 2.0.5 system, which may not be what you are trying to do. There is an inconsistancy between the sources you are trying to compile and the include files, which a 'make world' fixes for you. >cc -O2 -DLIBC_SCCS -DDYNAMIC -c -DCRT0 /usr/src/lib/csu/i386/crt0.c -o crt0.o >/usr/src/lib/csu/i386/crt0.c: In function `__do_dynamic_link': >/usr/src/lib/csu/i386/crt0.c:270: `LDSO_VERSION_HAS_DLEXIT' undeclared > (first use this function) >/usr/src/lib/csu/i386/crt0.c:270: (Each undeclared identifier is > reported only once >/usr/src/lib/csu/i386/crt0.c:270: for each function it appears in.) >/usr/src/lib/csu/i386/crt0.c:271: structure has no member named `dlexit' >*** Error code 1 > >I am currently using 2.0.5R. Not quite... >Oh, it seems that dynamic linking in my >system isnt working properly. If I did "cc foo.c", I will get: > >/usr/lib/crt0.o: Undefined symbol `_getenv' referenced from text segment >/usr/lib/crt0.o: Undefined symbol `__startup_setlocale' referenced > from text segment >/usr/lib/crt0.o: Undefined symbol `_exit' referenced from text segment Somehow when doing the upgrade from 2.0.5 to 2.1-stable, you installed some new stuff and left older styff lying around. At this point in time, your safest bet is to shut-down to single user mode and run a make world in /usr/src. In the future, subscribe to the mailing lists and post questions there. :) Nate -- nate@sneezy.sri.com | Research Engineer, SRI Intl. - Montana Operations nate@trout.sri.MT.net | Loving life in God's country, the great state of work #: (406) 449-7662 | Montana. Wanna go fly fishing? I don't charge or home #: (406) 443-7063 | feed you, but I do know the area pretty well.