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

Lists: pgsql-general
From: Peter Losher <Peter_Losher(at)isc(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Compiling v7.1.3 w/OpenSSL and Krb5 support...
Date: 2001-11-15 20:28:01
Message-ID: 20011115122740.A22910-100000@tardis.isc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

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(at)isc(dot)org - Internet Software Consortium - http://www.isc.org/


From: teg(at)redhat(dot)com (Trond Eivind =?iso-8859-1?q?Glomsr=F8d?=)
To: Peter Losher <Peter_Losher(at)isc(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...
Date: 2001-11-15 21:30:05
Message-ID: xuyzo5nafj6.fsf@halden.devel.redhat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Peter Losher <Peter_Losher(at)isc(dot)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.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Losher <Peter_Losher(at)isc(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...
Date: 2001-11-16 07:50:35
Message-ID: 24567.1005897035@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Peter Losher <Peter_Losher(at)isc(dot)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


From: Peter Losher <Peter_Losher(at)isc(dot)org>
To: pgsql-general(at)postgresql(dot)org
Cc: Peter Losher <Peter_Losher(at)isc(dot)org>
Subject: Re: Compiling v7.1.3 w/OpenSSL and Krb5 support...
Date: 2001-11-20 21:29:50
Message-ID: Pine.OSF.4.40.0111201327150.35978-100000@rc.isc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

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(at)isc(dot)org - Internet Software Consortium - http://www.isc.org/