Thread: Unix Network Programming : The Sockets Networking API
hi,
i've trying learn using book unix network programming : sockets networking api, w. richard stevens. please me following problem.
downloaded file unpv12ep-0.2.tar.gz http://www.kegel.com/unpv1/
did per suggestions came these errors.
(i saved in templates directory)
code: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 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: 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 gai_hdr.h:1:0, getaddrinfo.c:2: unp.h:114:8: error: redefinition of ‘struct in_pktinfo’ /usr/include/i386-linux-gnu/bits/in.h:113:8: note: defined here getaddrinfo.c: in function ‘getaddrinfo’: getaddrinfo.c:58:6: error: ‘eai_addrfamily’ undeclared (first use in function) getaddrinfo.c:58:6: note: each undeclared identifier reported once each function appears in getaddrinfo.c:116:21: error: ‘eai_nodata’ undeclared (first use in 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 unproute.h:1:0, 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: defined here in file included 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 unpxti.h:5:0, wrapxti.c:5: unp.h:114:8: error: redefinition of ‘struct in_pktinfo’ /usr/include/i386-linux-gnu/bits/in.h:113:8: note: defined here in file included 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 unpxti.h:5:0, wrapxti.c:5: unp.h:114:8: error: redefinition of ‘struct in_pktinfo’ /usr/include/i386-linux-gnu/bits/in.h:113:8: note: defined here in file included 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 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: defined here make: *** [daytimetcpcli.o] error 1
without solving these errors, guess can't use book much. i'd appreciate if me out here. thank time , efforts in advance.
moved programming talk, should more appropriate audience.
note referred download page says last updated 10 years ago, , there problems linux compatibility then. suspect there may quite lot of work in getting code modified work on current linux systems.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Unix Network Programming : The Sockets Networking API
Ubuntu
Comments
Post a Comment