From: H.J. Lu (hlu@luke.eecs.wsu.edu)
Date: 01/01/93


From: hlu@luke.eecs.wsu.edu (H.J. Lu)
Subject: Re: libc.a errors with gcc 2.3.3
Date: 1 Jan 1993 07:37:40 GMT

In article <1993Jan1.013916.26835@mintaka.lcs.mit.edu> wyvern@gnu.ai.mit.edu (The Wyvern) writes:
>I just installed gcc 2.3.3 (The 486 version) and everything seems
>fine except for one problem. When I try to compile hello.c
>with the -static option, I get these errors:
>
>/usr/lib/libc.a(printf.o): Undefined symbol _stdout referenced from text segment
>/usr/lib/libc.a(printf.o): Undefined symbol streambuf::vform(const char *, void *) refer
> *) referenced from text segment
>/usr/lib/libc.a(atexit.o): Undefined symbol _malloc referenced from text segment
>/usr/lib/libc.a(exit.o): Undefined symbol __cleanup referenced from text segment
>
>This is using the lib486-4.2.TZ from tsx-11.mit.edu:/pub/linux/GCC/486
>and 486 compiler. When linking with shared libs, jump or nojump, it works
>fine. The problem seems to be only with the static version of 486 libc.
>How can I fix this?
>
>-->Configuration
>i486-33 system
>8mb RAM
>200mb IDE HD
>Linux 0.99.1, GCC 2.3.3-486
>libc.so.4.2 compiled from jump-4.2.TZ sources
>

Blamed me not using 486 :-). Please do

cd /usr/lib
ar -t libtermcap.a

If you don't find __.SYMDEF, please do

cd /tmp
rm -rf usr
tar xvvvofz lib486-4.2.TZ
cd usr/lib
ranlib *.a
cd /tmp
cp -av ./usr /

The one on tsx-11 is fixed.

>Also:
> Is it safe to delete /usr/lib/shlib/jump and nojump?
> I believe these are the gcc 2.2.2d directories for
> the jump libraries and have been replaced with
> lib*.ca and lib*.sa in /usr/lib. Is this correct?
>

Yes.

>

H.J.