偶然发现其实还有第二卷的源码,就一起编译了。
./configure # try to figure out all implementation differences
cd lib
make
cd ../pipe
make pipeconf
./pipeconf /tmp
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> */
即可。