Thread: Perl Module + postgres 7.0.2

Perl Module + postgres 7.0.2

From
Dave Camarillo
Date:
I'm trying to get the perl to work with PgSQL as a client app, however when
I go to compile the Postgres 1.4 module,
It comes up with the error

cc -c -I/usr/local/postgres95/include -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"1.4\" -DXS_VERSION=\"1.4\" -fpic -I/usr/local/pgsql/include
-I/usr/local/lib/perl5/5.6.0/i686-linux/CORE  Postgres.c
Postgres.xs: In function `XS_PGconnPtr_getline':
Postgres.xs:148: `sv_undef' undeclared (first use in this function)
Postgres.xs:148: (Each undeclared identifier is reported only once
Postgres.xs:148: for each function it appears in.)
Postgres.xs: In function `XS_QUERYPtr_fetchrow':
Postgres.xs:339: `sv_undef' undeclared (first use in this function)
make: *** [Postgres.o] Error 1

I'm running perl 5.005 and postgres 7.0.2....any ideas?
Note...the postgres95 directory does not exist as I'm runing 7.0.2...does
this have any affect on it?

Thanks
Dave


Re: Perl Module + postgres 7.0.2

From
Gilles DAROLD
Date:
Hi,

I think you have really missed something or you are coming back from far :-)

Dave Camarillo wrote:

> I'm trying to get the perl to work with PgSQL as a client app, however when
> I go to compile the Postgres 1.4 module,

Postgres 1.4 module is for Postgres95 which is no more supported.

> It comes up with the error
>
> cc -c -I/usr/local/postgres95/include -fno-strict-aliasing
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
> -DVERSION=\"1.4\" -DXS_VERSION=\"1.4\" -fpic -I/usr/local/pgsql/include
> -I/usr/local/lib/perl5/5.6.0/i686-linux/CORE  Postgres.c
>
> I'm running perl 5.005 and postgres 7.0.2....any ideas?

You are also running Perl 5.6.0 and if you have postgres 7.0.2 you must use
now (current time is 09/08/2000) DBI/DBD::Pg to have an efficient Perl
frontend to PostgreSQL.

Take some rhum and go ahead :-)

Regards
 Gilles