*BSD News Article 50961


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.belwue.de!fu-berlin.de!zib-berlin.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can not compile?
Date: 8 Sep 1995 13:58:12 +0200
Organization: Private U**x site, Dresden.
Lines: 19
Message-ID: <42pb4k$hlr@bonnie.tcd-dresden.de>
References: <42o9kq$jan@agate.berkeley.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Chun-Yang Chiu <cchiu@uclink.berkeley.edu> wrote:

>when I try to compile, be it cc or gcc, I get the following:
>
>/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
>/var/tmp/cc0052351.o: Undefined symbol `_printf' referenced from text segment
>__main.o: Undefined symbol `_atexit' referenced from text segment

What's you "cc" command line?

Looks like you don't link the C lib.
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)