I'm having the same issue. PostgreSQL 8.4, DBI 2.0 e DBD 2.18

export POSTGRES_HOME=/usr/local/pgsql
export POSTGRES_LIB=/usr/local/pgsql/lib
export POSTGRES_INCLUDE=/usr/local/pgsql/include
export PATH=$PATH:$PGHOME/bin

xposhom1:~/dbi-link-2.0.0 # perl Makefile.PL
Writing Makefile for dbi-link
xposhom1:~/dbi-link-2.0.0 # make
xposhom1:~/dbi-link-2.0.0 # make install
Writing 
/usr/lib/perl5/site_perl/5.8.8/s390x-linux-thread-multi/auto/dbi-link/.packlist
Appending installation info to 
/usr/lib/perl5/5.8.8/s390x-linux-thread-multi/perllocal.pod

xposhom1:~ # tar -xzvf DBD-Pg-2.18.1.tar.gz
xposhom1:~ # cd DBD-Pg-2.18.1/

xposhom1:~/DBD-Pg-2.18.1 # perl Makefile.PL
Configuring DBD::Pg 2.18.1
PostgreSQL version: 80404 (default port: 5432)
POSTGRES_HOME: /usr/local/pgsql
POSTGRES_INCLUDE: /usr/local/pgsql/include
POSTGRES_LIB: /usr/local/pgsql/lib
OS: linux
Checking if your kit is complete...
Looks good
Warning: prerequisite DBI 1.52 not found. We have 1.50.
Warning: prerequisite version 0 not found.
Could not eval '
            package ExtUtils::MakeMaker::_version;
            no strict;

            local $VERSION;
            $VERSION=undef; do {
                        use version; our $VERSION = qv('2.18.1');
            }; $VERSION
        ' in Pg.pm: Can't locate version.pm in @INC (@INC contains: t/lib 
/usr/lib/perl5/5.8.8/s390x-linux-thread-multi /usr/lib/perl5/5.8.8 
/usr/lib/perl5/site_perl/5.8.8/s390x-linux-thread-multi 
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi 
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at (eval 
10) line 7, <FH> line 20.
BEGIN failed--compilation aborted at (eval 10) line 7, <FH> line 20.
WARNING: Setting VERSION via file 'Pg.pm' failed
 at /usr/lib/perl5/5.8.8/ExtUtils/MakeMaker.pm line 495
Using DBI 1.50 (for perl 5.008008 on s390x-linux-thread-multi) installed 
in /usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::Pg

xposhom1:~/DBD-Pg-2.18.1 # make
cp testme.tmp.pl blib/lib/DBD/testme.tmp.pl
cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm
cp Pg.pm blib/lib/DBD/Pg.pm
/usr/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/" 
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI//Driver.xst 
> Pg.xsi
/usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.8.8/ExtUtils/typemap  Pg.xs > Pg.xsc && mv Pg.xsc Pg.c
cc -c  -I/usr/local/pgsql/include 
-I/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/ 
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING 
-fno-strict-aliasing -pipe -Wdeclaration-after-statement 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPGLIBVERSION=80404 
-DPGDEFPORT=5432 -O2 -fmessage-length=0 -Wall -g -Wall -pipe 
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree 
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"undef\" 
-DXS_VERSION=\"undef\" -fPIC 
"-I/usr/lib/perl5/5.8.8/s390x-linux-thread-multi/CORE"   Pg.c
In file included from 
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/DBIXS.h:31,
                 from Pg.h:57,
                 from Pg.xs:14:
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/dbipport.h:227:1:
 
warning: "PERL_UNUSED_DECL" redefined
In file included from 
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/DBIXS.h:19,
                 from Pg.h:57,
                 from Pg.xs:14:
/usr/lib/perl5/5.8.8/s390x-linux-thread-multi/CORE/perl.h:163:1: warning: 
this is the location of the previous definition
In file included from Pg.c:67:
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/Driver_xst.h:
 
In function âdbixst_bounce_methodâ:
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/Driver_xst.h:14:
 
error: âmy_perlâ undeclared (first use in this function)
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/Driver_xst.h:14:
 
error: (Each undeclared identifier is reported only once
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/Driver_xst.h:14:
 
error: for each function it appears in.)
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/Driver_xst.h:
 
In function âdbdxst_bind_paramsâ:
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/Driver_xst.h:57:
 
error: âmy_perlâ undeclared (first use in this function)
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/Driver_xst.h:
 
In function âdbdxst_fetchall_arrayrefâ:
/usr/lib/perl5/vendor_perl/5.8.8/s390x-linux-thread-multi/auto/DBI/Driver_xst.h:78:
 
error: âmy_perlâ undeclared (first use in this function)
make: *** [Pg.o] Error 1



Reply via email to