编译cyrus-sasl报错解决

编译cyrus-sasl报错解决
http://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.23.tar.gz
debian5 ,下载编译报错

digestmd5.c:3125: warning: pointer targets in passing argument 3 of 'text->cipher_init' differ in signedness
digestmd5.c:3125: note: expected 'unsigned char *' but argument is of type 'char *'
digestmd5.c: In function 'digestmd5_client_mech_step1':
digestmd5.c:3712: warning: pointer targets in passing argument 2 of '_plug_strdup' differ in signedness
plugin_common.h:147: note: expected 'const char *' but argument is of type 'unsigned char *'
digestmd5.c:3715: warning: pointer targets in passing argument 2 of '_plug_strdup' differ in signedness
plugin_common.h:147: note: expected 'const char *' but argument is of type 'unsigned char *'
digestmd5.c:3683: warning: unused parameter 'serverin'
digestmd5.c:3684: warning: unused parameter 'serverinlen'
digestmd5.c: In function 'digestmd5_client_mech_step3':
digestmd5.c:3818: warning: unused parameter 'prompt_need'
digestmd5.c:3819: warning: unused parameter 'clientout'
digestmd5.c:3820: warning: unused parameter 'clientoutlen'
digestmd5.c: In function 'digestmd5_client_mech_step':
digestmd5.c:3980: warning: pointer targets in assignment differ in signedness
digestmd5.c:4017:15: error: #elif with no expression
make[2]: *** [digestmd5.lo] 错误 1
make[2]:正在离开目录 `/root/linuxsoft/cyrus-sasl-2.1.21/plugins'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/root/linuxsoft/cyrus-sasl-2.1.21'
make: *** [all] 错误 2


------------------解决办法--------
sed -i.bak 's/#elif WITH_DES/#elif defined(WITH_DES)/' plugins/digestmd5.c

重新编译通过
更多参见
http://www.linuxfromscratch.org/ ... lfs/cyrus-sasl.html
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值