John Liu johnl
Wed Jun 8 22:19:45 PDT 2005
I was able to compile the postgresql 7.4.5 by adding THREAD_SUPPORT=yes
in the configure file, postgresql compiled and installed with
--enable-thread-safty. 

But failed in slony-I configure -

./configure --with-pgsourcetree=/home/johnl/soft/postgresql-7.4.5
checking build system type... powerpc-ibm-aix5.1.0.0
checking host system type... powerpc-ibm-aix5.1.0.0
checking which template to use... aix
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for the pthreads library -lpthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads...
-D_THREAD_SAFE
checking for cc_r... cc_r
configure: error:
    ********************
    * The sourcetree in /home/johnl/soft/postgresql-7.4.5
    * does not appear to be built. Please make sure to build
    * and install PostgreSQL from sources first.
    ********************

johnl
-----Original Message-----
From: Christopher Browne [mailto:cbbrowne at ca.afilias.info] 
Sent: Wednesday, June 08, 2005 12:04 PM
To: John Liu
Cc: slony1-general at gborg.postgresql.org
Subject: Re: [Slony1-general] --enable-thread-safety on AIX

John Liu wrote:

>I have two questions -
>1. on AIX 5.1 running postgresql7.4, the production server compiled
>without --enable-thread-safety, can I installed slony-I without
>recompiling the installed postgresql on the production server?
>  
>
The issue is with libpq, so it would seem plausible that you could just
reinstall libpq with --enable-thread-safety.

Down that road of "mixtures of binaries", madness lies, so I wouldn't
recommend trying to get away with just reinstalling libpq...

>2. I tried to reconfigure postgresql7.4 on AIX 5.1 with
>--enable-thread-safety, I got error -
>checking for pthread.h... yes
>configure: error:
>Cannot enable threads on your platform.
>Please report your platform threading info to the PostgreSQL mailing
>lists
>so it can be added to the next release.  Report all compile flags, link
>flags,
>functions, or libraries required for threading support.
>See the comment at the top of src/port/thread.c for more information.
>
>I tried different options without luck, my option is -
>./configure --prefix=/syntec/stiadmin/pgsql74 --with-pgport=5555
>--with-libraries=/usr/local/lib --with-includes=/usr/local/include
>--enable-thread-safety CC=cc_r CFLAGS="-lpthreads"
>  
>
Hmm.  Is it possible that libm is missing? 

When one of our guys ran into those sorts of messages, recently, the
problem turned out to be a missing libm...


More information about the Slony1-general mailing list