[Pgpool-general] Compliling pgpoolII AIX

Tatsuo Ishii ishii at sraoss.co.jp
Sat Sep 10 01:37:53 UTC 2011


> I´m trying compling pgpool-ii-3.0.1 in AIX 5.3 and a have error
> 
> Here´s log 
> 
> gcc -maix64 -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/postgres/pgpool2/etc
> \" -I.  -D_GNU_SOURCE -I /postgres/postgresql/include   -g -O2 -Wall
> -Wmissing-prototypes -Wmissing-declarations -MT recovery.o -MD -MP
> -MF .deps/recovery.Tpo -c -o recovery.o recovery.c
> recovery.c: In function 'start_recovery':
> recovery.c:157:10: error: variable 't' has initializer but incomplete
> type
> recovery.c:157:10: warning: excess elements in struct initializer
> recovery.c:157:10: warning: (near initialization for 't')
> recovery.c:157:10: warning: excess elements in struct initializer
> recovery.c:157:10: warning: (near initialization for 't')
> recovery.c:157:18: error: storage size of 't' isn't known
> recovery.c:159:3: warning: implicit declaration of function 'select'
> recovery.c:157:18: warning: unused variable 't'
> make[2]: *** [recovery.o] Error 1
> make[2]: Leaving directory `/postgres/instalar/pgpool-II-3.1'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/postgres/instalar/pgpool-II-3.1'
> make: *** [all] Error 2
> 
> gcc version 4.5.2 (GCC) 
> 
> 
> Anyone have any ideas ?

I don't have AIX handy but guess that AIX has the definition of struct
timeval in <sys/time.h>.  Included is a patch attempting to fix your
problem. Could you try it out?
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pool.h.patch
Type: text/x-patch
Size: 440 bytes
Desc: not available
URL: <http://pgfoundry.org/pipermail/pgpool-general/attachments/20110910/47d58002/attachment.bin>


More information about the Pgpool-general mailing list