unpipc.h下载和编译
来源:互联网 发布:pdm软件排名 编辑:程序博客网 时间:2024/05/18 13:30
http://blog.chinaunix.net/uid-27164517-id-3320677.html
1. 编译原书所带例子:
unpv22e.tar.gz 下载地址:http://www.kohala.com/start/unpv22e/unpv22e.tar.gz
2. 解压:
$tar -zxvf unpv22e.tar.gz
3. 编译:
$cd unpv22e
$ ./configure
$ cd lib
$ make
gcc -g -O2 -D_REENTRANT -Wall -D_POSIX_PTHREAD_SEMANTICS -c -odaemon_inetd.o daemon_inetd.c
In file included from /usr/include/netinet/in.h:23,
from /usr/include/rpc/types.h:90,
from /usr/include/rpc/rpc.h:41,
from unpipc.h:115,
from daemon_inetd.c:1:
/usr/include/stdint.h:49: 错误:重复的 'unsigned'
/usr/include/stdint.h:49: 错误:声明指定了两个以上的数据类型
/usr/include/stdint.h:50: 错误:重复的 'unsigned'
/usr/include/stdint.h:50: 错误:重复的 'short'
/usr/include/stdint.h:52: 错误:重复的 'unsigned'
/usr/include/stdint.h:52: 错误:声明指定了两个以上的数据类型
make: *** [daemon_inetd.o] 错误 1
修改unpipc.h第115行。unpipc.h中把115内容注释掉。再次编译。
$ make
gcc -g -O2 -D_REENTRANT -Wall -D_POSIX_PTHREAD_SEMANTICS -c -odaemon_inetd.o daemon_inetd.c
In file included from daemon_inetd.c:1:
unpipc.h:479: 错误:expected '=', ',', ';', 'asm' or '__attribute__'before '*' token
unpipc.h:480: 错误:expected ')' before '*' token
make: *** [daemon_inetd.o] 错误 1
把unpipc.h中第479,480行注释掉。再次编译。
$ make
...
gcc -g -O2 -D_REENTRANT -Wall -D_POSIX_PTHREAD_SEMANTICS -c -owrapsunrpc.o wrapsunrpc.c
wrapsunrpc.c:3: 错误:expected '=', ',', ';', 'asm' or'__attribute__' before '*' token
wrapsunrpc.c:16: 错误:expected ')' before '*' token
make: *** [wrapsunrpc.o] 错误 1
修改unpv22e/Make.defines中的LIB_OBJS的".o"文件,删除"wrapsunrpc.o"。
再次编译。
$ make
--这次应该没有问题了。
unpv22e.tar.gz 下载地址:http://www.k
2. 解压:
$tar -zxvf unpv22e.tar.gz
3. 编译:
$cd unpv22e
$ ./configure
$ cd lib
$ make
gcc -g -O2 -D_REENTRANT -Wall -D_POSIX_PTHREAD_SEMANTICS -c -odaemon_inetd.o daemon_inetd.c
In file included from /usr/include/netinet/in.h:23,
from /usr/include/rpc/types.h:90,
from /usr/include/rpc/rpc.h:41,
from unpipc.h:115,
from daemon_inetd.c:1:
/usr/include/stdint.h:49: 错误:重复的 'unsigned'
/usr/include/stdint.h:49: 错误:声明指定了两个以上的数据类型
/usr/include/stdint.h:50: 错误:重复的 'unsigned'
/usr/include/stdint.h:50: 错误:重复的 'short'
/usr/include/stdint.h:52: 错误:重复的 'unsigned'
/usr/include/stdint.h:52: 错误:声明指定了两个以上的数据类型
make: *** [daemon_inetd.o] 错误 1
修改unpipc.h第115行。unpipc.h中把115内容注释掉。再次编译。
$ make
gcc -g -O2 -D_REENTRANT -Wall -D_POSIX_PTHREAD_SEMANTICS -c -odaemon_inetd.o daemon_inetd.c
In file included from daemon_inetd.c:1:
unpipc.h:479: 错误:expected '=', ',', ';', 'asm' or '__attribute__'before '*' token
unpipc.h:480: 错误:expected ')' before '*' token
make: *** [daemon_inetd.o] 错误 1
把unpipc.h中第479,480行注释掉。再次编译。
$ make
...
gcc -g -O2 -D_REENTRANT -Wall -D_POSIX_PTHREAD_SEMANTICS -c -owrapsunrpc.o wrapsunrpc.c
wrapsunrpc.c:3: 错误:expected '=', ',', ';', 'asm' or'__attribute__' before '*' token
wrapsunrpc.c:16: 错误:expected ')' before '*' token
make: *** [wrapsunrpc.o] 错误 1
修改unpv22e/Make.defines中的LIB_OBJS的".o"文件,删除"wrapsunrpc.o"。
再次编译。
$ make
--这次应该没有问题了。
0 0
- unpipc.h下载和编译
- unix网络编程卷2的头文件unpipc.h下载和编译(转)
- unix网络编程卷2的头文件unpipc.h下载和编译(转)
- unix网络编程卷2的头文件unpipc.h下载和编译(转)
- unpipc.h
- unix网络编程进程通信 unpipc.h
- 网络编程第2卷源代码使用unpipc.h
- gloox:下载和编译
- 下载和编译Volley
- FFmpeg下载和编译
- SpringFramework下载和编译
- FreeSwitch下载和编译
- FFmpeg下载和编译
- _stddef.h和mem.h在编译时出错
- 编译audiopolicy.h 和 wmcodecdsp.h文件问题
- OBE 下载、编译和部署
- OBE 下载、编译和部署
- Android 源码下载和编译
- Python进阶06 循环对象
- 每天一个linux命令(4):mkdir命令 http://www.cnblogs.com/younes/archive/2009/11/20/1607174.html
- hdu 5446 Unknown Treasure(lucas+中国剩余定理)
- 【LeetCode从零单刷】Lowest Common Ancestor of a Binary Search Tree
- iOS之OC随笔-Model数据类型
- unpipc.h下载和编译
- 数据结构学习2--线性表的设计与实现(二)
- 自定义 View 3d翻转动画 android
- OpenWRT安装完后make menuconfig失败
- MVC中的AOP思想——Filter
- notepad++快捷键
- 2015华为Word Maze 是一个网络小游戏,你需要找到以字母标注的食物
- iOS软件开发 获取相册图片或照相
- UNIX 高手的 10 个习惯 http://www.ibm.com/developerworks/cn/aix/library/au-badunixhabits.html