加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Unix Network Programming Episode 2

发布时间:2020-12-15 19:37:01 所属栏目:安全 来源:网络整理
导读:偶然发现其实还有第二卷的源码,就一起编译了。 ./configure # try to figure out all implementation differencescd libmakecd ../pipemake pipeconf./pipeconf /tmp 有一个错误,提示config.h中 In file included from unpipc . h: 7 : 0 ,from daemon_ine

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

./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> */

即可。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读