免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2581 | 回复: 4
打印 上一主题 下一主题

[Mail] Maildrop 编译出错[解决] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-31 16:16 |只看该作者 |倒序浏览
  1. [root@Nagios maildrop-2.1.0]# ./configure  --prefix=/usr/local/maildrop  --enable-sendmail=/usr/sbin/sendmail --enable-trusted-users='root vmail'  --enable-syslog=1  --enable-maildirquota --enable-maildrop-uid=1001  --enable-maildrop-gid=1001  --with-trashquota --with-dirsync
复制代码

  1. 执行make的时候出错了,错误如下:
复制代码
  1. Making all in maildrop
  2. make[1]: Entering directory `/root/mail/maildrop-2.1.0/maildrop'
  3. make  all-am
  4. make[2]: Entering directory `/root/mail/maildrop-2.1.0/maildrop'
  5. g++ -DHAVE_CONFIG_H -I.     -g -O2 -I./../rfc822 -I./../rfc2045 -I.. -I./.. -Wall -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.C
  6. main.C:36:25: error: courierauth.h: No such file or directory
  7. main.C: In function ‘int callback_authlib(authinfo*, void*)’:
  8. main.C:250: error: invalid use of undefined type ‘struct authinfo’
  9. main.C:241: error: forward declaration of ‘struct authinfo’
  10. main.C:257: error: invalid use of undefined type ‘struct authinfo’
  11. main.C:241: error: forward declaration of ‘struct authinfo’
  12. main.C:260: error: invalid use of undefined type ‘struct authinfo’
  13. main.C:241: error: forward declaration of ‘struct authinfo’
  14. main.C:262: error: invalid use of undefined type ‘struct authinfo’
  15. main.C:241: error: forward declaration of ‘struct authinfo’
  16. main.C:267: error: invalid use of undefined type ‘struct authinfo’
  17. main.C:241: error: forward declaration of ‘struct authinfo’
  18. main.C:276: error: invalid use of undefined type ‘struct authinfo’
  19. main.C:241: error: forward declaration of ‘struct authinfo’
  20. main.C:297: error: invalid use of undefined type ‘struct authinfo’
  21. main.C:241: error: forward declaration of ‘struct authinfo’
  22. main.C:299: error: invalid use of undefined type ‘struct authinfo’
  23. main.C:241: error: forward declaration of ‘struct authinfo’
  24. main.C:301: error: invalid use of undefined type ‘struct authinfo’
  25. main.C:241: error: forward declaration of ‘struct authinfo’
  26. main.C:301: error: invalid use of undefined type ‘struct authinfo’
  27. main.C:241: error: forward declaration of ‘struct authinfo’
  28. main.C:305: error: invalid use of undefined type ‘struct authinfo’
  29. main.C:241: error: forward declaration of ‘struct authinfo’
  30. main.C:306: error: invalid use of undefined type ‘struct authinfo’
  31. main.C:241: error: forward declaration of ‘struct authinfo’
  32. main.C:308: error: invalid use of undefined type ‘struct authinfo’
  33. main.C:241: error: forward declaration of ‘struct authinfo’
  34. main.C:308: error: invalid use of undefined type ‘struct authinfo’
  35. main.C:241: error: forward declaration of ‘struct authinfo’
  36. main.C:309: error: invalid use of undefined type ‘struct authinfo’
  37. main.C:241: error: forward declaration of ‘struct authinfo’
  38. main.C:311: error: invalid use of undefined type ‘struct authinfo’
  39. main.C:241: error: forward declaration of ‘struct authinfo’
  40. main.C:312: error: invalid use of undefined type ‘struct authinfo’
  41. main.C:241: error: forward declaration of ‘struct authinfo’
  42. main.C: In function ‘int find_in_authlib(Maildrop*, const char*)’:
  43. main.C:320: error: ‘auth_getuserinfo’ was not declared in this scope
  44. make[2]: *** [main.o] Error 1
  45. make[2]: Leaving directory `/root/mail/maildrop-2.1.0/maildrop'
  46. make[1]: *** [all] Error 2
  47. make[1]: Leaving directory `/root/mail/maildrop-2.1.0/maildrop'
  48. make: *** [all-recursive] Error 1
复制代码
  1. google了一下,邮件列表里有,不过那个邮件列表打不开了。。。,哪位知道 的请说一下,谢谢!~~~
复制代码

[ 本帖最后由 kevinadmin 于 2009-5-31 17:33 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-05-31 16:35 |只看该作者
main.C:36:25: error: courierauth.h: No such file or directory

嘿嘿。你检查一下courier-authlib安装好了吗?

论坛徽章:
0
3 [报告]
发表于 2009-05-31 17:00 |只看该作者
嗯   正在检查。谢谢!~~~

论坛徽章:
0
4 [报告]
发表于 2009-05-31 17:22 |只看该作者
authlib是安装好了的,难道安装完了之后还要对includ目录做一个软件链接吗? authlib我指定了安装目录

论坛徽章:
0
5 [报告]
发表于 2009-05-31 17:33 |只看该作者
把courier-authlib下面的include复制一份到/usr/include下面就可以了  看来安装authlib的时候最好还是不要用--prefix,lib有有一个ldconfig来加载  include有没有什么指令来加载?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP