Arun
2012-01-08 03:54:47 UTC
Besides below are the errors that I get in terminal
arun@arun:~/Templates/unpv12e$ cd lib
arun@arun:~/Templates/unpv12e/lib$ make
gcc -g -O2 -D_REENTRANT -Wall -c -o connect_nonb.o connect_nonb.c
In file included from connect_nonb.c:1:0:
unp.h:114:8: error: redefinition of ‘struct in_pktinfo’
/usr/include/i386-linux-gnu/bits/in.h:113:8: note: originally defined here
make: *** [connect_nonb.o] Error 1
arun@arun:~/Templates/unpv12e/libfree$ cd ../libgai
arun@arun:~/Templates/unpv12e/libgai$ make
gcc -g -O2 -D_REENTRANT -Wall -c -o getaddrinfo.o getaddrinfo.c
In file included from gai_hdr.h:1:0,
from getaddrinfo.c:2:
unp.h:114:8: error: redefinition of ‘struct in_pktinfo’
/usr/include/i386-linux-gnu/bits/in.h:113:8: note: originally defined here
getaddrinfo.c: In function ‘getaddrinfo’:
getaddrinfo.c:58:6: error: ‘EAI_ADDRFAMILY’ undeclared (first use in this function)
getaddrinfo.c:58:6: note: each undeclared identifier is reported only once for each function it appears in
getaddrinfo.c:116:21: error: ‘EAI_NODATA’ undeclared (first use in this function)
make: *** [getaddrinfo.o] Error 1
arun@arun:~/Templates/unpv12e/libgai$ cd ../libroute
arun@arun:~/Templates/unpv12e/libroute$ make
gcc -g -O2 -D_REENTRANT -Wall -c -o get_rtaddrs.o get_rtaddrs.c
In file included from unproute.h:1:0,
from get_rtaddrs.c:1:
unp.h:114:8: error: redefinition of ‘struct in_pktinfo’
/usr/include/i386-linux-gnu/bits/in.h:113:8: note: originally defined here
In file included from get_rtaddrs.c:1:0:
unproute.h:3:45: fatal error: net/if_dl.h: No such file or directory
compilation terminated.
make: *** [get_rtaddrs.o] Error 1
arun@arun:~/Templates/unpv12e/libroute$ cd ../libxti
arun@arun:~/Templates/unpv12e/libxti$ make
gcc -g -O2 -D_REENTRANT -Wall -c -o wrapxti.o wrapxti.c
In file included from unpxti.h:5:0,
from wrapxti.c:5:
unp.h:114:8: error: redefinition of ‘struct in_pktinfo’
/usr/include/i386-linux-gnu/bits/in.h:113:8: note: originally defined here
In file included from wrapxti.c:5:0:
unpxti.h:7:17: fatal error: xti.h: No such file or directory
compilation terminated.
make: *** [wrapxti.o] Error 1
arun@arun:~/Templates/unpv12e/libxti$ make
gcc -g -O2 -D_REENTRANT -Wall -c -o wrapxti.o wrapxti.c
In file included from unpxti.h:5:0,
from wrapxti.c:5:
unp.h:114:8: error: redefinition of ‘struct in_pktinfo’
/usr/include/i386-linux-gnu/bits/in.h:113:8: note: originally defined here
In file included from wrapxti.c:5:0:
unpxti.h:7:17: fatal error: xti.h: No such file or directory
compilation terminated.
make: *** [wrapxti.o] Error 1
arun@arun:~/Templates/unpv12e/libxti$ cd ../intro
arun@arun:~/Templates/unpv12e/intro$ make daytimetcpcli
gcc -g -O2 -D_REENTRANT -Wall -c -o daytimetcpcli.o daytimetcpcli.c
In file included from daytimetcpcli.c:1:0:
unp.h:114:8: error: redefinition of ‘struct in_pktinfo’
/usr/include/i386-linux-gnu/bits/in.h:113:8: note: originally defined here
make: *** [daytimetcpcli.o] Error 1
Apart from that is there any other simpler method that I can use so that I can run the programms in the book?