Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!news.aut.alcatel.at!atusc75!ladavac
From: ladavac@aut.alcatel.at (Marino Ladavac)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can not compile?
Date: 8 Sep 1995 11:07:26 GMT
Organization: Alcatel Austria AG
Lines: 38
Message-ID: <42p85e$l4q@atusks02.aut.alcatel.at>
References: <42o9kq$jan@agate.berkeley.edu>
NNTP-Posting-Host: atusc75.aut.alcatel.at
X-Newsreader: TIN [version 1.2 PL2]
Chun-Yang Chiu (cchiu@uclink.berkeley.edu) wrote:
: Hi:
: It seems that my compiler is not configured properly, but I dont know
: where to find the documents on fixing this problem(I dont even know what
: my problem is :( ). Use the following small program as example:
: #include <stdlib.h>
: main()
: {
: printf("test");
: }
: 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
: I guess it could be the problem of the linker, but how can I fix this
: problem? Thank you very much for helping me!
Could it be that ld.so's cache is incorrect? Did you run ldconfig with
list of directories where libraries can be found?
Otherwise, I don't know.
/Alby
: Chun-Yang Chiu
: -------------------------
: cchiu@uclink.berkeley.edu