[Pgpool-general] compiling pgpool 3.0
Tatsuo Ishii
ishii at sraoss.co.jp
Mon Oct 4 23:04:49 UTC 2010
> Hi!
>
> I'm trying to compile pgpool 3.0 on SCO gcc 5.0.7 with gcc (2.95.2 yes is too old :-P ) , but at file pool_lobj.c
> in the function pool_search_relcache; i get the following error:
>
> pool_lobj.c: 111: `intptr_t 'undeclared (first use in this function)
>
>
> I found the intptr_t is used for portability, but is not defined in SCO.
>
> Can i delete the use of intpr_t safely?
Yes, you can.
> I mean can i change this:
> lo_creat_oid = (int) (intptr_t) pool_search_relcache (....
> by:
> lo_creat_oid = (int) pool_search_relcache (....
>
> Check the size of lo_creat_oid and returned for ntohl;
> and are equal.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp
More information about the Pgpool-general
mailing list