Unix Network Programming Episode 2

前端之家收集整理的这篇文章主要介绍了Unix Network Programming Episode 2前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

偶然发现其实还有第二卷的源码,就一起编译了。

./configure    # try to figure out all implementation differences

cd lib
make

cd ../pipe
make pipeconf
./pipeconf /tmp

有一个错误提示config.h中

In file included from unpipc.h:7:0,from daemon_inetd.c:1:
../config.h:56:17: error: two or more data types in declaration specifiers
 #define uint8_t unsigned char    /* <sys/types.h> */
                 ^
../config.h:56:26: error: two or more data types in declaration specifiers
 #define uint8_t unsigned char    /* <sys/types.h> */
                          ^
../config.h:57:18: error: two or more data types in declaration specifiers
 #define uint16_t unsigned short    /* <sys/types.h> */
                  ^
../config.h:57:27: error: two or more data types in declaration specifiers
 #define uint16_t unsigned short    /* <sys/types.h> */
                           ^
../config.h:58:18: error: two or more data types in declaration specifiers
 #define uint32_t unsigned int    /* <sys/types.h> */
                  ^
../config.h:58:27: error: two or more data types in declaration specifiers
 #define uint32_t unsigned int    /* <sys/types.h> */
                           ^
make: *** [<builtin>: daemon_inetd.o] Error 1 

因此删除config.h中的

#define uint8_t unsigned char /* <sys/types.h> */
#define uint16_t unsigned short /* <sys/types.h> */
#define uint32_t unsigned int /* <sys/types.h> */

即可。

原文链接:https://www.f2er.com/bash/388331.html

猜你在找的Bash相关文章