[pgpool-general: 871] Re: pgpool-II 3.2.0 build fails on Solaris 10

Tatsuo Ishii ishii at postgresql.org
Tue Aug 7 09:03:46 JST 2012

> Hi,
> I get the following build error on Solaris 10 sparc:
> --
> make[2]: Entering directory `/export/home/sandy/pgpool-II-3.2.0'
> gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/export/home/sandy/pgpool-II-3.2.0/inst/etc\" -I.  -D_GNU_SOURCE -I /usr/include/pgsql   -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -MT pool_memqcache.o -MD -MP -MF .deps/pool_memqcache.Tpo -c -o pool_memqcache.o pool_memqcache.c
> pool_memqcache.c: In function `pool_add_table_oid_map':
> pool_memqcache.c:1232: warning: implicit declaration of function `flock'
> pool_memqcache.c:1232: error: `LOCK_EX' undeclared (first use in this function)
> pool_memqcache.c:1232: error: (Each undeclared identifier is reported only once
> pool_memqcache.c:1232: error: for each function it appears in.)
> pool_memqcache.c: In function `pool_invalidate_query_cache':
> pool_memqcache.c:1410: error: `LOCK_EX' undeclared (first use in this function)
> pool_memqcache.c: At top level:
> pool_memqcache.c:161: fatal error: opening dependency file .deps/pool_memqcache.Tpo: Permission denied
> compilation terminated.
> make[2]: *** [pool_memqcache.o] Error 1
> make[2]: Leaving directory `/export/home/sandy/pgpool-II-3.2.0'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/export/home/sandy/pgpool-II-3.2.0'
> make: *** [all] Error 2

It seems there's problem to use flock(2) in Solaris. I don' have
access to Solaris/space and cannot fix it at this moment. Anybody
volunteers to fix this?
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