Chinaunix首页 | 论坛 | 博客
  • 博客访问: 605622
  • 博文数量: 166
  • 博客积分: 970
  • 博客等级: 准尉
  • 技术积分: 547
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-06 15:16
个人简介

Believe youself!

文章分类

全部博文(166)

文章存档

2017年(1)

2016年(5)

2015年(117)

2014年(14)

2013年(11)

2012年(5)

2010年(4)

2009年(1)

2008年(8)

我的朋友

分类: 嵌入式

2009-07-22 09:42:33

描述:
大家好,
    我现在需要用RPC方式实现一个远程程序调用,目标系统是ARM9 S3C2440的arm-linux交叉编译环境,然后用rpcgen生成了一个RPC程序模板,然后加入了自己的程序编译通过了一个客户端和一个服务端。移植到开发板上后提示服务没有注册,RPC服务注册需要的版本号啊什么的需要我提供,而且开发板的移植的系统没有portmap,我用了很多工具都无法把X86下的portmap移植到开发板上。
我做过这样一个试验,在两台X86的linux机器上运行我的客户端和服务端,RPC服务是生效的,而且可以进行远程调用。
   我用nfs能从板子上挂载到虚拟机中的redhat9,能用telnet远程登录该开发板;但是运行RPC程序时,就报如下错误:
    在板子上运行时,提示的错误是:Cannot register service: RPC: unable to receive; errno= connection refused. unable to register(DEVICE_CORE, DEVICE_CORE_VERSION, tcp)
 
   请大家给点建议。
阅读(1761) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-07-23 23:58:37

都是因为没有portmap服务功能的原因: download portmap source code: http://ftp.surfnet.nl/security/tcpwrappers/portmap_4.tar.gz First, I commented out the line : HOSTS_ACCESS= -DHOSTS_ACCESS, to reduce an external library dependence. Everywhere I saw a reference to libwrap.a I also commented it out for the same reason. For a more secure server, these can be put back, but additional libraries will be needed. modified the CFLAGS line to point to my snapgear linux source tree : CFLAGS = $(COPT) -O $(NSARCH