由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - unix network programming (Stevens) book V1 (2ed, 3ed) code cannot run on Linux
相关主题
Re: 有没有什么网络函数能够 (转载)ft. postfix! postfix!
问问Linux kernel network实现的问题why /etc/network/interfaces doesn't show "eth0"
关于samba/cifs的速度won't take the eth0 config from /etc/network/interaces
为什么resolv.conf总被复原make ubuntu to use static ip in command line
网络设置问题2 default gateway when have 2 eth interfaces
用ubuntu问题集锦dns-nameservers field in /etc/network/interface
求助:ubuntu上不了网(非无线)请教:多个无线网络自动登录问题
请推荐本embedded system的经典书如何使windows程序跟linux程序协调工作?
相关话题的讨论汇总
话题: ntop话题: inet话题: 226话题: error话题: nonb
进入Linux版参与讨论
1 (共1页)
l******9
发帖数: 579
1
I am trying to download and run the c code on Linux for
UNIX Network Programming, Volume 1, Second Edition: Networking APIs: Sockets
and XTI, Prentice Hall, 1998, ISBN 0-13-490012-X. It is by W. Stevens
Richard
http://kohala.com/start/unpv12e/unpv12e.tar.gz
But, when I build the code, I got error:
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â
make: *** [connect_nonb.o] Error 1
I commented out struct in_pktinfo. Then I got new errors:
gcc -g -O2 -D_REENTRANT -Wall -c -o in_cksum.o in_cksum.c
gcc -g -O2 -D_REENTRANT -Wall -c -o inet_ntop.o inet_ntop.c
inet_ntop.c: In function âinet_ntopâ:
inet_ntop.c:61: error: argument âsizeâ doesnât match
prototype
/usr/include/arpa/inet.h:67: error: prototype declaration
make: *** [inet_ntop.o] Error 1
I do not want to debug for the whole 575 files one by one.
Where can I get new code without these errors ? the new version book has bug
-free code ?
The old code is only for old OS.
Thanks
1 (共1页)
进入Linux版参与讨论
相关主题
如何使windows程序跟linux程序协调工作?网络设置问题
请问网络高手用ubuntu问题集锦
求升级淘汰的老主板求助:ubuntu上不了网(非无线)
请推荐一本入门书吧请推荐本embedded system的经典书
Re: 有没有什么网络函数能够 (转载)ft. postfix! postfix!
问问Linux kernel network实现的问题why /etc/network/interfaces doesn't show "eth0"
关于samba/cifs的速度won't take the eth0 config from /etc/network/interaces
为什么resolv.conf总被复原make ubuntu to use static ip in command line
相关话题的讨论汇总
话题: ntop话题: inet话题: 226话题: error话题: nonb