Re: scotty 2.0.2 compile error on linux 1.2.0/gcc 2.5.8

Erik Schoenfelder (schoenfr@ibr.cs.tu-bs.de)
Tue, 19 Dec 1995 22:56:12 +0100

Hi!

Udo> A few days ago bernd@finow.snafu.de (Bernd Hentig) reported
Udo> some problems during compilation of scotty-2.0.2.
Udo> I do also have problems compiling scotty-2.0.2 on my linux-box
Udo> (linux 1.2.0/gcc 2.5.8) with quite similar error messages:

Udo> ....
Udo> cc -o scotty scotty.o libscotty.a /usr/local/lib/libtk4.0.a -L/usr/X11R6/lib -lX11
Udo> -ltclx /usr/local/lib/libtcl7.4.a -L/usr/homes/buergel/Minerva/lib -lmsql -lexpect -lieee -lm
Udo> libscotty.a(sunrpc.o): Undefined symbol _etherproc_on_1 referenced from text segment
Udo> libscotty.a(sunrpc.o): Undefined symbol _etherproc_getdata_1 referenced from text segment
Udo> [...]

today, i saw this on a good 'ole 1.2.9 box, with gcc v2.5.8 and good
'ole aout libc (ELF - shiver ;-)

anyway, it seems, the ranlib command is buggy (did i say good 'ole
times ?).

removing the ranlib commands from tcpip/Makefile and snmp/Makefile and
adding one ranlib line to the Makefile just before linking scotty
seems to help.

another successful try was to rebuild the libscotty.a (well, after
getting the error), by hand:

mkdir xx ; cd xx ; ar xv ../libscotty.a
rm ../libscotty.a ; ar cru ../libscotty.a *.o
cd .. ; ranlib libscotty.a

and make again.

Erik