Having problems compiling DBD::Pg on a RHEL 5.5 machine running Perl 5.8.8
running Greenplum which is based on PostgreSQL 8.2.15.
[root@mdw DBD-Pg-2.19.3]# perl Makefile.PL
Configuring DBD::Pg 2.19.3
CONFIGURE value not available
PostgreSQL version: 80215 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: /usr/local/GP-4.2.4.0/include
POSTGRES_LIB: /usr/local/GP-4.2.4.0/lib
OS: linux
Using DBI 1.52 (for perl 5.008008 on x86_64-linux-thread-multi) installed
in /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::Pg
Writing MYMETA.yml and MYMETA.json
[root@mdw DBD-Pg-2.19.3]#
[root@mdw DBD-Pg-2.19.3]# make
Skip blib/lib/DBD/testme.tmp.pl (unchanged)
Skip blib/lib/Bundle/DBD/Pg.pm (unchanged)
Skip blib/lib/DBD/Pg.pm (unchanged)
gcc -c -I/usr/local/GP-4.2.4.0/include
-I/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPGLIBVERSION=80215
-DPGDEFPORT=5432 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.19.3\"
-DXS_VERSION=\"2.19.3\" -fPIC
"-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" Pg.c
gcc -c -I/usr/local/GP-4.2.4.0/include
-I/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPGLIBVERSION=80215
-DPGDEFPORT=5432 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.19.3\"
-DXS_VERSION=\"2.19.3\" -fPIC
"-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" dbdimp.c
dbdimp.c:55: error: conflicting types for ‘lo_import_with_oid’
/usr/local/GP-4.2.4.0/include/libpq-fe.h:533: error: previous declaration
of ‘lo_import_with_oid’ was here
dbdimp.c:56: error: conflicting types for ‘lo_import_with_oid’
/usr/local/GP-4.2.4.0/include/libpq-fe.h:533: error: previous declaration
of ‘lo_import_with_oid’ was here
dbdimp.c: In function ‘pg_st_prepare_statement’:
dbdimp.c:2178: warning: comparison is always false due to limited range of
data type
dbdimp.c: In function ‘pg_st_execute’:
dbdimp.c:3036: warning: comparison is always false due to limited range of
data type
dbdimp.c:3046: warning: comparison is always false due to limited range of
data type
dbdimp.c:3047: warning: comparison is always false due to limited range of
data type
dbdimp.c:3186: warning: comparison is always false due to limited range of
data type
dbdimp.c: In function ‘pg_st_fetch’:
dbdimp.c:3414: warning: comparison is always false due to limited range of
data type
make: *** [dbdimp.o] Error 1
Thanks,
Jon