Re: BUG #9545: Unable install postgres on AIX 5.3 - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #9545: Unable install postgres on AIX 5.3
Date
Msg-id 20140320042943.GB7711@momjian.us
Whole thread Raw
In response to BUG #9545: Unable install postgres on AIX 5.3  (prasanna@semantifi.com)
List pgsql-bugs
On Wed, Mar 12, 2014 at 01:28:58PM +0000, prasanna@semantifi.com wrote:
> The following bug has been logged on the website:
>
> Bug reference:      9545
> Logged by:          Prasanna kumar kuppa
> Email address:      prasanna@semantifi.com
> PostgreSQL version: 9.2.7
> Operating system:   AIX 5.3
> Description:
>
> 1)I have downloaded the PostgreSQL from following location
>  ftp://ftp.postgresql.org/pub/source/v9.2.7/postgresql-9.2.7.tar.gz
>
> 2)After downloading i have used the following to command to configure:
> ./configure --prefix=/apps/Semantifi/postgres
>
> 3)During this process i am getting the following error message:
> "configure: error: thread test program failed
> This platform is not thread-safe.  Check the file 'config.log' or compile
> and run src/test/thread/thread_test for the exact reason.". I can't disable
> the thread safety for PostgreSQL.
>
> Can you please suggest the solution for this problem.

I suggest you run the thread_test program and tell us what it says.
Looking at the _huge_ config.log file you posted, it seems the thread
libraries are not being found:

    configure:29440: gcc -o conftest -O2 -Wall -Wmissing-prototypes
    -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
    -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv
    -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS -DIN_CONFIGURE
    conftest.c -lz -lreadline -lld -lm   >&5
    ld: 0711-224 WARNING: Duplicate symbol: .bcopy
    ld: 0711-224 WARNING: Duplicate symbol: .memmove
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    information.
    ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
    ld: 0711-317 ERROR: Undefined symbol: .pthread_create
    ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
    ld: 0711-317 ERROR: Undefined symbol: .pthread_join
    collect2: ld returned 8 exit status
    configure:29444: $? = 1

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #8467: Slightly confusing pgcrypto example in docs
Next
From: Marko Tiikkaja
Date:
Subject: Re: BUG #8870: PL/PgSQL, SELECT .. INTO and the number of result columns