[adasockets] Building adasockets 1.8.4.7 on Windows XP
Roger Blum
roger_blum at swissonline.ch
Tue Aug 16 03:41:21 CEST 2005
Hi,
I am trying to build the current version of AdaSockets on my Windows XP
machine (with current installation of cygwin).
"./configure --prefix=/usr/local" works without problem.
"make install" gives me a list of warnings and errors:
$ make install
Making install in src
make[1]: Entering directory
`/cygdrive/f/Development/Ada/adasockets-1.8.4.7/src'
gnatmake -g -O2 ./split.adb
gcc -c -I./ -g -O2 -I- ./split.adb
gnatbind -x split.ali
gnatlink split.ali -g
cd .. && /bin/sh
/cygdrive/f/Development/Ada/adasockets-1.8.4.7/support/missing
--run autoheader
rm -f stamp-h1
touch config.h.in
cd .. && /bin/sh ./config.status src/config.h
config.status: creating src/config.h
config.status: src/config.h is unchanged
gcc -I. -o constants_nodef ./constants.c
In file included from ./constants.c:85:
/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 ./constants.c:85:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:95:2:
wa
rning: #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 ./constants.c:85:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:101:
err
or: redefinition of `struct timeval'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:112:
err
or: redefinition of `struct hostent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:120:
err
or: redefinition of `struct linger'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:147:
err
or: redefinition of `struct netent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:153:
err
or: redefinition of `struct servent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:159:
err
or: redefinition of `struct protoent'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:215:
err
or: redefinition of `struct in_addr'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:246:
err
or: redefinition of `struct sockaddr_in'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:327:
err
or: redefinition of `struct sockaddr'
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:515:
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:515:
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:516:
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:516:
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:518:
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:518:
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:520:
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:520:
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:521:
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:521:
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:522:
err
or: conflicting types for 'getsockopt'
/usr/include/sys/socket.h:44: error: previous declaration of 'getsockopt'
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:522:
err
or: conflicting types for 'getsockopt'
/usr/include/sys/socket.h:44: error: previous declaration of 'getsockopt'
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:525:
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:525:
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:526:
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:526:
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:527:
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:527:
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:528:
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:528:
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:529:
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:529:
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:530:
err
or: conflicting types for 'setsockopt'
/usr/include/sys/socket.h:43: error: previous declaration of 'setsockopt'
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:530:
err
or: conflicting types for 'setsockopt'
/usr/include/sys/socket.h:43: error: previous declaration of 'setsockopt'
was he
re
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:531:
err
or: conflicting types for 'shutdown'
/usr/include/sys/socket.h:45: error: previous declaration of 'shutdown' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:531:
err
or: conflicting types for 'shutdown'
/usr/include/sys/socket.h:45: error: previous declaration of 'shutdown' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:532:
err
or: conflicting types for 'socket'
/usr/include/sys/socket.h:46: error: previous declaration of 'socket' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:532:
err
or: conflicting types for 'socket'
/usr/include/sys/socket.h:46: error: previous declaration of 'socket' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:533:
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:533:
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:534:
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:534:
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:535:
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:535:
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:536:
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:536:
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:537:
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:537:
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:538:
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:538:
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:607:
err
or: conflicting types for 'htonl'
/usr/include/asm/byteorder.h:36: error: previous declaration of 'htonl' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:607:
err
or: conflicting types for 'htonl'
/usr/include/asm/byteorder.h:36: error: previous declaration of 'htonl' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:608:
err
or: conflicting types for 'ntohl'
/usr/include/asm/byteorder.h:34: error: previous declaration of 'ntohl' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:608:
err
or: conflicting types for 'ntohl'
/usr/include/asm/byteorder.h:34: error: previous declaration of 'ntohl' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:609:
err
or: conflicting types for 'htons'
/usr/include/asm/byteorder.h:37: error: previous declaration of 'htons' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:609:
err
or: conflicting types for 'htons'
/usr/include/asm/byteorder.h:37: error: previous declaration of 'htons' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:610:
err
or: conflicting types for 'ntohs'
/usr/include/asm/byteorder.h:35: error: previous declaration of 'ntohs' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:610:
err
or: conflicting types for 'ntohs'
/usr/include/asm/byteorder.h:35: error: previous declaration of 'ntohs' was
here
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/winsock2.h:611:
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:611:
err
or: conflicting types for 'select'
/usr/include/sys/select.h:31: error: previous declaration of 'select' was
here
In file included from ./constants.c:88:
/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
`/cygdrive/f/Development/Ada/adasockets-1.8.4.7/src'
make: *** [install-recursive] Error 1
What am I missing or doing wrong?
Thanks for your help,
Roger
More information about the AdaSockets
mailing list