DBD-Pg installation - make fails on dbdimp.c

"Schmid, Dr R." <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>
Hi all,

I am trying to install DBD-Pg-1.49, but I am getting an error on
compiling dbdimp.c. Any hints appreciated - please see output below.

Thanks,
Ralf




[ralf@localhost DBD-Pg-1.49]$ uname -a
Linux localhost 2.4.21-50.ELsmp #1 SMP Tue May 8 17:18:29 EDT 2007 i686
i686 i386 GNU/Linux

[ralf@localhost DBD-Pg-1.49]$ perl Makefile.PL 
Configuring DBD::Pg 1.49 Remember to actually read the README file!
OS: linux
PostgreSQL version: 80204 (default port: 5432)
WARNING: NO_META is not a known parameter.
'NO_META' is not a known MakeMaker parameter name.
Using DBI 1.58 (for perl 5.008 on i386-linux-thread-multi) installed in
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::Pg

[ralf@localhost DBD-Pg-1.49]$ make
gcc -c  -I/usr/include
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPGLIBVERSION=80204
-DPGDEFPORT=5432 -O2 -g -pipe -march=i386 -mcpu=i686
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"1.49\" 
-DXS_VERSION=\"1.49\" -fPIC 
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   Pg.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
gcc -c  -I/usr/include
-I/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DPGLIBVERSION=80204
-DPGDEFPORT=5432 -O2 -g -pipe -march=i386 -mcpu=i686
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"1.49\" 
-DXS_VERSION=\"1.49\" -fPIC 
"-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   dbdimp.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
dbdimp.c:116: error: syntax error before "dbd_db_txn_status"
dbdimp.c:116: warning: data definition has no type or storage class
dbdimp.c: In function `_sqlstate':
dbdimp.c:168: error: `PG_DIAG_SQLSTATE' undeclared (first use in this
function)
dbdimp.c:168: error: (Each undeclared identifier is reported only once
dbdimp.c:168: error: for each function it appears in.)
dbdimp.c:168: warning: comparison between pointer and integer
dbdimp.c:169: warning: passing arg 1 of `strlen' makes pointer from
integer without a cast
dbdimp.c:169: warning: passing arg 2 of `memcpy' makes pointer from
integer without a cast
dbdimp.c:169: warning: passing arg 2 of `strncpy' makes pointer from
integer without a cast
dbdimp.c:169: warning: passing arg 2 of `strncpy' makes pointer from
integer without a cast
dbdimp.c: In function `dbd_db_ping':
dbdimp.c:423: error: `PGTransactionStatusType' undeclared (first use in
this function)
dbdimp.c:423: error: syntax error before "tstatus"
dbdimp.c:435: error: `tstatus' undeclared (first use in this function)
dbdimp.c: At top level:
dbdimp.c:463: error: syntax error before "dbd_db_txn_status"
dbdimp.c: In function `dbd_db_rollback_commit':
dbdimp.c:492: error: `PGTransactionStatusType' undeclared (first use in
this function)
dbdimp.c:492: error: syntax error before "tstatus"
dbdimp.c:512: error: `tstatus' undeclared (first use in this function)
dbdimp.c:513: error: `PQTRANS_IDLE' undeclared (first use in this
function)
dbdimp.c:520: error: `PQTRANS_ACTIVE' undeclared (first use in this
function)
dbdimp.c:523: error: `PQTRANS_INTRANS' undeclared (first use in this
function)
dbdimp.c:523: error: `PQTRANS_INERROR' undeclared (first use in this
function)
dbdimp.c: In function `dbd_st_prepare_statement':
dbdimp.c:1567: warning: assignment makes pointer from integer without a
cast
dbdimp.c: In function `dbd_st_execute':
dbdimp.c:2057: warning: assignment makes pointer from integer without a
cast
dbdimp.c:2121: warning: assignment makes pointer from integer without a
cast
dbdimp.c: In function `dbd_st_deallocate_statement':
dbdimp.c:2375: error: `PGTransactionStatusType' undeclared (first use in
this function)
dbdimp.c:2375: error: syntax error before "tstatus"
dbdimp.c:2386: error: `tstatus' undeclared (first use in this function)
dbdimp.c:2391: error: `PQTRANS_INERROR' undeclared (first use in this
function)
make: *** [dbdimp.o] Error 1

[ralf@localhost DBD-Pg-1.49]$
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.