pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Hammond <ahammond@ca.afilias.info>
To: Mohan, Ross <RMohan@arbinet.com>
Cc: pgsql-ports@postgresql.org
Subject: Re: pthreads issue when compiling 7.4.8 on AIX 5.3
Date: Thu, 23 Jun 2005 14:36:22 -0400
Message-ID: <42BB0126.2070901@ca.afilias.info> (raw)
In-Reply-To: <CC74E7E10A8A054798B6611BD1FEF4D307966E84@vamail01.thexchange.com>
References: <CC74E7E10A8A054798B6611BD1FEF4D307966E84@vamail01.thexchange.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohan, Ross wrote:
> Wow...<light dawning on marble head>....so this means..if I want to
> do replication, I'll need to rebuild PG with --enable-thread-safety?
> 
> that's unpleasant news, since, IIRC, it didn't like it at all, first
> time through. 
> 
> <sigh> 
> 
> Thanks for heads up. 

No problem. I haven't had any luck tracking down this issue. If you do,
I'd be very glad to hear about it.

Drew


> -----Original Message-----
> From: Bruce Momjian [mailto:pgman@candle.pha.pa.us] 
> Sent: Thursday, June 16, 2005 4:29 PM
> To: Mohan, Ross
> Cc: pgsql-ports@postgresql.org
> Subject: Re: [PORTS] pthreads issue when compiling 7.4.8 on AIX 5.3
> 
> 
> Mohan, Ross wrote:
> 
>>Sorry to be dull-minded, but since PG is not threaded (at least on 
>>AIX) and works fine, why would Slony (threaded or not) have a problem? 
>>There aren't likely to be thread-to-thread interactions, eg.
> 
> 
> Slony uses a threaded libpq, which is what --enable-thread-safety does.
> 
> ---------------------------------------------------------------------------
> 
> 
> 
>>
>>-----Original Message-----
>>From: pgsql-ports-owner@postgresql.org 
>>[mailto:pgsql-ports-owner@postgresql.org] On Behalf Of Andrew Hammond
>>Sent: Thursday, June 16, 2005 4:18 PM
>>To: pgsql-ports@postgresql.org
>>Subject: [PORTS] pthreads issue when compiling 7.4.8 on AIX 5.3
>>
>>
> I'm seeing the following errors when compiling postgres 7.4.8 
> (vanilla) on AIX 5.3
> 
> make[2]: Entering directory `/opt/src/postgresql-7.4.8/src/port'
> gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../src/include 
> -I/opt/dbs/readline/include
> -I/opt/dbs/zlib/include -I/opt/freeware/include  -c thread.c In file included from thread.c:25:
> /usr/include/pthread.h:652: error: parse error before '*' token
> /usr/include/pthread.h:655: error: parse error before '*' token
> /usr/include/pthread.h:658: error: parse error before '*' token
> /usr/include/pthread.h:661: error: parse error before '*' token
> /usr/include/pthread.h:664: error: parse error before '*' token
> /usr/include/pthread.h:672: error: parse error before '*' token
> /usr/include/pthread.h:675: error: parse error before '*' token
> /usr/include/pthread.h:678: error: parse error before '*' token
> /usr/include/pthread.h:681: error: parse error before '*' token
> /usr/include/pthread.h:689: error: parse error before '*' token
> /usr/include/pthread.h:693: error: parse error before '*' token
> /usr/include/pthread.h:696: error: parse error before '*' token
> make[2]: *** [thread.o] Error 1
> make[2]: Leaving directory `/opt/src/postgresql-7.4.8/src/port'
> 
> I've looked into pthread.h and it's refereing to pthread_barrier_t, 
> pthread_barrierattr_t and pthread_spinlock_t. These do not exist in 
> pthread.h on our 5.1 box. However they are defined in sys/types.h 
> which is included up near the top pthread.h.
> 
> I'm somewhat at a loss about where this could be going wrong.
> 
> Configure options follow
> 
> ./configure --prefix=/opt/dbs/pgsql748-slony105-AIX53-2005-06-13
> - 
> --with-includes=/opt/dbs/readline/include:/opt/dbs/zlib/include:/usr/ccs/include:/opt/freeware/include:/usr/local/include
> --with-libraries=/opt/dbs/readline/lib:/opt/dbs/zlib/lib:/usr/ccs/lib:/opt/freeware/lib:/usr/local/lib
> --enable-thread-safety --enable-debug --enable-aix64
> 
> Note that this binary will need to have slony support which is why the
> --enable-thread-safety. We've had success compiling postgres on AIX 
> 5.1 with identical settings. We're using gcc 3.3.2
> 
> The thread_test program fails identically:
> 
> -bash-2.05b$ make
> gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes
> -Wmissing-declarations  -I../../../src/include
> -I/opt/dbs/readline/include -I/opt/dbs/zlib/include
> -I/opt/freeware/include  -c -o thread_test.o thread_test.c In file 
> included from thread_test.c:23:
> /usr/include/pthread.h:652: error: parse error before '*' token
> /usr/include/pthread.h:655: error: parse error before '*' token
> /usr/include/pthread.h:658: error: parse error before '*' token
> /usr/include/pthread.h:661: error: parse error before '*' token
> /usr/include/pthread.h:664: error: parse error before '*' token
> /usr/include/pthread.h:672: error: parse error before '*' token
> /usr/include/pthread.h:675: error: parse error before '*' token
> /usr/include/pthread.h:678: error: parse error before '*' token
> /usr/include/pthread.h:681: error: parse error before '*' token
> /usr/include/pthread.h:689: error: parse error before '*' token
> /usr/include/pthread.h:693: error: parse error before '*' token
> /usr/include/pthread.h:696: error: parse error before '*' token
> make: *** [thread_test.o] Error 1
> 
> --
> Andrew Hammond    416-673-4138    ahammond@ca.afilias.info
> Database Administrator, Afilias Canada Corp.
> CB83 2838 4B67 D40F D086 3568 81FC E7E5 27AF 4A9A

- ---------------------------(end of
broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

- ---------------------------(end of
broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)





- --
Andrew Hammond    416-673-4138    ahammond@ca.afilias.info
Database Administrator, Afilias Canada Corp.
CB83 2838 4B67 D40F D086 3568 81FC E7E5 27AF 4A9A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCuwElgfzn5SevSpoRAoEuAJ0b2YfR9qPz8zlOY5gIoW0e/lJM9gCcCG4F
rct4f2CzomdOM7gmKwOHA0Y=
=ICyX
-----END PGP SIGNATURE-----



view thread (13+ messages)  latest in thread

Message-ID: <42BB0126.2070901@ca.afilias.info>
Permalink:  ../42BB0126.2070901@ca.afilias.info/
Also on:    postgresql.org/message-id/42BB0126.2070901@ca.afilias.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: ahammond@ca.afilias.info, RMohan@arbinet.com
  Subject: Re: pthreads issue when compiling 7.4.8 on AIX 5.3
  In-Reply-To: <42BB0126.2070901@ca.afilias.info>
  References: <CC74E7E10A8A054798B6611BD1FEF4D307966E84@vamail01.thexchange.com> <42BB0126.2070901@ca.afilias.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox