Re: V8 Beta 5 on AIX - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: V8 Beta 5 on AIX
Date
Msg-id 200412061720.iB6HKVX16551@candle.pha.pa.us
Whole thread Raw
In response to V8 Beta 5 on AIX  (Brad Nicholson <bnichols@ca.afilias.info>)
Responses Re: V8 Beta 5 on AIX
List pgsql-hackers
Brad Nicholson wrote:
> I tried compliling v8 beta 5 (grabbed from cvs on Friday) on AIX 5.1.  
> It fails during the make
> 
> make[4]: Entering directory 
> `/opt/OXRS/Sources/pgsql-HEAD/src/interfaces/libpq'
> make[4]: Nothing to be done for `all'.
> make[4]: Leaving directory 
> `/opt/OXRS/Sources/pgsql-HEAD/src/interfaces/libpq'
> make[4]: Entering directory `/opt/OXRS/Sources/pgsql-HEAD/src/port'
> make[4]: Nothing to be done for `all'.
> make[4]: Leaving directory `/opt/OXRS/Sources/pgsql-HEAD/src/port'
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels 
> -fno-strict-aliasing -g pg_ctl.o  -L../../../src/interfaces/libpq -lpq 
> -L../../../src/port -L/opt/OXRS/supporting-packages/readline-4.2/lib 
> -L/opt/OXRS/supporting-packages/zlib-1.1.4  -lpgport -lz -lreadline 
> -lcurses -lPW -lld -lnsl -ldl -lm  -o pg_ctl
> ld: 0711-317 ERROR: Undefined symbol: .pthread_sigmask
> ld: 0711-317 ERROR: Undefined symbol: .sigwait
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
> information.
> collect2: ld returned 8 exit status
> make[3]: *** [pg_ctl] Error 1
> make[3]: Leaving directory `/opt/OXRS/Sources/pgsql-HEAD/src/bin/pg_ctl'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/opt/OXRS/Sources/pgsql-HEAD/src/bin'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/opt/OXRS/Sources/pgsql-HEAD/src'
> make: *** [all] Error 2

OK, I assume you used --enable-thread-safety in configure.  This should
have added some PTHREAD link flags to your libpq build, and those
settings should have followed the libpq library into your pg_ctl link
line.

Would you look in your Makefile.global for PTHREAD_* settings and report
those.  The second question is why saying those libraries are needed by
libpq is not passing down to uses of libpq, like in pg_ctl.

--  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,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Brad Nicholson
Date:
Subject: V8 Beta 5 on AIX
Next
From: "Jim Buttafuoco"
Date:
Subject: arm rc1 regression failures