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

From Zeugswetter Andreas DAZ SD
Subject Re: V8 Beta 5 on AIX
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184D261@m0114.s-mxs.net
Whole thread Raw
In response to V8 Beta 5 on AIX  (Brad Nicholson <bnichols@ca.afilias.info>)
List pgsql-hackers
>> However, one thing we can do is to try this in Makefile.aix:
>>     # AIX needs threads for everything that uses libpq
>>     LIBS += $(PTHREAD_LIBS)
>> That is going to enable thread libs for all linking including the
>> backend, but it might work.

> That is certainly wrong.  The correct thing is to add PTHREAD_LIBS to
> all and only those links that include libpq.  I suspect that the cc_r

You mean like attached patch ? That is safe and can be applied.
My machine has problems with two configure tests with --enable-thread-safety.

1. the snprintf long long int check that uses int64 as variable name which is
    a typedef in sys/inttypes.h
2. whether strerror_r returns int check fails with a redefine of named function
    from string.h

No idea how to fix those, but workaround is easy :-(

-lpthread can be removed from PTHREAD_LIBS, the lib is a compat symlink to
-lpthreads, I guess it does not hurt eighter.

Andreas

Attachment

pgsql-hackers by date:

Previous
From: Mark Wong
Date:
Subject: Re: [Testperf-general] Re: 8.0beta5 results w/ dbt2
Next
From: Andrew Sullivan
Date:
Subject: Re: V8 Beta 5 on AIX