用TCP/IP进行网际互联源代码编译修改
1./usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in TCPecho.o
/lib/libc.so.6: could not read symbols: Bad value
删除源文件中的 extern int errno
改为 #include<errno.h>
2. 出现u_short,u_long未声明
在源文件中添加typedef unsigned short u_short;
typedef unsigned long u_long
3.类似提示需要目标/usr/include/sys/ttydev.h
可用locate先定位后,再修改
可能需要修改$I/machine/param.h为 $S/param.h
其他类似
4.phe->h_addr 需要修改成*(phe->h_addr_list)