[Pgpool-general] cont. configure: error: libpq is not installed or libpq is old

gurkan at resolution.com gurkan at resolution.com
Thu Oct 5 17:29:30 UTC 2006


Hi,

> > > > 2)Our servers running FC5-64bit with 32bit-enterprisedb. I am not
> able
> > > to
> > > > configure it at all
> > > > with or without options.
> > > 
> > > Hmm...
> > > Could you compile this code?
> > > 
> > > --------------------------------
> > > extern int PQprepare();
> > > int main(void)
> > > {
> > > 	int (*f)() = PQprepare;
> > > 	return 0;
> > > }
> > > ---------------------------------
> > > 
> > > compile:
> > >   % gcc -L/opt/EnterpriseDB/8.1.4.17/dbserver/lib -lpq x.c
> > > 
> > These from my 64bitmachine. Before confused you guys even further, I
> really need to
> > installed it on my 64bitmachine. Here is the output
> > [root at baba1 pgpool-II-1.0.1]# vi x.c (pasted the sample you gave me)
> > [root at baba1 pgpool-II-1.0.1]# gcc
> -L/opt/EnterpriseDB/8.1.4.17/dbserver/lib -lpq x.c
> > /usr/bin/ld: skipping incompatible
> > /opt/EnterpriseDB/8.1.4.17/dbserver/lib/libpq.so when searching for
> -lpq
> > /usr/bin/ld: skipping incompatible
> > /opt/EnterpriseDB/8.1.4.17/dbserver/lib/libpq.a when searching for
> -lpq
> > /usr/bin/ld: cannot find -lpq
> > collect2: ld returned 1 exit status
> 
> OK. I think libpq is 32bit binary. And your machine is 64bit
> machine. Could you test the following command?
> 
>   % CFLAGS='-m32 -O2 -g' ./configure --with-pgsql=...



IT CONFIGURED/MAKE/MAKE INSTALL ALLRIGHT, BUT DOES NOT SEEM TO BE RUNNING PGPOOL-II
STEP1)
[root at baba1 pgpool-II-1.0.1]# CFLAGS='-m32 -O2 -g' ./configure
--with-pgsql=/opt/EnterpriseDB/8.1.4.17/dbserver/
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_i386) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_i386
checking if the linker (/usr/bin/ld -m elf_i386) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_i386) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_i386) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld -m elf_i386) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for flex... flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for bison... bison -y
checking for main in -lm... yes
checking for main in -lnsl... yes
checking for main in -lsocket... no
checking for main in -lipc... no
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -lcompat... no
checking for main in -lBSD... no
checking for main in -lgen... no
checking for main in -lPW... no
checking for main in -lresolv... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for union semun... no
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for wait3 that fills in rusage... yes
checking for setsid... yes
checking for select... yes
checking for socket... yes
checking for sigprocmask... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strtok... yes
checking for asprintf... yes
checking for PQprepare in -lpq... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating parser/Makefile
config.status: creating pcp/Makefile
config.status: creating config.h
config.status: executing depfiles commands


STEP2)
[root at baba1 pgpool-II-1.0.1]# make
make  all-recursive
make[1]: Entering directory `/tmp/pgpool-II-1.0.1'
Making all in parser
make[2]: Entering directory `/tmp/pgpool-II-1.0.1/parser'
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT gram.o -MD -MP
-MF ".deps/gram.Tpo" -c -o gram.o gram.c; \
then mv -f ".deps/gram.Tpo" ".deps/gram.Po"; else rm -f ".deps/gram.Tpo"; exit 1; fi
scan.l:86: warning: ???pg_err_position??? declared ???static??? but never defined
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT list.o -MD -MP
-MF ".deps/list.Tpo" -c -o list.o list.c; \
then mv -f ".deps/list.Tpo" ".deps/list.Po"; else rm -f ".deps/list.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT makefuncs.o -MD
-MP -MF ".deps/makefuncs.Tpo" -c -o makefuncs.o makefuncs.c; \
then mv -f ".deps/makefuncs.Tpo" ".deps/makefuncs.Po"; else rm -f
".deps/makefuncs.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT nodes.o -MD -MP
-MF ".deps/nodes.Tpo" -c -o nodes.o nodes.c; \
then mv -f ".deps/nodes.Tpo" ".deps/nodes.Po"; else rm -f ".deps/nodes.Tpo";
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT parser.o -MD -MP
-MF ".deps/parser.Tpo" -c -o parser.o parser.c; \
then mv -f ".deps/parser.Tpo" ".deps/parser.Po"; else rm -f ".deps/parser.Tpo";
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT pool_memory.o
-MD -MP -MF ".deps/pool_memory.Tpo" -c -o pool_memory.o pool_memory.c; \
then mv -f ".deps/pool_memory.Tpo" ".deps/pool_memory.Po"; else rm -f
".deps/pool_memory.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT pool_string.o
-MD -MP -MF ".deps/pool_string.Tpo" -c -o pool_string.o pool_string.c; \
then mv -f ".deps/pool_string.Tpo" ".deps/pool_string.Po"; else rm -f
".deps/pool_string.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT value.o -MD -MP
-MF ".deps/value.Tpo" -c -o value.o value.c; \
then mv -f ".deps/value.Tpo" ".deps/value.Po"; else rm -f ".deps/value.Tpo";
exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT keywords.o -MD
-MP -MF ".deps/keywords.Tpo" -c -o keywords.o keywords.c; \
then mv -f ".deps/keywords.Tpo" ".deps/keywords.Po"; else rm -f
".deps/keywords.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT outfuncs.o -MD
-MP -MF ".deps/outfuncs.Tpo" -c -o outfuncs.o outfuncs.c; \
then mv -f ".deps/outfuncs.Tpo" ".deps/outfuncs.Po"; else rm -f
".deps/outfuncs.Tpo"; exit 1; fi
rm -f libsql-parser.a
ar cru libsql-parser.a gram.o list.o makefuncs.o nodes.o parser.o pool_memory.o
pool_string.o value.o keywords.o outfuncs.o
ranlib libsql-parser.a
make[2]: Leaving directory `/tmp/pgpool-II-1.0.1/parser'
Making all in pcp
make[2]: Entering directory `/tmp/pgpool-II-1.0.1/pcp'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8 .1.4.17/dbserver//include   -m32 -O2 -g -MT pcp.lo -MD -MP
-MF ".deps/pcp.Tpo" -c -o pcp.lo pcp.c; \
then mv -f ".deps/pcp.Tpo" ".deps/pcp.Plo"; else rm -f ".deps/pcp.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include -m32 -O2 -g  -MT pcp.lo -MD -MP -MF
.deps/pcp.Tpo -c pcp.c  -fPIC -DPIC -o .libs/pcp.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include -m32 -O2 -g  -MT pcp.lo -MD -MP -MF
.deps/pcp.Tpo -c pcp.c -o pcp.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8 .1.4.17/dbserver//include   -m32 -O2 -g -MT pcp_stream.lo
-MD -MP -MF ".deps/pcp_stream.Tpo" -c -o pcp_stream.lo pcp_stream.c; \
then mv -f ".deps/pcp_stream.Tpo" ".deps/pcp_stream.Plo"; else rm -f
".deps/pcp_stream.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include -m32 -O2 -g  -MT pcp_stream.lo -MD
-MP -MF .deps/pcp_stream.Tpo -c pcp_stream.c  -fPIC -DPIC -o .libs/pcp_stream.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include -m32 -O2 -g  -MT pcp_stream.lo -MD
-MP -MF .deps/pcp_stream.Tpo -c pcp_stream.c -o pcp_stream.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8 .1.4.17/dbserver//include   -m32 -O2 -g -MT pcp_error.lo -MD
-MP -MF ".deps/pcp_error.Tpo" -c -o pcp_error.lo pcp_error.c; \
then mv -f ".deps/pcp_error.Tpo" ".deps/pcp_error.Plo"; else rm -f
".deps/pcp_error.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include -m32 -O2 -g  -MT pcp_error.lo -MD
-MP -MF .deps/pcp_error.Tpo -c pcp_error.c  -fPIC -DPIC -o .libs/pcp_error.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include -m32 -O2 -g  -MT pcp_error.lo -MD
-MP -MF .deps/pcp_error.Tpo -c pcp_error.c -o pcp_error.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8 .1.4.17/dbserver//include   -m32 -O2 -g -MT md5.lo -MD -MP
-MF ".deps/md5.Tpo" -c -o md5.lo md5.c; \
then mv -f ".deps/md5.Tpo" ".deps/md5.Plo"; else rm -f ".deps/md5.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include -m32 -O2 -g  -MT md5.lo -MD -MP -MF
.deps/md5.Tpo -c md5.c  -fPIC -DPIC -o .libs/md5.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include -m32 -O2 -g  -MT md5.lo -MD -MP -MF
.deps/md5.Tpo -c md5.c -o md5.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o libpcp.la -rpath
/usr/local/lib  pcp.lo pcp_stream.lo pcp_error.lo md5.lo  -lresolv -lnsl -lm
gcc -shared  .libs/pcp.o .libs/pcp_stream.o .libs/pcp_error.o .libs/md5.o 
-lresolv -lnsl -lm  -m32 -Wl,-soname -Wl,libpcp.so.0 -o .libs/libpcp.so.0.0.0
(cd .libs && rm -f libpcp.so.0 && ln -s libpcp.so.0.0.0 libpcp.so.0)
(cd .libs && rm -f libpcp.so && ln -s libpcp.so.0.0.0 libpcp.so)
ar cru .libs/libpcp.a  pcp.o pcp_stream.o pcp_error.o md5.o
ranlib .libs/libpcp.a
creating libpcp.la
(cd .libs && rm -f libpcp.la && ln -s ../libpcp.la libpcp.la)
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT
pcp_stop_pgpool.o -MD -MP -MF ".deps/pcp_stop_pgpool.Tpo" -c -o
pcp_stop_pgpool.o pcp_stop_pgpool.c; \
then mv -f ".deps/pcp_stop_pgpool.Tpo" ".deps/pcp_stop_pgpool.Po"; else rm -f
".deps/pcp_stop_pgpool.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o pcp_stop_pgpool 
pcp_stop_pgpool.o libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pcp_stop_pgpool pcp_stop_pgpool.o  ./.libs/libpcp.so
-lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pcp_stop_pgpool
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT pcp_node_count.o
-MD -MP -MF ".deps/pcp_node_count.Tpo" -c -o pcp_node_count.o pcp_node_count.c; \
then mv -f ".deps/pcp_node_count.Tpo" ".deps/pcp_node_count.Po"; else rm -f
".deps/pcp_node_count.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o pcp_node_count 
pcp_node_count.o libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pcp_node_count pcp_node_count.o  ./.libs/libpcp.so
-lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pcp_node_count
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT pcp_node_info.o
-MD -MP -MF ".deps/pcp_node_info.Tpo" -c -o pcp_node_info.o pcp_node_info.c; \
then mv -f ".deps/pcp_node_info.Tpo" ".deps/pcp_node_info.Po"; else rm -f
".deps/pcp_node_info.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o pcp_node_info 
pcp_node_info.o libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pcp_node_info pcp_node_info.o  ./.libs/libpcp.so
-lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pcp_node_info
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT pcp_proc_count.o
-MD -MP -MF ".deps/pcp_proc_count.Tpo" -c -o pcp_proc_count.o pcp_proc_count.c; \
then mv -f ".deps/pcp_proc_count.Tpo" ".deps/pcp_proc_count.Po"; else rm -f
".deps/pcp_proc_count.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o pcp_proc_count 
pcp_proc_count.o libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pcp_proc_count pcp_proc_count.o  ./.libs/libpcp.so
-lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pcp_proc_count
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT pcp_proc_info.o
-MD -MP -MF ".deps/pcp_proc_info.Tpo" -c -o pcp_proc_info.o pcp_proc_info.c; \
then mv -f ".deps/pcp_proc_info.Tpo" ".deps/pcp_proc_info.Po"; else rm -f
".deps/pcp_proc_info.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o pcp_proc_info 
pcp_proc_info.o libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pcp_proc_info pcp_proc_info.o  ./.libs/libpcp.so
-lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pcp_proc_info
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT
pcp_systemdb_info.o -MD -MP -MF ".deps/pcp_systemdb_info.Tpo" -c -o
pcp_systemdb_info.o pcp_systemdb_info.c; \
then mv -f ".deps/pcp_systemdb_info.Tpo" ".deps/pcp_systemdb_info.Po"; else rm
-f ".deps/pcp_systemdb_info.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o pcp_systemdb_info 
pcp_systemdb_info.o libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pcp_systemdb_info pcp_systemdb_info.o 
./.libs/libpcp.so -lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pcp_systemdb_info
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT
pcp_detach_node.o -MD -MP -MF ".deps/pcp_detach_node.Tpo" -c -o
pcp_detach_node.o pcp_detach_node.c; \
then mv -f ".deps/pcp_detach_node.Tpo" ".deps/pcp_detach_node.Po"; else rm -f
".deps/pcp_detach_node.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o pcp_detach_node 
pcp_detach_node.o libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pcp_detach_node pcp_detach_node.o  ./.libs/libpcp.so
-lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pcp_detach_node
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -Wall -Wmissing-prototypes
-Wmissing-declarations -D_GNU_SOURCE -I .. -I
/opt/EnterpriseDB/8.1.4.17/dbserver//include   -m32 - O2 -g -MT
pcp_attach_node.o -MD -MP -MF ".deps/pcp_attach_node.Tpo" -c -o
pcp_attach_node.o pcp_attach_node.c; \
then mv -f ".deps/pcp_attach_node.Tpo" ".deps/pcp_attach_node.Po"; else rm -f
".deps/pcp_attach_node.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link gcc  -m32 -O2 -g   -o pcp_attach_node 
pcp_attach_node.o libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pcp_attach_node pcp_attach_node.o  ./.libs/libpcp.so
-lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pcp_attach_node
make[2]: Leaving directory `/tmp/pgpool-II-1.0.1/pcp'
make[2]: Entering directory `/tmp/pgpool-II-1.0.1'
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT main.o -MD -MP
-MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT child.o -MD -MP
-MF ".deps/child.Tpo" -c -o child.o child.c; \
then mv -f ".deps/child.Tpo" ".deps/child.Po"; else rm -f ".deps/child.Tpo";
exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_auth.o -MD
-MP -MF ".deps/pool_auth.Tpo" -c -o pool_auth.o pool_auth.c; \
then mv -f ".deps/pool_auth.Tpo" ".deps/pool_auth.Po"; else rm -f
".deps/pool_auth.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_config.o
-MD -MP -MF ".deps/pool_config.Tpo" -c -o pool_config.o pool_config.c; \
then mv -f ".deps/pool_config.Tpo" ".deps/pool_config.Po"; else rm -f
".deps/pool_config.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_error.o -MD
-MP -MF ".deps/pool_error.Tpo" -c -o pool_error.o pool_error.c; \
then mv -f ".deps/pool_error.Tpo" ".deps/pool_error.Po"; else rm -f
".deps/pool_error.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT
pool_process_query.o -MD -MP -MF ".deps/pool_process_query.Tpo" -c -o
pool_process_query.o pool_process_query.c; \
then mv -f ".deps/pool_process_query.Tpo" ".deps/pool_process_query.Po"; else rm
-f ".deps/pool_process_query.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_stream.o
-MD -MP -MF ".deps/pool_stream.Tpo" -c -o pool_stream.o pool_stream.c; \
then mv -f ".deps/pool_stream.Tpo" ".deps/pool_stream.Po"; else rm -f
".deps/pool_stream.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT
pool_connection_pool.o -MD -MP -MF ".deps/pool_connection_pool.Tpo" -c -o
pool_connection_pool.o pool_connection_pool.c; \
then mv -f ".deps/pool_connection_pool.Tpo" ".deps/pool_connection_pool.Po";
else rm -f ".deps/pool_connection_pool.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_params.o
-MD -MP -MF ".deps/pool_params.Tpo" -c -o pool_params.o pool_params.c; \
then mv -f ".deps/pool_params.Tpo" ".deps/pool_params.Po"; else rm -f
".deps/pool_params.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_signal.o
-MD -MP -MF ".deps/pool_signal.Tpo" -c -o pool_signal.o pool_signal.c; \
then mv -f ".deps/pool_signal.Tpo" ".deps/pool_signal.Po"; else rm -f
".deps/pool_signal.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pcp_child.o -MD
-MP -MF ".deps/pcp_child.Tpo" -c -o pcp_child.o pcp_child.c; \
then mv -f ".deps/pcp_child.Tpo" ".deps/pcp_child.Po"; else rm -f
".deps/pcp_child.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT md5.o -MD -MP
-MF ".deps/md5.Tpo" -c -o md5.o md5.c; \
then mv -f ".deps/md5.Tpo" ".deps/md5.Po"; else rm -f ".deps/md5.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_shmem.o -MD
-MP -MF ".deps/pool_shmem.Tpo" -c -o pool_shmem.o pool_shmem.c; \
then mv -f ".deps/pool_shmem.Tpo" ".deps/pool_shmem.Po"; else rm -f
".deps/pool_shmem.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_sema.o -MD
-MP -MF ".deps/pool_sema.Tpo" -c -o pool_sema.o pool_sema.c; \
then mv -f ".deps/pool_sema.Tpo" ".deps/pool_sema.Po"; else rm -f
".deps/pool_sema.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pool_system.o
-MD -MP -MF ".deps/pool_system.Tpo" -c -o pool_system.o pool_system.c; \
then mv -f ".deps/pool_system.Tpo" ".deps/pool_system.Po"; else rm -f
".deps/pool_system.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT
pool_rewrite_query.o -MD -MP -MF ".deps/pool_rewrite_query.Tpo" -c -o
pool_rewrite_query.o pool_rewrite_query.c; \
then mv -f ".deps/pool_rewrite_query.Tpo" ".deps/pool_rewrite_query.Po"; else rm
-f ".deps/pool_rewrite_query.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT
pool_rewrite_outfuncs.o -MD -MP -MF ".deps/pool_rewrite_outfuncs.Tpo" -c -o
pool_rewrite_outfuncs.o pool_rewrite_outfuncs .c; \
then mv -f ".deps/pool_rewrite_outfuncs.Tpo" ".deps/pool_rewrite_outfuncs.Po";
else rm -f ".deps/pool_rewrite_outfuncs.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT
pool_query_cache.o -MD -MP -MF ".deps/pool_query_cache.Tpo" -c -o
pool_query_cache.o pool_query_cache.c; \
then mv -f ".deps/pool_query_cache.Tpo" ".deps/pool_query_cache.Po"; else rm -f
".deps/pool_query_cache.Tpo"; exit 1; fi
pool_query_cache.c: In function ???ForwardCacheToFrontend???:
pool_query_cache.c:545: warning: pointer targets in passing argument 1 of
???PQunescapeBytea??? differ in signedness
pool_query_cache.c:545: warning: pointer targets in passing argument 2 of
???PQunescapeBytea??? differ in signedness
pool_query_cache.c:545: warning: pointer targets in assignment differ in signedness
/bin/sh ./libtool --mode=link gcc  -m32 -O2 -g   -o pgpool -lpq
-Wl,-L,/opt/EnterpriseDB/8.1.4.17/dbserver//lib
-Wl,-rpath,/opt/EnterpriseDB/8.1.4.17/dbserver//lib  main.o child.o pool_auth.o
pool_config.o pool_error.o pool_process_query.o pool_stream.o
pool_connection_pool.o pool_params.o pool_signal.o pcp_child.o md5.o pool
_shmem.o pool_sema.o pool_system.o pool_rewrite_query.o pool_rewrite_outfuncs.o
pool_query_cache.o parser/libsql-parser.a pcp/libpcp.la -lresolv -lnsl -lm
mkdir .libs
gcc -m32 -O2 -g -o .libs/pgpool -Wl,-L
-Wl,/opt/EnterpriseDB/8.1.4.17/dbserver//lib -Wl,-rpath
-Wl,/opt/EnterpriseDB/8.1.4.17/dbserver//lib main.o child.o pool_aut h.o
pool_config.o pool_error.o pool_process_query.o pool_stream.o
pool_connection_pool.o pool_params.o pool_signal.o pcp_child.o md5.o
pool_shmem.o pool_sema.o poo l_system.o pool_rewrite_query.o
pool_rewrite_outfuncs.o pool_query_cache.o  -lpq parser/libsql-parser.a
pcp/.libs/libpcp.so -lresolv -lnsl -lm -Wl,--rpath -Wl,/usr /local/lib
creating pgpool
if gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIGDIR=\"/usr/local/etc\" -I. -I. -I.  -Wall
-Wmissing-prototypes -Wmissing-declarations -D_GNU_SOURCE -I
/opt/EnterpriseDB/8.1 .4.17/dbserver//include   -m32 -O2 -g -MT pg_md5.o -MD -MP
-MF ".deps/pg_md5.Tpo" -c -o pg_md5.o pg_md5.c; \
then mv -f ".deps/pg_md5.Tpo" ".deps/pg_md5.Po"; else rm -f ".deps/pg_md5.Tpo";
exit 1; fi
/bin/sh ./libtool --mode=link gcc  -m32 -O2 -g   -o pg_md5  pg_md5.o md5.o
parser/libsql-parser.a pcp/libpcp.la -lresolv -lnsl -lm
gcc -m32 -O2 -g -o .libs/pg_md5 pg_md5.o md5.o  parser/libsql-parser.a
pcp/.libs/libpcp.so -lresolv -lnsl -lm -Wl,--rpath -Wl,/usr/local/lib
creating pg_md5
sed 's, at sysconfdir\@,/usr/local/etc,g' pgpool.8.in >pgpool.8
make[2]: Leaving directory `/tmp/pgpool-II-1.0.1'
make[1]: Leaving directory `/tmp/pgpool-II-1.0.1'


STEP3)
[root at baba1 pgpool-II-1.0.1]# make install
Making install in parser
make[1]: Entering directory `/tmp/pgpool-II-1.0.1/parser'
make[2]: Entering directory `/tmp/pgpool-II-1.0.1/parser'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/pgpool-II-1.0.1/parser'
make[1]: Leaving directory `/tmp/pgpool-II-1.0.1/parser'
Making install in pcp
make[1]: Entering directory `/tmp/pgpool-II-1.0.1/pcp'
make[2]: Entering directory `/tmp/pgpool-II-1.0.1/pcp'
test -z "/usr/local/lib" || mkdir -p -- . "/usr/local/lib"
 /bin/sh ../libtool --mode=install /usr/bin/install -c  'libpcp.la'
'/usr/local/lib/libpcp.la'
/usr/bin/install -c .libs/libpcp.so.0.0.0 /usr/local/lib/libpcp.so.0.0.0
(cd /usr/local/lib && { ln -s -f libpcp.so.0.0.0 libpcp.so.0 || { rm -f
libpcp.so.0 && ln -s libpcp.so.0.0.0 libpcp.so.0; }; })
(cd /usr/local/lib && { ln -s -f libpcp.so.0.0.0 libpcp.so || { rm -f libpcp.so
&& ln -s libpcp.so.0.0.0 libpcp.so; }; })
/usr/bin/install -c .libs/libpcp.lai /usr/local/lib/libpcp.la
/usr/bin/install -c .libs/libpcp.a /usr/local/lib/libpcp.a
ranlib /usr/local/lib/libpcp.a
chmod 644 /usr/local/lib/libpcp.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/bin" || mkdir -p -- . "/usr/local/bin"
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'pcp_stop_pgpool'
'/usr/local/bin/pcp_stop_pgpool'
/usr/bin/install -c .libs/pcp_stop_pgpool /usr/local/bin/pcp_stop_pgpool
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'pcp_node_count'
'/usr/local/bin/pcp_node_count'
/usr/bin/install -c .libs/pcp_node_count /usr/local/bin/pcp_node_count
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'pcp_node_info'
'/usr/local/bin/pcp_node_info'
/usr/bin/install -c .libs/pcp_node_info /usr/local/bin/pcp_node_info
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'pcp_proc_count'
'/usr/local/bin/pcp_proc_count'
/usr/bin/install -c .libs/pcp_proc_count /usr/local/bin/pcp_proc_count
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'pcp_proc_info'
'/usr/local/bin/pcp_proc_info'
/usr/bin/install -c .libs/pcp_proc_info /usr/local/bin/pcp_proc_info
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'pcp_systemdb_info'
'/usr/local/bin/pcp_systemdb_info'
/usr/bin/install -c .libs/pcp_systemdb_info /usr/local/bin/pcp_systemdb_info
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'pcp_detach_node'
'/usr/local/bin/pcp_detach_node'
/usr/bin/install -c .libs/pcp_detach_node /usr/local/bin/pcp_detach_node
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'pcp_attach_node'
'/usr/local/bin/pcp_attach_node'
/usr/bin/install -c .libs/pcp_attach_node /usr/local/bin/pcp_attach_node
test -z "/usr/local/include" || mkdir -p -- . "/usr/local/include"
 /usr/bin/install -c -m 644 'pcp.h' '/usr/local/include/pcp.h'
 /usr/bin/install -c -m 644 '../pool_type.h' '/usr/local/include/pool_type.h'
make[2]: Leaving directory `/tmp/pgpool-II-1.0.1/pcp'
make[1]: Leaving directory `/tmp/pgpool-II-1.0.1/pcp'
make[1]: Entering directory `/tmp/pgpool-II-1.0.1'
make[2]: Entering directory `/tmp/pgpool-II-1.0.1'
test -z "/usr/local/bin" || mkdir -p -- . "/usr/local/bin"
  /bin/sh ./libtool --mode=install /usr/bin/install -c 'pgpool'
'/usr/local/bin/pgpool'
/usr/bin/install -c .libs/pgpool /usr/local/bin/pgpool
  /bin/sh ./libtool --mode=install /usr/bin/install -c 'pg_md5'
'/usr/local/bin/pg_md5'
/usr/bin/install -c .libs/pg_md5 /usr/local/bin/pg_md5
test -z "/usr/local/etc" || mkdir -p -- . "/usr/local/etc"
 /usr/bin/install -c -m 644 'pgpool.conf.sample' '/usr/local/etc/pgpool.conf.sample'
 /usr/bin/install -c -m 644 'pcp.conf.sample' '/usr/local/etc/pcp.conf.sample'
test -z "/usr/local/share" || mkdir -p -- . "/usr/local/share"
 /usr/bin/install -c -m 644 'sql/system_db.sql' '/usr/local/share/system_db.sql'
test -z "/usr/local/man/man8" || mkdir -p -- . "/usr/local/man/man8"
 /usr/bin/install -c -m 644 './pgpool.8' '/usr/local/man/man8/pgpool.8'
make[2]: Leaving directory `/tmp/pgpool-II-1.0.1'
make[1]: Leaving directory `/tmp/pgpool-II-1.0.1'
[root at baba1 pgpool-II-1.0.1]#


STEP4)
[root at baba1 pgpool-II-1.0.1]# cd .libs/

[root at baba1 .libs]# ls
pg_md5  pgpool

[root at baba1 .libs]# ldd ./pgpool
         (0xffffe000)
        libpq.so.4 => not found
        libpcp.so.0 => /usr/local/lib/libpcp.so.0 (0xf7f10000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00c51000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x00914000)
        libm.so.6 => /lib/libm.so.6 (0x0092b000)
        libc.so.6 => /lib/libc.so.6 (0x00b1c000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00c66000)
        /lib/ld-linux.so.2 (0x00aff000)
		  
[root at baba1 .libs]# ls /usr/lib/libpq*
ls: /usr/lib/libpq*: No such file or directory

[root at baba1 .libs]# ls /usr/lib64/libpq*
/usr/lib64/libpq.so.4  /usr/lib64/libpq.so.4.1

[root at baba1 .libs]# pgpool --version
pgpool: invalid option -- -
pgpool version 3.0.2(kamanu),
  a generic connection pool/replication/load balance server for PostgreSQL

usage: pgpool [-f config_file][-n][-d]
usage: pgpool [-f config_file] [-m {s[mart]|f[ast]|i[mmediate]}] stop
usage: pgpool [-f config_file] [-s {m[aster]|s[econdary]] switch
usage: pgpool -h
  config_file default path: /etc/pgpool.conf
  -n: don't run in daemon mode. does not detatch control tty
  -d: debug mode. lots of debug information will be printed
  stop: stop pgpool
  switch: send switch over request to pgpool
  -h: print this help
  
[root at baba1 .libs]# rpm -qa | grep pgpool
pgpool-3.0.2-1
[root at baba1 .libs]#



> 
> 
> > > > -----------------------------------------------------
> > > > 3)Just to give and idea, I have tried it on my actual host which
> is
> > > not 64bit.
> > > > It configures only with option, but make gives error;
> > > (snip)
> > > > gcc -O3 -mcpu=pentium4 -march=pentium4 -mmmx -msse -msse2
> -mfpmath=sse
> > > -o
> > > > .libs/pgpool -Wl,-L -Wl,/opt/EnterpriseDB/8.1.4.17/dbserver/lib
> > > -Wl,-rpath
> > > > -Wl,/opt/EnterpriseDB/8.1.4.17/dbserver/lib main.o child.o
> > > pool_auth.o
> > > > pool_config.o pool_error.o pool_process_query.o pool_stream.o
> > > > pool_connection_pool.o pool_params.o pool_signal.o pcp_child.o
> md5.o
> > > > pool_shmem.o pool_sema.o pool_system.o pool_rewrite_query.o
> > > > pool_rewrite_outfuncs.o pool_query_cache.o  -lpq
> > > parser/libsql-parser.a
> > > > pcp/.libs/libpcp.so -lresolv -lnsl -lm -Wl,--rpath
> -Wl,/usr/local/lib
> > > > pool_system.o(.text+0xcec): In function `pool_get_id':
> > > > : undefined reference to `PQprepare'
> > > > pool_query_cache.o(.text+0x103a): In function
> > > `pool_query_cache_register':
> > > > : undefined reference to `PQprepare'
> > > > collect2: ld returned 1 exit status
> > > 
> > > It is link error. Could you show me the result of the following
> > > command?
> > > 
> > >   % find /usr/local/lib -name libpq.a -print
> > >   % find /usr/lib -name libpq.a -print
> > >   % echo $LD_LIBRARY_PATH
> > These outputs from by 32bit machine, which has enterprisedb and
> postgresql
> > installed.
> > But even if I installed on my 32bit machine(host), it wont matter, I
> really need to
> > insatlled it on my 64bit(server) where I tried to compile x.c above.
> Only reason
> > I try
> > it is that to see 64bitmachine-edb, 32bitmachine-edb differences. I do
> not have to
> > solve(install) the issue here on 32bit.
> > [root at gurkan pgpool-II-1.0.1]# find /usr/local/lib -name libpq.a
> -print
> > [root at gurkan pgpool-II-1.0.1]# find /usr/lib -name libpq.a -print
> > /usr/lib/libpq.a
> 
> Could you test the following command?
> 
>   % nm /usr/lib/libpq.a | grep PQprepare

[gurkan at gurkan pgpool-II-1.0.1]$ nm /usr/lib/libpq.a | grep PQprepare
[gurkan at gurkan pgpool-II-1.0.1]$

-------------------------------------------------
This mail sent through IMP: www.resolution.com


More information about the Pgpool-general mailing list