LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 805|回复: 6

rpm编译错误

[复制链接]
发表于 2006-4-1 10:39:19 | 显示全部楼层 |阅读模式
我想在lfs上装上rpm管理系统
编译时出现如下错误:

在这之前我装了neon-0.26.0.tar.gz
gcc是4.0.3

then mv -f ".deps/rpmdav.Tpo" ".deps/rpmdav.Plo"; else rm -f ".deps/rpmdav.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I.. -I/usr/include/beecrypt -I/usr/include/neon -I../lua/include -I../lua/local -I../popt -I../misc -I../zlib -g -O2 -fPIC -DPIC -D_GNU_SOURCE-D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -MT rpmdav.lo -MD -MP -MF .deps/rpmdav.Tpo -c rpmdav.c  -fPIC -DPIC -o .libs/rpmdav.o
rpmdav.c: In function 'davInit':
rpmdav.c:348: warning: implicit declaration of function 'ne_set_persist'
rpmdav.c: In function 'fetch_destroy_item':
rpmdav.c:409: warning: implicit declaration of function 'NE_FREE'
rpmdav.c: In function 'davFetch':
rpmdav.c:695: warning: passing argument 2 of 'ne_propfind_set_private' from incompatible pointer type
rpmdav.c:695: error: too few arguments to function 'ne_propfind_set_private'
rpmdav.c:697: warning: passing argument 3 of 'ne_propfind_named' from incompatible pointertype
rpmdav.c: In function 'davWrite':
rpmdav.c:1086: warning: unused variable 'fd'
rpmdav.c: In function 'avReaddir':
rpmdav.c:1422: warning: pointer targets in assignment differ in signedness
rpmdav.c: In function 'avOpendir':
rpmdav.c:1475: warning: pointer targets in assignment differ in signedness
rpmdav.c: In function 'davReaddir':
rpmdav.c:1546: warning: pointer targets in assignment differ in signedness
rpmdav.c: In function 'davOpendir':
rpmdav.c:1631: warning: pointer targets in assignment differ in signedness
make[2]: *** [rpmdav.lo] Error 1
make[2]: Leaving directory `/sources/rpm-4.4.5/rpmio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/rpm-4.4.5'
make: *** [all] Error 2

ne_propfind_set_private来自neno这个包
请问是不是neno的版本的问题?
另外rpm为什么要依赖neno呢?
 楼主| 发表于 2006-4-1 10:40:28 | 显示全部楼层
我的配置参数
./configure --prefix=/usr --without-selinux --without-python
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-1 10:42:10 | 显示全部楼层
还有,这个论坛能不能用邮件发送有回复的通知?
需要怎么设置?
回复 支持 反对

使用道具 举报

发表于 2006-4-1 11:31:15 | 显示全部楼层
哈哈,和我的编译错误一模一样。我想可能是neon版本太新的问题。我的也是neon-0.26.0。你安装一下低版本的试试。
neon-0.26.0的ChangeLog中有这么一段:
  1. Added ne_set_session_flags()/ne_get_session_flags() functions:

  2.     * flags to disable persistent connection support, enable "ICY" protocol support, and to disable SSLv2 protocol support.
  3.     * replaces ne_set_persist()
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-1 13:17:28 | 显示全部楼层
neon is an HTTP and WebDAV client library
neno是一个HTTP和WebDAV的客户端库,我感觉rpm应该不太需要它,难道rpm涉及到网络?
你知道为什么吗?
或者yum升级与此相关?
configure中也没有看到可以禁止的参数。
回复 支持 反对

使用道具 举报

发表于 2006-4-1 18:56:30 | 显示全部楼层
你在那里看到的装rpm文章呀?我也想装一个。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-1 19:32:47 | 显示全部楼层
我在blfs上没有找到安装rpm的文章
这是rpm的下载网站,上面有相关的文档
www.rpm.org

下载地址是ftp://jbj.org/pub/rpm-4.4.x/
最好下载一个src.rpm,里面有相关的依赖,比如还需要安装beecrypt, neon什么的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表