[Pgpool-general] Compliling pgpoolII AIX

2011-09-09 Thread Carlos Moisés Ríos Monterde
Hi

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 ?

Saludos

Moisés

___
Pgpool-general mailing list
Pgpool-general@pgfoundry.org
http://pgfoundry.org/mailman/listinfo/pgpool-general


Re: [Pgpool-general] Compliling pgpoolII AIX

2011-09-09 Thread Tatsuo Ishii
 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
Index: pool.h
===
RCS file: /cvsroot/pgpool/pgpool-II/pool.h,v
retrieving revision 1.93
diff -c -r1.93 pool.h
*** pool.h	23 Aug 2011 04:36:57 -	1.93
--- pool.h	10 Sep 2011 01:34:55 -
***
*** 34,39 
--- 34,40 
  #include libpq-fe.h
  #include stdio.h
  #include time.h
+ #include sys/time.h
  #include sys/types.h
  #include limits.h
  
___
Pgpool-general mailing list
Pgpool-general@pgfoundry.org
http://pgfoundry.org/mailman/listinfo/pgpool-general