*BSD News Article 52323


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!fu-berlin.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help: Can not compile FreeBSD-stable
Date: 3 Oct 1995 15:55:58 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 25
Message-ID: <44ritu$c00@uriah.heep.sax.de>
References: <446uvi$331@agite.berkeley.edu> <447d6n$1jo@helena.MT.net> <447rta$hlu@agite.berkeley.edu>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

C.Y. Chiu <chiuc@navajo.CS.Berkeley.EDU> wrote:

>>>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

>It didn't work.  I wonder if it has anything to the kernel? I can not compile
>aything including the src due to this problem.  Is there iny document on
>dynamic linking that I might be able to take a look at?

It's nothing with the kernel.  It's completely userland.  I suspect
your shared libc is broken.

Try adding -static to the CFLAGS in your /etc/make.conf to bootstrap
with statically linked binaries, install them, and then try
recompiling the world.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)