Re: scotty 2.1.5 with Ultrix 4.3a ?

Juergen Schoenwaelder (schoenw@gaertner.de)
Fri, 25 Apr 1997 10:44:05 +0200

bernd@finow.snafu.de (Bernd Hentig) said:

Bernd> I am trying to compile tcl7.6/tk4.2 + scotty 2.1.5 on an ancient
Bernd> Ultrix 4.3a machine, the previous version tcl7.4/tk4.0/scotty 2.0.x
Bernd> compiled + were running stable for the last 12 months or so.

Thanks for sending your report. However, I can't help you to fix the
loading problem on Ultrix. However, I have made some changes in my
sources that hopefully solve some of the minor problems:

Bernd> cc -c -O -G 0 -I. -I./../tnm/generic -I/usr/local/include ./../tnm/generic/tnmDns.c
Bernd> cfe: Error: ./resolv.h: 72: Cannot open file sys/bitypes.h for #include
Bernd> cfe: Error: ./resolv.h: 76: Cannot open file sys/cdefs.h for #include
Bernd> ---
Bernd> O.k., this one is easy, as the resolv.h file in scotty2.1.5/unix won't
Bernd> compile because "bitypes.h" and "cdefs.h" are not available for Ultrix.
Bernd> I removed the unix/resolv.h file and the problem disappeared.
Bernd> I guess changing the include path from -I. to '-I/usr/include
Bernd> -I.' will also fix this, but I'm unsure why the resolv.h is in
Bernd> scotty/unix at all.

The problem here is the configure script which copies a bit too much
from the compat directory into the unix directory. I have changed it
now so that only rpcgen generated files are copied.

Bernd> O.k., the ANSI prototypes for clnt_* are missing here, so cc
Bernd> assumes that clnt_xxx return integers, but int and char * are
Bernd> both 4 bytes on Ultrix, so I ignored the warnings. Perhaps the
Bernd> problem goes away when installing sunrpc.

I don't care about this prototype problem. This happens on several
machines, but it is just a warning and not an error.

Bernd> cfe: Error: ./../tnm/generic/tnmDns.c, line 160: 'INADDR_LOOPBACK' undefined, reoccurrences will not be reported
Bernd> server->S_un.S_addr = htonl(INADDR_LOOPBACK);
Bernd> ---
Bernd> This one is easy too, I merged the following line to tnmUnixPort.h:
Bernd> ---
Bernd> #ifndef INADDR_LOOPBACK
Bernd> #define INADDR_LOOPBACK (u_long)0x7F000001
Bernd> #endif
Bernd> ---
Bernd> and tnmDns.c compiled.

This definition is already in my version of unix/tnmUnixPort.h.

Juergen

-- 
Juergen Schoenwaelder     <schoenw@gaertner.de>     (Tel: +49-531-23873-0)
Gaertner Datensysteme, Hamburger Strasse 273a, 38114 Braunschweig, Germany
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.