jmanjohn61 has asked for the wisdom of the Perl Monks concerning the following question:

What can I do to correct the errors I receive compiling DBD::PG?
I receive many similar errors that read like this: Pg.c:1636: error: `XS_DBD__Pg__db_lo_creat' undeclared (first use in t +his function) Pg.c:1637: error: `XS_DBD__Pg__db_lo_tell' undeclared (first use in th +is function) Pg.c:1638: error: `XS_DBD__Pg__db_lo_unlink' undeclared (first use in +this function) Pg.c:1639: error: `XS_DBD__Pg__db_lo_import' undeclared (first use in +this function) Pg.c:1640: error: `XS_DBD__Pg__db_lo_export' undeclared (first use in +this function) Pg.c:1641: error: `XS_DBD__Pg__db_putline' undeclared (first use in th +is function) Pg.c:1642: error: `XS_DBD__Pg__db_getline' undeclared (first use in th +is function) Pg.c:1643: error: `XS_DBD__Pg__db_endcopy' undeclared (first use in th +is function) Pg.c:1644: error: `XS_DBD__Pg__db__pg_type_info' undeclared (first use + in this function) Pg.xsi:18: error: `items' undeclared (first use in this function) Pg.xsi:19: error: `DBISTATE_INIT' undeclared (first use in this functi +on) Pg.xsi:21: error: `imp_drh_t' undeclared (first use in this function) Pg.xsi:22: error: `imp_dbh_t' undeclared (first use in this function) Pg.xsi:23: error: `imp_sth_t' undeclared (first use in this function) Pg.xsi:24: error: `DBIS' undeclared (first use in this function) Pg.c:1680: error: `XSRETURN_YES' undeclared (first use in this functio +n) make: *** [Pg.o] Error 1 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible

Edit by castaway, code tagged errors

Replies are listed 'Best First'.
Re: DBD::PG compile fails
by coec (Chaplain) on May 26, 2004 at 06:57 UTC
    Did you do an RPM install of postgres? If so, make sure you have install the postgres 'devel' package.

    Otherwise, you'll need to tell the Perl module where the postgres source can be found.

    CC