Re: Libpq ssl fix - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Libpq ssl fix
Date
Msg-id 200405282049.i4SKn8K09111@candle.pha.pa.us
Whole thread Raw
In response to Re: Libpq ssl fix  (Andreas Pflug <pgadmin@pse-consulting.de>)
Responses Re: Libpq ssl fix  (Manfred Spraul <manfred@colorfullife.com>)
List pgsql-patches
Andreas Pflug wrote:
> Manfred Spraul wrote:
>
> >
> >
> > Btw, --enable-thread-safety on Linux (RedHat Fedora Core 1) fails in
> > configure with
> >
> >> configure: error:
> >> *** Thread test program failed.  Your platform is not thread-safe.
> >> *** Check the file 'config.log'for the exact reason.
> >
>
> I had this too, for two reasons:
> - configure checks for libpthreads, while the libs are called libpthread
> on my system.

I need to see your config.log output.  pgsql/config/acx_pthread.m4 has:

    acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread
    -pthreads -mthreads pthread --thread-safe -mt pthread-con
    fig"

which should test for -lpthread.  (Any option without a dash is assumed
to be a library name.)

> - patch for thread_test.c needed posted some hours ago.

Applied.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: thread safety testing fix
Next
From: Bruce Momjian
Date:
Subject: Re: thread safety testing fix