Thread: DBD-Pg-0.73 make failed

DBD-Pg-0.73 make failed

From
"Igor Sysoev"
Date:
While trying to make DBD-Pg-0.73 I found such error:

cc -c -I/usr/local/pgsql/include -I/usr/local/include/pgsql
-I/usr/include/pgsql -I/usr/local/lib/perl5/5.00502/i386-freebsd/DBI
-I/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI
-I/usr/local/include -O     -DVERSION=\"0.73\"  -DXS_VERSION=\"0.73\"
-DPIC -fpic -I/usr/local/lib/perl5/5.00502/i386-freebsd/CORE
  dbdimp.c

dbdimp.c: In function `dbd_db_ping':
dbdimp.c:135: dereferencing pointer to incomplete type
dbdimp.c:136: dereferencing pointer to incomplete type
dbdimp.c:140: dereferencing pointer to incomplete type
dbdimp.c:140: dereferencing pointer to incomplete type
dbdimp.c:141: dereferencing pointer to incomplete type
dbdimp.c:142: dereferencing pointer to incomplete type
dbdimp.c:146: dereferencing pointer to incomplete type
dbdimp.c:146: dereferencing pointer to incomplete type
dbdimp.c:146: dereferencing pointer to incomplete type
dbdimp.c:146: dereferencing pointer to incomplete type
dbdimp.c:147: dereferencing pointer to incomplete type
dbdimp.c:148: dereferencing pointer to incomplete type
*** Error code 1

I think that cc doesn't like pointers like
"imp_dbh->conn->status", "imp_dbh->conn->Pfout" and so.

Now I simply commented almost all body of dbd_db_ping()

FreeBSD 2.2.7, PostgreSQL-6.4
gcc version 2.7.2.1

I used before Pg module but I need persistent connections
so I have to use mod_perl and Apache::DBI.

With best regards,
Igor Sysoev
http://www.nitek.ru/~igor/


Re: [INTERFACES] DBD-Pg-0.73 make failed

From
Tom Lane
Date:
"Igor Sysoev" <igor@nitek.ru> writes:
> While trying to make DBD-Pg-0.73 I found such error:
> dbdimp.c:146: dereferencing pointer to incomplete type

> I think that cc doesn't like pointers like
> "imp_dbh->conn->status", "imp_dbh->conn->Pfout" and so.

Is there a newer version of DBD-Pg?  That one evidently doesn't work
with Postgres 6.4.

The incomplete-type messages appear because the contents of the conn
struct are no longer visible to calling applications.  You could
work around that by including <libpq-int.h>; but if the thing is
trying to touch field Pfout then it's going to lose anyway, because
that field no longer exists (libpq doesn't use a stdio file to contact
the backend anymore).

I had the idea that someone had updated DBD-Pg for 6.4, but I don't
know for sure.

            regards, tom lane

RE: [INTERFACES] DBD-Pg-0.73 make failed

From
"Ken Wills"
Date:
I'm using FreeBSD-2.2.7-Release with Postgres 6.4 and DBD-Pg-0.89 quite happily.

I'd grab the latest version and the latest version of DBI from www.cpan.org

Ken


Ken Wills

-----Original Message-----
From: Igor Sysoev [mailto:igor@nitek.ru]
Sent: Thursday, March 11, 1999 8:23 AM
To: pgsql-interfaces@postgreSQL.org
Subject: [INTERFACES] DBD-Pg-0.73 make failed


While trying to make DBD-Pg-0.73 I found such error:

cc -c -I/usr/local/pgsql/include -I/usr/local/include/pgsql
-I/usr/include/pgsql -I/usr/local/lib/perl5/5.00502/i386-freebsd/DBI
-I/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBI
-I/usr/local/include -O     -DVERSION=\"0.73\"  -DXS_VERSION=\"0.73\"
-DPIC -fpic -I/usr/local/lib/perl5/5.00502/i386-freebsd/CORE