Thread: Compiling v7.1.3 w/OpenSSL and Krb5 support...

Compiling v7.1.3 w/OpenSSL and Krb5 support...

From
Peter Losher
Date:
Hello,

I am trying to compile PostgreSQL v7.1.3 w/ OpenSSL and Krb5 support on a
True64 (v5.0) AlphaServer.  When configuring w/

'./configure --with-openssl'

worked fine, configuring w/

'./configure --with-openssl --with-krb5=/usr/local/krb5'

Caused this:

-=-
[...]
checking for com_err in -lcom_err... yes
checking for krb5_encrypt in -lcrypto... no
checking for krb5_encrypt in -lk5crypto... yes
checking for krb5_sendauth in -lkrb5... yes
checking for CRYPTO_new_ex_data in -lcrypto... no
configure: error: library 'crypto' is required for OpenSSL
-=-

Now if I just configure with OpenSSL, that check for CRYPTO_new_ex_data
is successful.  Is there a known bug in trying to compile with both
OpenSSL and Krb5?

Thanks! - Peter
--
Peter_Losher@isc.org - Internet Software Consortium - http://www.isc.org/



Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...

From
teg@redhat.com (Trond Eivind Glomsrød)
Date:
Peter Losher <Peter_Losher@isc.org> writes:

> Hello,
>
> I am trying to compile PostgreSQL v7.1.3 w/ OpenSSL and Krb5 support on a
> True64 (v5.0) AlphaServer.  When configuring w/
>
> './configure --with-openssl'
>
> worked fine, configuring w/
>
> './configure --with-openssl --with-krb5=/usr/local/krb5'
>
> Caused this:
>
> -=-
> [...]
> checking for com_err in -lcom_err... yes
> checking for krb5_encrypt in -lcrypto... no
> checking for krb5_encrypt in -lk5crypto... yes
> checking for krb5_sendauth in -lkrb5... yes
> checking for CRYPTO_new_ex_data in -lcrypto... no
> configure: error: library 'crypto' is required for OpenSSL
> -=-
>
> Now if I just configure with OpenSSL, that check for CRYPTO_new_ex_data
> is successful.  Is there a known bug in trying to compile with both
> OpenSSL and Krb5?

If your kerberos package has a libcrypto - yes. With this problem
solved, it works fine - it's compiled that way for Red Hat Linux
(where krb5's crypto library is called "libk5crypto")

--
Trond Eivind Glomsrød
Red Hat, Inc.

Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...

From
Tom Lane
Date:
Peter Losher <Peter_Losher@isc.org> writes:
> Now if I just configure with OpenSSL, that check for CRYPTO_new_ex_data
> is successful.  Is there a known bug in trying to compile with both
> OpenSSL and Krb5?

No known bug, but I wonder whether anyone's tried it before.  Perhaps
there's some conflict between the two sets of libraries (a duplicate
global symbol, for example).  Would you dig into the configure log
and see what's going on?

            regards, tom lane

Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...

From
Peter Losher
Date:
On 15 Nov 2001, Trond Eivind Glomsrød wrote:

> If your kerberos package has a libcrypto - yes. With this problem
> solved, it works fine - it's compiled that way for Red Hat Linux
> (where krb5's crypto library is called "libk5crypto")

Despite the fact that this box had long ago upgraded to Krb5 1.2.x, it
still had some of the old libcrypto files. :(  Removing those, and
recompiling fixed it.

Thanks for the reminder!

-Peter
--
Peter_Losher@isc.org - Internet Software Consortium - http://www.isc.org/