Re: Compilation of Scotty under Ultrix

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Mon, 23 Oct 1995 21:46:48 +0100

Hi!

khj@beagle.cs.appstate.edu (Kenneth Jacker) said:

Kenneth> I am using a DECstation 5000 and Ultrix v4.3A. I have
Kenneth> so far sucessfully built and installed tcl7.4 & tk4.0
Kenneth> (using appropriate patches), and tkined. The problems
Kenneth> start appearing towards the end of "making" scotty.
Kenneth> BTW, the following errors are more or less the same
Kenneth> whether I use DEC's 'cc' or 'gcc' (v2.6.3):

Kenneth> cc -c -O -I. -I.. -I./.. -I/usr/local/include
Kenneth> -I/usr/local/include asn1.c cfe: Error:
Kenneth> /usr/include/sys/socket.h, line 131: redeclaration of
Kenneth> 'linger'; previous declaration at line 131 in file
Kenneth> '/usr/include/sys/socket.h'

Kenneth> Anyone have any ideas?

Ultrix does not allow to include some header file more than once. :-(
Here is the excerpt from the Scotty FAQ:

> Some (or all?) Ultrix versions get problems if <sys/socket.h> is
> included more than once. We suggest to fix the
> /usr/include/sys/socket.h header by adding
>
> #ifndef _SYS_SOCKET_H_
> #define _SYS_SOCKET_H_
>
> #endif
>
> around the header. This makes sure that you can include
> <sys/socket.h> multiple times and it does not hurt anything.

Juergen