免费注册 查看新帖 |

Chinaunix

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

[Mail] courier-imap make出错starttls.o和tls_transfer [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-10-10 13:27 |只看该作者 |倒序浏览
出错如下:
  1. libtool: link: gcc -I./.. -I.. -Wall -g -O2 -o couriertls starttls.o argparse.o  -L/usr/local/courier-authlib/lib/courier-authlib ./.libs/libcouriertls.a -lssl -lcrypto ./.libs/libspipe.a ../rfc1035/librfc1035.a ../md5/.libs/libmd5.a ../random128/.libs/librandom128.a ../numlib/.libs/libnumlib.a ../liblock/.libs/liblock.a ../soxwrap/libsoxwrap.a
  2. /usr/bin/ld: warning: libcrypto.so.1.0.0, needed by /usr/lib/gcc/i386-redhat-linux/3.4.5/../../../libssl.so, may conflict with libcrypto.so.4
  3. starttls.o(.text+0x11f): In function `docopy':
  4. /usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:132: undefined reference to `tls_transfer'
  5. starttls.o(.text+0x2a4):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:188: undefined reference to `tls_transfer'
  6. starttls.o(.text+0x4f3): In function `verify_connection':
  7. /usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:305: undefined reference to `tls_certificate_verified'
  8. starttls.o(.text+0x51a):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:308: undefined reference to `tls_dump_connection_info'
  9. starttls.o(.text+0x53f):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:322: undefined reference to `tls_get_encryption_desc'
  10. starttls.o(.text+0x5a1):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:322: undefined reference to `tls_get_encryption_desc'
  11. starttls.o(.text+0xd18): In function `main':
  12. /usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:502: undefined reference to `tls_get_default_info'
  13. starttls.o(.text+0xd5f):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:509: undefined reference to `tls_create'
  14. starttls.o(.text+0xd8f):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:512: undefined reference to `tls_connect'
  15. starttls.o(.text+0xdc6):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:488: undefined reference to `tls_connecting'
  16. starttls.o(.text+0xe12):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:477: undefined reference to `tls_transfer'
  17. starttls.o(.text+0xe27):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:481: undefined reference to `tls_connecting'
  18. starttls.o(.text+0xe8b):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:522: undefined reference to `tls_disconnect'
  19. starttls.o(.text+0xea3):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:524: undefined reference to `tls_destroy'
  20. starttls.o(.text+0xf39):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:535: undefined reference to `tls_disconnect'
  21. starttls.o(.text+0xf51):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:537: undefined reference to `tls_destroy'
  22. collect2: ld returned 1 exit status
  23. make[3]: *** [couriertls] Error 1
  24. make[3]: Leaving directory `/usr/local/software/mail/courier-imap-4.6.0/tcpd'
  25. make[2]: *** [all] Error 2
  26. make[2]: Leaving directory `/usr/local/software/mail/courier-imap-4.6.0/tcpd'
  27. make[1]: *** [all-recursive] Error 1
  28. make[1]: Leaving directory `/usr/local/software/mail/courier-imap-4.6.0'
  29. make: *** [all] Error 2
  30. [root@www courier-imap-4.6.0]#
复制代码


先是安装的openssl-1.0.0-beta3.tar.gz发现如上冲突后改回openssl-0.9.8k.tar.gz、openssl-0.9.8e.tar.gz还是出现如下错误:

  1. libtool: link: gcc -I./.. -I.. -Wall -g -O2 -o couriertls starttls.o argparse.o  -L/usr/local/courier-authlib/lib/courier-authlib ./.libs/libcouriertls.a -lssl -lcrypto ./.libs/libspipe.a ../rfc1035/librfc1035.a ../md5/.libs/libmd5.a ../random128/.libs/librandom128.a ../numlib/.libs/libnumlib.a ../liblock/.libs/liblock.a ../soxwrap/libsoxwrap.a
  2. starttls.o(.text+0x11f): In function `docopy':
  3. /usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:132: undefined reference to `tls_transfer'
  4. starttls.o(.text+0x2a4):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:188: undefined reference to `tls_transfer'
  5. starttls.o(.text+0x4f3): In function `verify_connection':
  6. /usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:305: undefined reference to `tls_certificate_verified'
  7. starttls.o(.text+0x51a):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:308: undefined reference to `tls_dump_connection_info'
  8. starttls.o(.text+0x53f):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:322: undefined reference to `tls_get_encryption_desc'
  9. starttls.o(.text+0x5a1):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:322: undefined reference to `tls_get_encryption_desc'
  10. starttls.o(.text+0xd18): In function `main':
  11. /usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:502: undefined reference to `tls_get_default_info'
  12. starttls.o(.text+0xd5f):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:509: undefined reference to `tls_create'
  13. starttls.o(.text+0xd8f):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:512: undefined reference to `tls_connect'
  14. starttls.o(.text+0xdc6):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:488: undefined reference to `tls_connecting'
  15. starttls.o(.text+0xe12):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:477: undefined reference to `tls_transfer'
  16. starttls.o(.text+0xe27):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:481: undefined reference to `tls_connecting'
  17. starttls.o(.text+0xe8b):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:522: undefined reference to `tls_disconnect'
  18. starttls.o(.text+0xea3):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:524: undefined reference to `tls_destroy'
  19. starttls.o(.text+0xf39):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:535: undefined reference to `tls_disconnect'
  20. starttls.o(.text+0xf51):/usr/local/software/mail/courier-imap-4.6.0/tcpd/starttls.c:537: undefined reference to `tls_destroy'
  21. collect2: ld returned 1 exit status
  22. make[3]: *** [couriertls] Error 1
  23. make[3]: Leaving directory `/usr/local/software/mail/courier-imap-4.6.0/tcpd'
  24. make[2]: *** [all] Error 2
  25. make[2]: Leaving directory `/usr/local/software/mail/courier-imap-4.6.0/tcpd'
  26. make[1]: *** [all-recursive] Error 1
  27. make[1]: Leaving directory `/usr/local/software/mail/courier-imap-4.6.0'
  28. make: *** [all] Error 2
  29. [root@www courier-imap-4.6.0]#
复制代码


试过courier-imap-4.6.0.tar.bz2、courier-imap-4.5.0.tar.bz2、courier-imap-4.1.3.tar.bz2,同样错误,不知该如何安装?
安装了courier-authlib-0.62.2.tar.bz2,因为courier-authlib-0.62.4.tar.bz2安装不了。
系统AS 4.3

[ 本帖最后由 wlacf 于 2009-10-10 13:28 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-10-10 15:44 |只看该作者
原帖由 wlacf 于 2009-10-10 13:27 发表
出错如下:
libtool: link: gcc -I./.. -I.. -Wall -g -O2 -o couriertls starttls.o argparse.o  -L/usr/local/courier-authlib/lib/courier-authlib ./.libs/libcouriertls.a -lssl -lcrypto ./.libs/libspi ...
IMAP over SSL

To add SSL support you have to install OpenSSL or GnuTLS before installing Courier-IMAP. Download OpenSSL from http://www.openssl.org/, or GnuTLS from http://www.gnutls.org.

OpenSSL's support is well-tested, the GnuTLS version is a relatively new addition, and is considered experimental. Follow OpenSSL's or GnuTLS's installation instructions, then build Courier-IMAP.

    NOTE: Most systems already have an available OpenSSL or GnuTLS package. Do not build OpenSSL or GnuTLS yourself, if a prebuilt package is already available. Just install the prebuilt package.

    NOTE: The development libraries must be installed in addition to the runtime package, in order to build Courier-IMAP. On most systems, the development files (header files, libraries, etc...) are provided in a separate "devel" package. The base OpenSSL/GnuTLS package is not sufficient to build Courier-IMAP, the development libraries must be installed.

The OpenSSL library is selected when both OpenSSL and GnuTLS libraries are found by the configure script. Use the --with-gnutls option to explicitly select the GnuTLS library over OpenSSL.

The /usr/lib/courier-imap/etc/imapd-ssl configuration file sets some additional options for SSL support, which you may need to adjust. Consult that configuration file for additional information. Then, you also have to run the /usr/lib/courier-imap/libexec/imapd-ssl.rc script from your system startup and shutdown scripts, just like the /usr/lib/courier-imap/libexec/imapd.rc script. You may accept both SSL and non-SSL connections by running both scripts.

Note that SSL requires a valid, signed, X.509 certificate to be installed where Courier-IMAP expects to find it. The default location for the X.509 certificate, in PEM format, is /usr/lib/courier-imap/share/imapd.pem. The X.509 certificate must be signed by a certificate authority that is known to the IMAP client. You can generate your own self-signed certificate by running the script /usr/lib/courier-imap/share/mkimapdcert which will work too, except that IMAP clients using SSL will display a warning message the first time they connect to the server. To get rid of the warning message you'll have to pay for a signed X.509 certificate. The gory details of setting up SSL is beyond the scope of this document, and you should consult the OpenSSL documentation for more information.

The mkimapdcert script will not overwrite an existing imapd.pem certificate, in order to allow precompiled packages to simply call mkimapdcert after installation, without worry.


http://www.courier-mta.org/imap/INSTALL.html

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
3 [报告]
发表于 2009-10-12 08:46 |只看该作者
AS 4.3直接用yum安装openssl吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP