[adasockets] Trouble Installing adasockets 1.8.6

Euan McVie em21 at hw.ac.uk
Tue Dec 11 19:20:41 CET 2007


Hi
Am trying to install adasockets using cygwin under win xp. I get the 
following error on make install. Any help appreciated.
$ make install
Making install in src
make[1]: Entering directory `/home/Euan/tmp/src'
gnatmake -g -O2 ../../adasockets-1.8.6/src/split.adb
gcc -c -I../../adasockets-1.8.6/src/ -g -O2 -I- 
../../adasockets-1.8.6/src/split
.adb
gnatbind -x split.ali
gnatlink split.ali -g
gcc -I. -o constants_nodef ../../adasockets-1.8.6/src/constants.c
In file included from ../../adasockets-1.8.6/src/constants.c:93:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/windows.h:90:2: 
war
ning: #warning "The  Win32_Winsock macro name is deprecated.    Please use 
__USE
_W32_SOCKETS instead"
In file included from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32a
pi/windows.h:98,
                 from ../../adasockets-1.8.6/src/constants.c:93:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:103:2: 
w
arning: #warning "fd_set and associated macros have been defined in 
sys/types.
    This may cause runtime problems with W32 sockets"
In file included from 
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32a
pi/windows.h:98,
                 from ../../adasockets-1.8.6/src/constants.c:93:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:109: 
err
or: redefinition of `struct timeval'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:120: 
err
or: redefinition of `struct hostent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:128: 
err
or: redefinition of `struct linger'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:155: 
err
or: redefinition of `struct netent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:161: 
err
or: redefinition of `struct servent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:167: 
err
or: redefinition of `struct protoent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:223: 
err
or: redefinition of `struct in_addr'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:254: 
err
or: redefinition of `struct sockaddr_in'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:336: 
err
or: redefinition of `struct sockaddr'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:356: 
err
or: redefinition of `struct sockaddr_storage'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:536: 
err
or: conflicting types for 'accept'
/usr/include/sys/socket.h:29: error: previous declaration of 'accept' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:536: 
err
or: conflicting types for 'accept'
/usr/include/sys/socket.h:29: error: previous declaration of 'accept' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:537: 
err
or: conflicting types for 'bind'
/usr/include/sys/socket.h:30: error: previous declaration of 'bind' was here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:537: 
err
or: conflicting types for 'bind'
/usr/include/sys/socket.h:30: error: previous declaration of 'bind' was here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:539: 
err
or: conflicting types for 'connect'
/usr/include/sys/socket.h:31: error: previous declaration of 'connect' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:539: 
err
or: conflicting types for 'connect'
/usr/include/sys/socket.h:31: error: previous declaration of 'connect' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:541: 
err
or: conflicting types for 'getpeername'
/usr/include/sys/socket.h:32: error: previous declaration of 'getpeername' 
was h
ere
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:541: 
err
or: conflicting types for 'getpeername'
/usr/include/sys/socket.h:32: error: previous declaration of 'getpeername' 
was h
ere
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:542: 
err
or: conflicting types for 'getsockname'
/usr/include/sys/socket.h:33: error: previous declaration of 'getsockname' 
was h
ere
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:542: 
err
or: conflicting types for 'getsockname'
/usr/include/sys/socket.h:33: error: previous declaration of 'getsockname' 
was h
ere
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:543: 
err
or: conflicting types for 'getsockopt'
/usr/include/sys/socket.h:46: error: previous declaration of 'getsockopt' 
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:543: 
err
or: conflicting types for 'getsockopt'
/usr/include/sys/socket.h:46: error: previous declaration of 'getsockopt' 
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:546: 
err
or: conflicting types for 'listen'
/usr/include/sys/socket.h:34: error: previous declaration of 'listen' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:546: 
err
or: conflicting types for 'listen'
/usr/include/sys/socket.h:34: error: previous declaration of 'listen' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:547: 
err
or: conflicting types for 'recv'
/usr/include/sys/socket.h:35: error: previous declaration of 'recv' was here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:547: 
err
or: conflicting types for 'recv'
/usr/include/sys/socket.h:35: error: previous declaration of 'recv' was here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:548: 
err
or: conflicting types for 'recvfrom'
/usr/include/sys/socket.h:37: error: previous declaration of 'recvfrom' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:548: 
err
or: conflicting types for 'recvfrom'
/usr/include/sys/socket.h:37: error: previous declaration of 'recvfrom' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:549: 
err
or: conflicting types for 'send'
/usr/include/sys/socket.h:39: error: previous declaration of 'send' was here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:549: 
err
or: conflicting types for 'send'
/usr/include/sys/socket.h:39: error: previous declaration of 'send' was here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:550: 
err
or: conflicting types for 'sendto'
/usr/include/sys/socket.h:42: error: previous declaration of 'sendto' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:550: 
err
or: conflicting types for 'sendto'
/usr/include/sys/socket.h:42: error: previous declaration of 'sendto' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:551: 
err
or: conflicting types for 'setsockopt'
/usr/include/sys/socket.h:44: error: previous declaration of 'setsockopt' 
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:551: 
err
or: conflicting types for 'setsockopt'
/usr/include/sys/socket.h:44: error: previous declaration of 'setsockopt' 
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:552: 
err
or: conflicting types for 'shutdown'
/usr/include/sys/socket.h:47: error: previous declaration of 'shutdown' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:552: 
err
or: conflicting types for 'shutdown'
/usr/include/sys/socket.h:47: error: previous declaration of 'shutdown' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:553: 
err
or: conflicting types for 'socket'
/usr/include/sys/socket.h:48: error: previous declaration of 'socket' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:553: 
err
or: conflicting types for 'socket'
/usr/include/sys/socket.h:48: error: previous declaration of 'socket' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:554: 
err
or: conflicting types for 'gethostbyaddr'
/usr/include/netdb.h:139: error: previous declaration of 'gethostbyaddr' was 
her
e
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:554: 
err
or: conflicting types for 'gethostbyaddr'
/usr/include/netdb.h:139: error: previous declaration of 'gethostbyaddr' was 
her
e
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:555: 
err
or: conflicting types for 'gethostbyname'
/usr/include/netdb.h:140: error: previous declaration of 'gethostbyname' was 
her
e
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:555: 
err
or: conflicting types for 'gethostbyname'
/usr/include/netdb.h:140: error: previous declaration of 'gethostbyname' was 
her
e
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:556: 
err
or: conflicting types for 'getservbyport'
/usr/include/netdb.h:149: error: previous declaration of 'getservbyport' was 
her
e
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:556: 
err
or: conflicting types for 'getservbyport'
/usr/include/netdb.h:149: error: previous declaration of 'getservbyport' was 
her
e
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:557: 
err
or: conflicting types for 'getservbyname'
/usr/include/netdb.h:148: error: previous declaration of 'getservbyname' was 
her
e
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:557: 
err
or: conflicting types for 'getservbyname'
/usr/include/netdb.h:148: error: previous declaration of 'getservbyname' was 
her
e
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:558: 
err
or: conflicting types for 'getprotobynumber'
/usr/include/netdb.h:146: error: previous declaration of 'getprotobynumber' 
was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:558: 
err
or: conflicting types for 'getprotobynumber'
/usr/include/netdb.h:146: error: previous declaration of 'getprotobynumber' 
was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:559: 
err
or: conflicting types for 'getprotobyname'
/usr/include/netdb.h:145: error: previous declaration of 'getprotobyname' 
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:559: 
err
or: conflicting types for 'getprotobyname'
/usr/include/netdb.h:145: error: previous declaration of 'getprotobyname' 
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:628: 
err
or: conflicting types for 'htonl'
/usr/include/asm/byteorder.h:30: error: previous declaration of 'htonl' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:628: 
err
or: conflicting types for 'htonl'
/usr/include/asm/byteorder.h:30: error: previous declaration of 'htonl' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:629: 
err
or: conflicting types for 'ntohl'
/usr/include/asm/byteorder.h:28: error: previous declaration of 'ntohl' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:629: 
err
or: conflicting types for 'ntohl'
/usr/include/asm/byteorder.h:28: error: previous declaration of 'ntohl' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:630: 
err
or: conflicting types for 'htons'
/usr/include/asm/byteorder.h:31: error: previous declaration of 'htons' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:630: 
err
or: conflicting types for 'htons'
/usr/include/asm/byteorder.h:31: error: previous declaration of 'htons' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:631: 
err
or: conflicting types for 'ntohs'
/usr/include/asm/byteorder.h:29: error: previous declaration of 'ntohs' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:631: 
err
or: conflicting types for 'ntohs'
/usr/include/asm/byteorder.h:29: error: previous declaration of 'ntohs' was 
here

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:632: 
err
or: conflicting types for 'select'
/usr/include/sys/select.h:31: error: previous declaration of 'select' was 
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:632: 
err
or: conflicting types for 'select'
/usr/include/sys/select.h:31: error: previous declaration of 'select' was 
here
In file included from ../../adasockets-1.8.6/src/constants.c:96:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/ws2tcpip.h:124: 
err
or: redefinition of `struct ip_mreq'
make[1]: *** [constants_nodef] Error 1
make[1]: Leaving directory `/home/Euan/tmp/src'
make: *** [install-recursive] Error 1 





More information about the AdaSockets mailing list