Hello. Compiling exim 4.54 fails with the following error: awk '{ print ($1+1) }' cnumber.h > cnumber.temp rm -f cnumber.h; mv cnumber.temp cnumber.h gcc version.c rm -f exim gcc -o exim tls.o(.text+0x81): In function `tls_error': : undefined reference to `ERR_get_error' tls.o(.text+0x91): In function `tls_error': : undefined reference to `ERR_error_string' tls.o(.text+0x151): In function `rsa_callback': : undefined reference to `RSA_generate_key' tls.o(.text+0x161): In function `rsa_callback': : undefined reference to `ERR_get_error' tls.o(.text+0x171): In function `rsa_callback': : undefined reference to `ERR_error_string' tls.o(.text+0x1c2): In function `verify_callback': : undefined reference to `X509_get_subject_name' tls.o(.text+0x1da): In function `verify_callback': : undefined reference to `X509_NAME_oneline' tls.o(.text+0x28e): In function `verify_callback': : undefined reference to `X509_verify_cert_error_string' tls.o(.text+0x31e): In function `info_callback': : undefined reference to `SSL_state_string_long' tls.o(.text+0x38f): In function `init_dh': : undefined reference to `BIO_new_file' tls.o(.text+0x3b9): In function `init_dh': : undefined reference to `PEM_read_bio_DHparams' tls.o(.text+0x3e0): In function `init_dh': : undefined reference to `SSL_CTX_ctrl' tls.o(.text+0x3f1): In function `init_dh': : undefined reference to `DH_free' tls.o(.text+0x3f9): In function `init_dh': : undefined reference to `BIO_free' tls.o(.text+0x408): In function `init_dh': : undefined reference to `DH_size' tls.o(.text+0x49f): In function `tls_init': : undefined reference to `SSL_load_error_strings' tls.o(.text+0x4a4): In function `tls_init': : undefined reference to `SSL_library_init' tls.o(.text+0x4b1): In function `tls_init': : undefined reference to `SSLv23_client_method' tls.o(.text+0x4b9): In function `tls_init': : undefined reference to `SSL_CTX_new' tls.o(.text+0x4e3): In function `tls_init': : undefined reference to `RAND_status' tls.o(.text+0x528): In function `tls_init': : undefined reference to `SSL_CTX_ctrl' tls.o(.text+0x59e): In function `tls_init': : undefined reference to `SSL_CTX_use_certificate_chain_file' tls.o(.text+0x5fe): In function `tls_init': : undefined reference to `SSL_CTX_use_PrivateKey_file' tls.o(.text+0x617): In function `tls_init': : undefined reference to `SSL_CTX_set_tmp_rsa_callback' tls.o(.text+0x62d): In function `tls_init': : undefined reference to `SSL_CTX_set_timeout' tls.o(.text+0x6e0): In function `tls_init': : undefined reference to `RAND_seed' tls.o(.text+0x6f6): In function `tls_init': : undefined reference to `RAND_seed' tls.o(.text+0x70a): In function `tls_init': : undefined reference to `RAND_seed' tls.o(.text+0x70f): In function `tls_init': : undefined reference to `RAND_status' tls.o(.text+0x78d): In function `tls_init': : undefined reference to `SSLv23_server_method' tls.o(.text+0x7ce): In function `construct_cipher_name': : undefined reference to `SSL_get_current_cipher' tls.o(.text+0x7df): In function `construct_cipher_name': : undefined reference to `SSL_CIPHER_get_bits' tls.o(.text+0x7e7): In function `construct_cipher_name': : undefined reference to `SSL_CIPHER_get_name' tls.o(.text+0x8b4): In function `setup_certs': : undefined reference to `SSL_CTX_set_default_verify_paths' tls.o(.text+0x92c): In function `setup_certs': : undefined reference to `SSL_CTX_load_verify_locations' tls.o(.text+0x940): In function `setup_certs': : undefined reference to `SSL_load_client_CA_file' tls.o(.text+0x951): In function `setup_certs': : undefined reference to `SSL_CTX_set_client_CA_list' tls.o(.text+0x9b0): In function `setup_certs': : undefined reference to `SSL_CTX_set_verify' tls.o(.text+0x9e4): In function `setup_certs': : undefined reference to `SSL_CTX_get_cert_store' tls.o(.text+0xa23): In function `setup_certs': : undefined reference to `X509_STORE_load_locations' tls.o(.text+0xa4d): In function `setup_certs': : undefined reference to `X509_STORE_set_flags' tls.o(.text+0xba9): In function `tls_server_start': : undefined reference to `SSL_CTX_set_cipher_list' tls.o(.text+0xc20): In function `tls_server_start': : undefined reference to `SSL_new' tls.o(.text+0xc4c): In function `tls_server_start': : undefined reference to `SSL_clear' tls.o(.text+0xc78): In function `tls_server_start': : undefined reference to `SSL_set_session_id_context' tls.o(.text+0xca4): In function `tls_server_start': : undefined reference to `SSL_set_fd' tls.o(.text+0xcb1): In function `tls_server_start': : undefined reference to `SSL_set_accept_state' tls.o(.text+0xce6): In function `tls_server_start': : undefined reference to `SSL_accept' tls.o(.text+0xdcd): In function `tls_server_start': : undefined reference to `SSL_get_shared_ciphers' tls.o(.text+0xe67): In function `tls_server_start': : undefined reference to `ERR_get_error' tls.o(.text+0xe77): In function `tls_server_start': : undefined reference to `ERR_error_string' tls.o(.text+0x102d): In function `tls_client_start': : undefined reference to `SSL_CTX_set_cipher_list' tls.o(.text+0x106a): In function `tls_client_start': : undefined reference to `SSL_new' tls.o(.text+0x10b9): In function `tls_client_start': : undefined reference to `SSL_set_session_id_context' tls.o(.text+0x10cd): In function `tls_client_start': : undefined reference to `SSL_set_fd' tls.o(.text+0x10da): In function `tls_client_start': : undefined reference to `SSL_set_connect_state' tls.o(.text+0x1109): In function `tls_client_start': : undefined reference to `SSL_connect' tls.o(.text+0x1131): In function `tls_client_start': : undefined reference to `SSL_get_peer_certificate' tls.o(.text+0x1139): In function `tls_client_start': : undefined reference to `X509_get_subject_name' tls.o(.text+0x1151): In function `tls_client_start': : undefined reference to `X509_NAME_oneline' tls.o(.text+0x126a): In function `tls_getc': : undefined reference to `SSL_read' tls.o(.text+0x127d): In function `tls_getc': : undefined reference to `SSL_get_error' tls.o(.text+0x132d): In function `tls_getc': : undefined reference to `SSL_free' tls.o(.text+0x13cd): In function `tls_read': : undefined reference to `SSL_read' tls.o(.text+0x13e0): In function `tls_read': : undefined reference to `SSL_get_error' tls.o(.text+0x147d): In function `tls_write': : undefined reference to `SSL_write' tls.o(.text+0x1490): In function `tls_write': : undefined reference to `SSL_get_error' tls.o(.text+0x150d): In function `tls_write': : undefined reference to `ERR_get_error' tls.o(.text+0x151d): In function `tls_write': : undefined reference to `ERR_error_string' tls.o(.text+0x15ac): In function `tls_close': : undefined reference to `SSL_shutdown' tls.o(.text+0x15b9): In function `tls_close': : undefined reference to `SSL_free' collect2: ld returned 1 exit status make[1]: *** [exim] Error 1 make[1]: Leaving directory `/var/tmp/portage/exim-4.54/work/exim-4.54/build-exim-gentoo' make: *** [go] Error 2 !!! ERROR: mail-mta/exim-4.54 failed. !!! Function src_compile, Line 203, Exitcode 2 !!! make failed !!! If you need support, post the topmost build error, NOT this status message. Emerge Info: Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-rc3 i686) ================================================================= System uname: 2.6.14-rc3 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control /var/run/dspam /var/spool/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 alsa apm arts avi berkdb bitmap-fonts crypt cups curl eds emboss encode foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY best regards Thomas Reproducible: Always Steps to Reproduce: 1. 2. 3.
This compiled fine for me, looks like i missed the DEPEND on gnutls, this has been added to the tree now. emerge sync and verify that exim-4.54.ebuild has "gnutls? (net-libs/gnutls )" in the DEPEND section. if so a re-emerge should pull in gnutls.
Hello Colin. There seems to be a different problem. I synced today but the problems remains. Here is the output of emerge -pv exim: mike080 ~ # emerge -pv exim These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] mail-mta/exim-4.54 [4.52] -X -dnsdb -exiscan +exiscan-acl -gnutls -ipv6 -ldap -lmtp -mailwrapper -mbox -mysql -nis +pam +perl -postgres -sasl -spf -srs +ssl -syslog +tcpd 0 kB I should mention that gnutls is not emerged on that sytem. regards Thomas
o.k. Just updated the ebuild, line 144 should read "sed -i \"
Thanks. Everything is ok now. t.
> o.k. Just updated the ebuild, line 144 should read "sed -i \" For reference, line 146 also contains an error. There should be a space between the end of the -e argument and the file name.
should be fixed.
closing