Re: [Exim] building exim 4.14 with openssl 0.9.7a

Etusivu
Poista viesti
Vastaa
Lähettäjä: Marc MERLIN
Päiväys:  
Vastaanottaja: Stefan Kaltenbrunner
Kopio: exim-users
Aihe: Re: [Exim] building exim 4.14 with openssl 0.9.7a
On Mon, May 05, 2003 at 11:50:47PM +0200, Stefan Kaltenbrunner wrote:
> Marc MERLIN wrote:
>
> >So, exim 4.14 doesn't quite build with the new openssl (why do they have to
> >break the API _every_single_time_ they upgrade like this???)
>
> hmm - are you sure about this?:


Sorry, I thought it was known so I didn't post the errors
gcc -c -O2 -g -pipe -march=i386 -mcpu=i686 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I.    tls.c
In file included from /usr/include/openssl/ssl.h:179,
                 from tls-openssl.c:20,
                 from tls.c:84:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
                 from tls-openssl.c:20,
                 from tls.c:84:
/usr/include/openssl/kssl.h:132: parse error before "krb5_enctype"
/usr/include/openssl/kssl.h:134: parse error before "FAR"
/usr/include/openssl/kssl.h:135: parse error before '}' token
/usr/include/openssl/kssl.h:147: parse error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:147: parse error before '*' token
/usr/include/openssl/kssl.h:148: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:153: parse error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:153: parse error before '*' token
/usr/include/openssl/kssl.h:155: parse error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:155: parse error before '*' token
/usr/include/openssl/kssl.h:157: parse error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:157: parse error before '*' token
/usr/include/openssl/kssl.h:159: parse error before "context"
/usr/include/openssl/kssl.h:160: parse error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:160: parse error before "context"
/usr/include/openssl/kssl.h:163: parse error before "kssl_validate_times"
/usr/include/openssl/kssl.h:163: parse error before "atime"
/usr/include/openssl/kssl.h:165: parse error before "kssl_check_authent"
/usr/include/openssl/kssl.h:165: parse error before '*' token
/usr/include/openssl/kssl.h:167: parse error before "enctype"
In file included from tls-openssl.c:20,
                 from tls.c:84:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: parse error before '}' token
In file included from tls.c:84:
tls-openssl.c:36: conflicting declarations of `ctx'
/usr/include/openssl/ssl.h:912: `ctx' previously declared here
tls-openssl.c: In function `tls_init':
tls-openssl.c:343: warning: assignment from incompatible pointer type
tls-openssl.c: In function `construct_cipher_name':
tls-openssl.c:410: dereferencing pointer to incomplete type
{standard input}: Assembler messages:
{standard input}:247: Error: symbol `ctx' is already defined
{standard input}:247: Warning: rest of line ignored; first ignored character is `,'
make[1]: *** [tls.o] Error 1


> mastermind@cronos:~$ openssl version
> OpenSSL 0.9.7a Feb 19 2003


stan:/usr/src/redhat/SPECS# openssl version
OpenSSL 0.9.7a Feb 19 2003

> mastermind@cronos:~$ grep OPENSSL_VERSION /usr/include/openssl/opensslv.h
> #define OPENSSL_VERSION_NUMBER  0x0090701fL
> #define OPENSSL_VERSION_TEXT    "OpenSSL 0.9.7a Feb 19 2003"


stan:/usr/src/redhat/SPECS#  grep OPENSSL_VERSION /usr/include/openssl/opensslv.h
#define OPENSSL_VERSION_NUMBER  0x0090701fL
#define OPENSSL_VERSION_TEXT    "OpenSSL 0.9.7a Feb 19 2003"
#define OPENSSL_VERSION_PTEXT   " part of " OPENSSL_VERSION_TEXT



> mastermind@cronos:/usr/lib$ ldd /opt/exim/bin/exim
> /opt/exim/bin/exim:
>         libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x280ee000)
>         libpq.so.3 => /usr/local/lib/libpq.so.3 (0x28107000)
>         libssl.so.3 => /usr/lib/libssl.so.3 (0x2811b000)
>         libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x2814a000)
>         libc.so.4 => /usr/lib/libc.so.4 (0x28241000)
>         libintl.so.4 => /usr/local/lib/libintl.so.4 (0x282da000)
>         libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x282e2000)


I had to build mine against 0.9.6b, which is a pita on RH 9 since the includes
conflict with the 0.9.7 packages

stan:/usr/src/redhat/SPECS# ldd /usr/sbin/exim
        libresolv.so.2 => /lib/libresolv.so.2 (0x40021000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40033000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40048000)
        libwrap.so.0 => /usr/lib/libwrap.so.0 (0x40076000)
        libpam.so.0 => /lib/libpam.so.0 (0x4007f000)
        libdl.so.2 => /lib/libdl.so.2 (0x40087000)
        libdb-4.0.so => /lib/libdb-4.0.so (0x4008b000)
        libldap.so.2 => /usr/lib/libldap.so.2 (0x40133000)
        liblber.so.2 => /usr/lib/liblber.so.2 (0x4015e000)
        libssl.so.2 => /lib/libssl.so.2 (0x40169000)
        libcrypto.so.2 => /lib/libcrypto.so.2 (0x40199000)
        libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4026d000)
        libsasl.so.7 => /usr/lib/libsasl.so.7 (0x4027b000)
        libssl.so.4 => /lib/libssl.so.4 (0x40286000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x402bb000)
        libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x403ad000)
        libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x403b4000)
        libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x403c7000)
        libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x40426000)
        libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x40436000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40438000)


Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/   |   Finger marc_f@??? for PGP key