安装liunx rpc服务是在make步骤出现错误 如下:

jhzhlc 2016-11-18 07:45:21
rm -f rstat.h
rpcgen -h -o rstat.h rstat.x
make all-am
make[1]: Entering directory `/usr/rpc.rstatd-4.0.1'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rup.o -MD -MP -MF ".deps/rup.Tpo" -c -o rup.o rup.c; \
then mv -f ".deps/rup.Tpo" ".deps/rup.Po"; else rm -f ".deps/rup.Tpo"; exit 1; fi

/usr/rpc.rstatd-4.0.1/rup.c:226: undefined reference to `xdr_void'
/usr/rpc.rstatd-4.0.1/rup.c:226: undefined reference to `clnt_broadcast'
rup.o: In function `broadcast_v5':
/usr/rpc.rstatd-4.0.1/rup.c:212: undefined reference to `xdr_void'
/usr/rpc.rstatd-4.0.1/rup.c:212: undefined reference to `clnt_broadcast'
rup.o: In function `pointopoint_v3':
/usr/rpc.rstatd-4.0.1/rup.c:286: undefined reference to `clntudp_create'
/usr/rpc.rstatd-4.0.1/rup.c:291: undefined reference to `xdr_void'
rup.o: In function `pointopoint_v5':
/usr/rpc.rstatd-4.0.1/rup.c:250: undefined reference to `clntudp_create'
/usr/rpc.rstatd-4.0.1/rup.c:256: undefined reference to `xdr_void'
rup.o: In function `main':
/usr/rpc.rstatd-4.0.1/rup.c:358: undefined reference to `clnt_pcreateerror'
rstat_xdr.o: In function `xdr_rstat_timeval':
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:15: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:17: undefined reference to `xdr_u_int'
rstat_xdr.o: In function `xdr_stats':
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:945: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:945: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:948: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:948: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:951: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:953: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:955: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:957: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:959: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:961: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:963: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:965: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:967: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:969: undefined reference to `xdr_int'
rstat_xdr.o:/usr/rpc.rstatd-4.0.1/rstat_xdr.c:888: more undefined references to `xdr_int' follow
rstat_xdr.o: In function `xdr_statsswtch':
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:784: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:787: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:787: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:790: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:792: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:794: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:796: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:798: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:800: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:802: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:804: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:806: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:808: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:810: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:810: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:815: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:711: undefined reference to `xdr_int'
rstat_xdr.o: In function `xdr_statstime':
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:589: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:589: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:592: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:592: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:595: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:597: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:599: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:601: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:603: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:605: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:607: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:609: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:611: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:613: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:615: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:615: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:622: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:514: undefined reference to `xdr_int'
rstat_xdr.o: In function `xdr_statsvar':
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:390: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:390: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:393: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:393: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:396: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:398: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:400: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:402: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:404: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:406: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:408: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:410: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:412: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:414: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:416: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:418: undefined reference to `xdr_long'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:418: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:314: undefined reference to `xdr_int'
rstat_xdr.o: In function `xdr_statsusers':
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:187: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:187: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:190: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:190: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:193: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:195: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:197: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:199: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:201: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:203: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:205: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:207: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:209: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:211: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:213: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:213: undefined reference to `xdr_vector'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:220: undefined reference to `xdr_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:222: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_xdr.c:110: undefined reference to `xdr_int'
rstat_clnt.o: In function `rstatproc_havedisk_5':
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:35: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:35: undefined reference to `xdr_void'
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:125: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:125: undefined reference to `xdr_void'
rstat_clnt.o: In function `rstatproc_havedisk_1':
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:155: undefined reference to `xdr_u_int'
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:155: undefined reference to `xdr_void'
rstat_clnt.o: In function `rstatproc_stats_1':
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:140: undefined reference to `xdr_void'
rstat_clnt.o: In function `rstatproc_stats_2':
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:110: undefined reference to `xdr_void'
rstat_clnt.o: In function `rstatproc_stats_3':
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:80: undefined reference to `xdr_void'
rstat_clnt.o: In function `rstatproc_stats_4':
/usr/rpc.rstatd-4.0.1/rstat_clnt.c:50: undefined reference to `xdr_void'
rstat_clnt.o:/usr/rpc.rstatd-4.0.1/rstat_clnt.c:20: more undefined references to `xdr_void' follow
collect2: ld returned 1 exit status
make[1]: *** [rup] Error 1
make[1]: Leaving directory `/usr/rpc.rstatd-4.0.1'
make: *** [all] Error 2
[root@actsapp2 rpc.rstatd-4.0.1]# cat /etc/issue
CentOS release 6.8 (Final)
Kernel \r on an \m
...全文
794 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jhzhlc 2016-12-01
  • 打赏
  • 举报
回复
自己顶起······
jhzhlc 2016-11-22
  • 打赏
  • 举报
回复
没有这个文件啊
Wenxy1 2016-11-19
  • 打赏
  • 举报
回复
先看readme文件,按文件中的步骤编译。
Re:Liunx 优化思路与实操步骤=================== Linux的优化其实从安装之初就开启了,从安装包的选取的不仅仅选择最小化安装,同时还要再删选出必要的安装包,除此之外一律不安装。 当安装完成后,立即就开始企业制定个性化的优化设置,包括创建用户(今后不会轻易使用root用户登录);更换环境变量(设置个性化的执行路径等);关闭防火墙和SELinux(先关闭,再根据具体提供服务后,再酌情开启);精简开机自启动服务(避免启动过多的服务,而增加系统的安全风险);更改SSH服务器端(例如关闭外网连接,只开内网连接或修改连接的默认端口号等等,以增加服务器的安全性);sudo授权(企业操作环境中必须执行的步骤,按人按工序再分配权限等);清理历史命令记录、锁定关键文件、隐藏 Linux版本、定时清理垃圾邮件和小文件、优化内核参数、及时同步互联网的时间等等,都是优化系统的必要步骤 我们通过以优化 Linux为目的的一系列操作,其实也是在学习Linux操作的基本步骤,通过以上介绍的优化目的或思路,再通过本课程的详细讲解,我们也就即领会了优化的思想和运维的哲学,同时也熟练了Linux操作的步骤,起到了一举两得的双赢局面。        学员们,如果能够耐心看完、做完或理解课程中涉及的知识点,概念或执行步骤,详细一定会有收获的,让我们一起努力吧!        

3,286

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 实用资料发布区
社区管理员
  • 实用资料发布区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧