分类: Linux
2011-12-07 12:50
1155人阅读
收藏
举报
编译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
原文网址:http://blog.csdn.net/strikebone/article/details/7049389