安装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
...全文
795 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
jhzhlc 2016-12-01
  • 打赏
  • 举报
回复
自己顶起······
jhzhlc 2016-11-22
  • 打赏
  • 举报
回复
没有这个文件啊
Wenxy1 2016-11-19
  • 打赏
  • 举报
回复
先看readme文件,按文件中的步骤编译。

3,286

社区成员

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

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