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

Started by Peter Losherover 24 years ago4 messagesgeneral
Jump to latest
#1Peter Losher
Peter_Losher@isc.org

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/

In reply to: Peter Losher (#1)
Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...

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.

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Losher (#1)
Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...

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

#4Peter Losher
Peter_Losher@isc.org
In reply to: Trond Eivind Glomsrød (#2)
Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...

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/