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

Derek Elder (djelder@mtvernon1.accessus.net)
Tue, 19 Dec 1995 19:53:08 -0600 (CST)

I had the exact same errors with 1.2.13, gcc-2.7.0, and libc-4.6.7(?). I
upgraded my system today to Redhat and tkined and scotty both compile
clean first try...one more reason to go ELF, huh?

------------------------------------------------------------------------
^-Derek Elder (618)-244-4187 -^
^-Director - Network Operations Serving the Midwest and -^
^-accessU.S., Inc. Midsouth. -^
^----------------------------------------------------------------------^

On Tue, 19 Dec 1995, Erik Schoenfelder wrote:

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