Compilation of Scotty under Ultrix

Kenneth Jacker (khj@beagle.cs.appstate.edu)
Sat, 21 Oct 95 12:11:14 EDT

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

-------------------------------------------------------------------------
cc -c -O -I. -I.. -I./.. -I/usr/local/include -I/usr/local/include asn1.c
cfe: Error: /usr/include/sys/socket.h, line 131: redeclaration of 'linger'; previous declaration at line 131 in file '/usr/include/sys/socket.h'
struct linger {
------ ^
cfe: Error: /usr/include/sys/socket.h, line 132: Duplicate member 'l_onoff'
int l_onoff;
--- ^
cfe: Error: /usr/include/sys/socket.h, line 133: Duplicate member 'l_linger'
int l_linger;
--- ^
cfe: Error: /usr/include/sys/socket.h, line 172: redeclaration of 'sockaddr'; previous declaration at line 172 in file '/usr/include/sys/socket.h'
struct sockaddr {
-------^
cfe: Error: /usr/include/sys/socket.h, line 173: Duplicate member 'sa_family'
u_short sa_family;
------- ^
cfe: Error: /usr/include/sys/socket.h, line 174: Duplicate member 'sa_data'
char sa_data[14];
---- ^
cfe: Error: /usr/include/sys/socket.h, line 181: redeclaration of 'sockproto'; previous declaration at line 181 in file '/usr/include/sys/socket.h'
struct sockproto {
-------^
cfe: Error: /usr/include/sys/socket.h, line 182: Duplicate member 'sp_family'
u_short sp_family;
------- ^
cfe: Error: /usr/include/sys/socket.h, line 183: Duplicate member 'sp_protocol'
u_short sp_protocol;
------- ^
cfe: Error: /usr/include/sys/socket.h, line 221: redeclaration of 'msghdr'; previous declaration at line 221 in file '/usr/include/sys/socket.h'
struct msghdr {
-------^
cfe: Error: /usr/include/sys/socket.h, line 222: Duplicate member 'msg_name'
caddr_t msg_name;
------- ^
cfe: Error: /usr/include/sys/socket.h, line 223: Duplicate member 'msg_namelen'
int msg_namelen;
--- ^
cfe: Error: /usr/include/sys/socket.h, line 224: Duplicate member 'msg_iov'
struct iovec *msg_iov;
------ -------^
cfe: Error: /usr/include/sys/socket.h, line 225: Duplicate member 'msg_iovlen'
int msg_iovlen;
--- ^
cfe: Error: /usr/include/sys/socket.h, line 226: Duplicate member 'msg_accrights'
caddr_t msg_accrights;
------- ^
cfe: Error: /usr/include/sys/socket.h, line 227: Duplicate member 'msg_accrightslen'
int msg_accrightslen;
--- ^
*** Error code 1

Stop.
*** Error code 1

Stop.
-------------------------------------------------------------------------

Anyone have any ideas?

-Prof Kenneth H Jacker Internet: khj@cs.appstate.edu
-Computer Science Dept Bitnet: jackerkh@appstate
-Appalachian State Univ
-Boone, NC 28608 URL: http://www.cs.appstate.edu/u/khj/