Re: BSDI and Tcl/Tk 7.6/4.2 an Scotty 2.1.5

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Tue, 7 Jan 1997 22:40:04 +0100

Ronnie Rudd <rrudd@onr.com> said:

Ronnie> Is it possible to compile Scotty 2.1.5 under BSDI 2.1
Ronnie> with Tcl/Tk 7.6/4.2?

Ronnie> I can run the configure script without a problem,
Ronnie> but when I thry to compile I get the following:

Ronnie> ~/tcl/scotty-2.1.5/unix > make
Ronnie> cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/contrib/include
Ronnie> ./../tnm/generic/tnmDns.c
Ronnie> cc1: Invalid option `-fPIC'

This looks bad. Make sure you are using the correct compiler options
to create position independent code. If BSDI can't build dynamic
loadable Tcl packages, you either have to rewrite the Makefiles and
the Scotty initialization code or you have to fix Tcl7.6 on BSDI (or
the other way round :-).

Ronnie> ./../tnm/generic/tnmDns.c: In function DnsInit:
Ronnie> ./../tnm/generic/tnmDns.c:160: `INADDR_LOOPBACK' undeclared (first use
Ronnie> this function)

This one is interesting. INADDR_LOOPBACK is explicitely defined in
unix/tnmUnixPort.h for those UNIX versions that don't define this
constant. I have no idea why this definitions is not available in
tnmDns.c (which includes tnmPort.h which includes tnmUnixPort.h).
Anyway, copy the define into tnmDns.c if this helps.

Finally, ignore all the warnings that are caused by incompatible
resolver prototypes.
Juergen

-- 
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)