Unix Technical Forum

Re: Build failures on RedHat 3.0 with openssl/kerberos

This is a discussion on Re: Build failures on RedHat 3.0 with openssl/kerberos within the Pgsql General forums, part of the PostgreSQL category; --> Wes, Did you try to ./configure w/out "--enable-thread-safety?" I recently compiled postgreSQL 8.0.1 on Solaris and _needed_ --enable-thread-safety strictly ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 09:45 AM
Louis Gonzales
 
Posts: n/a
Default Re: Build failures on RedHat 3.0 with openssl/kerberos

Wes,
Did you try to ./configure w/out "--enable-thread-safety?" I recently
compiled postgreSQL 8.0.1 on Solaris and _needed_ --enable-thread-safety
strictly for building Slony-I against postgresql with that feature enabled.

What is the reason you are compiling this _with_ the feature?
If it's necessary, then you may need to --with-includes= and/or --with-libs=
with additional include directories, such as /usr/include:/usr/include/sys
where-ever the thread .h files are for your OS.

This configure attempt could be failing, because it can't locate the
correct thread headers and/or libraries

Wes wrote:

>I try to build 8.1.3 with:
>
> ./configure --prefix=/usr/local/pgsql8.1.3 --with-openssl --with-pam
>--enable-thread-safety
>
>It fails the openssl test, saying openssl/ssl.h is unavailable. Digging
>deeper, I find that it is because the test program with
>
> #include <openssl/ssl.h>
>
>is failing because it can't include krb5.h.
>
>Based on another post, I tried adding "--with-krb5". That explicitly
>aborted with it unable to find krb5.h. I then tried:
>
>./configure --prefix=/usr/local/pgsql8.1.3 --with-openssl --with-pam
>--enable-thread-safety --with-krb5 --with-includes=/usr/kerberos/include
>
>Now it gets past both the openssl and kerberos, but bites the dust with:
>
>configure: error:
>*** Thread test program failed. Your platform is not thread-safe.
>*** Check the file 'config.log'for the exact reason.
>***
>*** You can use the configure option --enable-thread-safety-force
>*** to force threads to be enabled. However, you must then run
>*** the program in src/tools/thread and add locking function calls
>*** to your applications to guarantee thread safety.
>
>If I remove the --with-krb5, it works. Why does enabling Kerberos break
>threads?
>
>I haven't been able to find any issues in the archives with krb5 and
>threads. Am I missing something here?
>
>Wes
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: explain analyze is your friend
>
>



---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 09:45 AM
Wes
 
Posts: n/a
Default Re: Build failures on RedHat 3.0 with openssl/kerberos

On 3/14/06 2:55 PM, "Louis Gonzales" <louis.gonzales@linuxlouis.net> wrote:

> Did you try to ./configure w/out "--enable-thread-safety?" I recently
> compiled postgreSQL 8.0.1 on Solaris and _needed_ --enable-thread-safety
> strictly for building Slony-I against postgresql with that feature enabled.
>
> What is the reason you are compiling this _with_ the feature?
> If it's necessary, then you may need to --with-includes= and/or --with-libs=
> with additional include directories, such as /usr/include:/usr/include/sys
> where-ever the thread .h files are for your OS.
>
> This configure attempt could be failing, because it can't locate the
> correct thread headers and/or libraries


Why would I not want to specify enable-thread-safety? I want to be able to
write threaded programs.

--enable-thread-safety works fine until I enable --with-krb5, so it is
finding the thread libraries.

Wes



---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:41 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com