|
|
README里说在i586-pc-linux-gnu (RedHat Linux 4.2)可以通过,
我的是fc1,$cd lib $make时
- gcc -g -O2 -D_REENTRANT -Wall -c -o connect_nonb.o connect_nonb.c
- In file included from connect_nonb.c:1:
- unp.h:114: error: redefinition of `struct in_pktinfo'
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:10: error: redefinition of `struct addrinfo'
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:22:1: warning: "AI_PASSIVE" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:569:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:23:1: warning: "AI_CANONNAME" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:570:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:29:1: warning: "NI_NOFQDN" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:602:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:30:1: warning: "NI_NUMERICHOST" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:600:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:31:1: warning: "NI_NAMEREQD" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:603:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:32:1: warning: "NI_NUMERICSERV" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:601:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:36:1: warning: "EAI_ADDRFAMILY" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:586:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:37:1: warning: "EAI_AGAIN" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:580:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:38:1: warning: "EAI_BADFLAGS" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:578:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:39:1: warning: "EAI_FAIL" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:581:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:40:1: warning: "EAI_FAMILY" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:583:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:41:1: warning: "EAI_MEMORY" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:587:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:42:1: warning: "EAI_NODATA" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:582:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:43:1: warning: "EAI_NONAME" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:579:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:44:1: warning: "EAI_SERVICE" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:585:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:45:1: warning: "EAI_SOCKTYPE" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:584:1: warning: this is the location of the previous definition
- In file included from unp.h:200,
- from connect_nonb.c:1:
- ../lib/addrinfo.h:46:1: warning: "EAI_SYSTEM" redefined
- In file included from unp.h:21,
- from connect_nonb.c:1:
- /usr/include/netdb.h:588:1: warning: this is the location of the previous definition
- In file included from connect_nonb.c:1:
- unp.h:214: error: redefinition of `struct timespec'
- unp.h:294: error: conflicting types for `gai_strerror'
- /usr/include/netdb.h:620: error: previous declaration of `gai_strerror'
- unp.h:298: error: conflicting types for `getnameinfo'
- /usr/include/netdb.h:629: error: previous declaration of `getnameinfo'
- unp.h:302: error: conflicting types for `gethostname'
- /usr/include/unistd.h:783: error: previous declaration of `gethostname'
- unp.h:322: error: conflicting types for `inet_aton'
- /usr/include/arpa/inet.h:74: error: previous declaration of `inet_aton'
- unp.h:415: warning: `struct pollfd' declared inside parameter list
- unp.h:415: warning: its scope is only this definition or declaration, which is probably not what you want
- make: *** [connect_nonb.o] Error 1
复制代码 |
|