Subject: | Pg.xsi:22: error: invalid application of 'sizeof' to incomplete type 'imp_dbh_t' |
On OSX Darwin (the latest Intel version), cpan "install DBD::PG" gives:
Configuring DBD::Pg 1.49
Remember to actually read the README file!
Path to pg_config?
/System/Library/CoreServices/RemoteManagement/rmdb.bundle/bin/pg_config
OS: darwin
PostgreSQL version: 70303 (default port: 5432)
****************
WARNING! Support for servers older than version 7.4 will soon end.
It is highly recommended that you upgrade PostgreSQL to a newer version.
****************
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lpq
Using DBI 1.53 (for perl 5.008006 on darwin-thread-multi-2level)
installed in /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/
Writing Makefile for DBD::Pg
cp Pg.pm blib/lib/DBD/Pg.pm
/usr/bin/perl -p -e "s/~DRIVER~/Pg/g; s/^do\(/dontdo\(/"
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver.xst > Pg.xsi
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.8.6/ExtUtils/typemap Pg.xs > Pg.xsc && mv Pg.xsc
Pg.c
cc -c
-I/BinaryCache/NetworkAssistant/NetworkAssistant-879.root~1//System/Library/CoreServices/RemoteManagement/rmdb.bundle/include
-I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI -g -pipe
-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
-I/usr/local/include -DPGLIBVERSION=70303 -DPGDEFPORT=5432 -O3
-DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc -Dfree=Perl_mfree
-Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"1.49\"
-DXS_VERSION=\"1.49\"
"-I/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE" Pg.c
In file included from Pg.xs:14:
Pg.h:21:22: error: libpq-fe.h: No such file or directory
In file included from Pg.h:47,
from Pg.xs:14:
dbdimp.h:36: error: parse error before 'PGconn'
dbdimp.h:36: warning: no semicolon at end of struct or union
dbdimp.h:38: error: parse error before '}' token
dbdimp.h:83: error: parse error before 'PGresult'
dbdimp.h:83: warning: no semicolon at end of struct or union
dbdimp.h:97: error: parse error before '}' token
In file included from Pg.c:68:
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h: In
function 'dbdxst_bind_params':
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h:53:
error: dereferencing pointer to incomplete type
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h:54:
error: dereferencing pointer to incomplete type
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h:58:
error: dereferencing pointer to incomplete type
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h:59:
error: dereferencing pointer to incomplete type
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h:60:
error: dereferencing pointer to incomplete type
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h: In
function 'dbdxst_fetchall_arrayref':
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h:86:
error: dereferencing pointer to incomplete type
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h:87:
error: dereferencing pointer to incomplete type
/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/Driver_xst.h:94:
error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__db_selectall_arrayref':
Pg.xsi:135: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__db_selectrow_arrayref':
Pg.xsi:172: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__db_commit':
Pg.xsi:251: error: dereferencing pointer to incomplete type
Pg.xsi:251: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__db_rollback':
Pg.xsi:261: error: dereferencing pointer to incomplete type
Pg.xsi:261: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__db_disconnect':
Pg.xsi:271: error: dereferencing pointer to incomplete type
Pg.xsi:275: error: dereferencing pointer to incomplete type
Pg.xsi:276: error: dereferencing pointer to incomplete type
Pg.xsi:277: error: dereferencing pointer to incomplete type
Pg.xsi:281: error: dereferencing pointer to incomplete type
Pg.xsi:281: error: dereferencing pointer to incomplete type
Pg.xsi:283: error: dereferencing pointer to incomplete type
Pg.xsi:285: error: dereferencing pointer to incomplete type
Pg.xsi:289: error: dereferencing pointer to incomplete type
Pg.xsi:289: error: dereferencing pointer to incomplete type
Pg.xsi:289: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__db_STORE':
Pg.xsi:303: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__db_FETCH':
Pg.xsi:315: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__db_DESTROY':
Pg.xsi:325: error: dereferencing pointer to incomplete type
Pg.xsi:327: error: dereferencing pointer to incomplete type
Pg.xsi:327: error: dereferencing pointer to incomplete type
Pg.xsi:328: error: dereferencing pointer to incomplete type
Pg.xsi:334: error: dereferencing pointer to incomplete type
Pg.xsi:335: error: dereferencing pointer to incomplete type
Pg.xsi:336: error: dereferencing pointer to incomplete type
Pg.xsi:338: error: dereferencing pointer to incomplete type
Pg.xsi:339: error: dereferencing pointer to incomplete type
Pg.xsi:339: error: dereferencing pointer to incomplete type
Pg.xsi:339: error: dereferencing pointer to incomplete type
Pg.xsi:340: error: dereferencing pointer to incomplete type
Pg.xsi:341: error: dereferencing pointer to incomplete type
Pg.xsi:343: error: dereferencing pointer to incomplete type
Pg.xsi:344: error: dereferencing pointer to incomplete type
Pg.xsi:359: error: dereferencing pointer to incomplete type
Pg.xsi:360: error: dereferencing pointer to incomplete type
Pg.xsi:361: error: dereferencing pointer to incomplete type
Pg.xsi:367: error: dereferencing pointer to incomplete type
Pg.xsi:367: error: dereferencing pointer to incomplete type
Pg.xsi:367: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__st_execute':
Pg.xsi:567: error: dereferencing pointer to incomplete type
Pg.xsi:568: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__st_finish':
Pg.xsi:648: error: dereferencing pointer to incomplete type
Pg.xsi:649: error: dereferencing pointer to incomplete type
Pg.xsi:653: error: dereferencing pointer to incomplete type
Pg.xsi:656: error: dereferencing pointer to incomplete type
Pg.xsi:656: error: dereferencing pointer to incomplete type
Pg.xsi:656: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__st_STORE':
Pg.xsi:696: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__st_FETCH_attrib':
Pg.xsi:713: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'XS_DBD__Pg__st_DESTROY':
Pg.xsi:723: error: dereferencing pointer to incomplete type
Pg.xsi:725: error: dereferencing pointer to incomplete type
Pg.xsi:725: error: dereferencing pointer to incomplete type
Pg.xsi:726: error: dereferencing pointer to incomplete type
Pg.xsi:731: error: dereferencing pointer to incomplete type
Pg.xsi:732: error: dereferencing pointer to incomplete type
Pg.xsi:732: error: dereferencing pointer to incomplete type
Pg.xsi:732: error: dereferencing pointer to incomplete type
Pg.xsi:733: error: dereferencing pointer to incomplete type
Pg.xsi:734: error: dereferencing pointer to incomplete type
Pg.xsi:736: error: dereferencing pointer to incomplete type
Pg.xsi:737: error: dereferencing pointer to incomplete type
Pg.xsi:738: error: dereferencing pointer to incomplete type
Pg.xsi:746: error: dereferencing pointer to incomplete type
Pg.xsi:746: error: dereferencing pointer to incomplete type
Pg.xsi:746: error: dereferencing pointer to incomplete type
Pg.xs: In function 'XS_DBD__Pg__db_state':
Pg.xs:163: error: dereferencing pointer to incomplete type
Pg.xs:163: error: dereferencing pointer to incomplete type
Pg.xs: In function 'XS_DBD__Pg__db_do':
Pg.xs:193: error: dereferencing pointer to incomplete type
Pg.xs:194: error: dereferencing pointer to incomplete type
Pg.xs: In function 'XS_DBD__Pg__db_pg_savepoint':
Pg.xs:245: error: dereferencing pointer to incomplete type
Pg.xs:245: error: dereferencing pointer to incomplete type
Pg.xs: In function 'XS_DBD__Pg__db_pg_rollback_to':
Pg.xs:256: error: dereferencing pointer to incomplete type
Pg.xs:256: error: dereferencing pointer to incomplete type
Pg.xs: In function 'XS_DBD__Pg__db_pg_release':
Pg.xs:267: error: dereferencing pointer to incomplete type
Pg.xs:267: error: dereferencing pointer to incomplete type
Pg.xs: In function 'XS_DBD__Pg__st_state':
Pg.xs:482: error: dereferencing pointer to incomplete type
Pg.xs:483: error: dereferencing pointer to incomplete type
Pg.xs:483: error: dereferencing pointer to incomplete type
Pg.xsi: In function 'boot_DBD__Pg':
Pg.xsi:22: error: invalid application of 'sizeof' to incomplete type
'imp_dbh_t'
Pg.xsi:23: error: invalid application of 'sizeof' to incomplete type
'imp_sth_t'
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
Show quoted text
cpan> quit