DBI install problems

DBI install problems

am 19.01.2006 19:34:36 von jeffballard

Hello all.

I am having an issue installing DBI on my system. I have tried both
installing by hand and using CPAN and I get the same results. After
toying with libraries and editting scripts, I can still only get so
far. Here's is the cluster of errors I am receiving and I am stumped.
Any ideas?


In file included from /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:1276,
from DBIXS.h:19,
from Perl.xs:5:
/usr/lib/perl5/5.8.6/i386-linux/CORE/cop.h:217: error: syntax error
before "bool"
/usr/lib/perl5/5.8.6/i386-linux/CORE/cop.h:217: warning: no semicolon at
end of struct or union
/usr/lib/perl5/5.8.6/i386-linux/CORE/cop.h:218: warning: type defaults
to `int' in declaration of `sbu_rxtainted'
/usr/lib/perl5/5.8.6/i386-linux/CORE/cop.h:218: warning: data definition
has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/cop.h:227: error: syntax error
before '}' token
/usr/lib/perl5/5.8.6/i386-linux/CORE/cop.h:268: error: field `cx_subst'
has incomplete type
In file included from /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:1280,
from DBIXS.h:19,
from Perl.xs:5:
/usr/lib/perl5/5.8.6/i386-linux/CORE/scope.h:135: error: syntax error
before "bool"
/usr/lib/perl5/5.8.6/i386-linux/CORE/scope.h:135: warning: no semicolon
at end of struct or union
In file included from /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2109,
from DBIXS.h:19,
from Perl.xs:5:
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:27: error: syntax error
before "Perl_Gv_AMupdate"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:27: warning: type defaults
to `int' in declaration of `Perl_Gv_AMupdate'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:27: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:33: error: syntax error
before "Perl_avhv_exists_ent"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:33: warning: type defaults
to `int' in declaration of `Perl_avhv_exists_ent'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:33: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:98: error: syntax error
before "Perl_do_aexec"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:98: warning: type defaults
to `int' in declaration of `Perl_do_aexec'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:98: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:101: error: syntax error
before "Perl_do_close"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:101: error: syntax error
before "bool"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:101: warning: type defaults
to `int' in declaration of `Perl_do_close'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:101: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:102: error: syntax error
before "Perl_do_eof"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:102: warning: type defaults
to `int' in declaration of `Perl_do_eof'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:102: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:103: error: syntax error
before "Perl_do_exec"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:103: warning: type defaults
to `int' in declaration of `Perl_do_exec'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:103: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:115: error: syntax error
before "Perl_do_open"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:115: warning: type defaults
to `int' in declaration of `Perl_do_open'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:115: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:118: error: syntax error
before "Perl_do_print"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:118: warning: type defaults
to `int' in declaration of `Perl_do_print'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:118: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:121: error: syntax error
before "Perl_do_seek"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:121: warning: type defaults
to `int' in declaration of `Perl_do_seek'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:121: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:149: error: syntax error
before "bool"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:182: error: syntax error
before "Perl_hv_exists"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:182: warning: type defaults
to `int' in declaration of `Perl_hv_exists'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:182: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:183: error: syntax error
before "Perl_hv_exists_ent"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:183: warning: type defaults
to `int' in declaration of `Perl_hv_exists_ent'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:183: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:204: error: syntax error
before "Perl_io_close"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:204: warning: type defaults
to `int' in declaration of `Perl_io_close'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:204: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:522: error: syntax error
before "Perl_sv_2bool"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:522: warning: type defaults
to `int' in declaration of `Perl_sv_2bool'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:522: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:554: error: syntax error
before "Perl_sv_derived_from"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:554: warning: type defaults
to `int' in declaration of `Perl_sv_derived_from'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:554: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:592: error: syntax error
before "Perl_sv_tainted"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:592: warning: type defaults
to `int' in declaration of `Perl_sv_tainted'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:592: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:596: error: syntax error
before "Perl_sv_upgrade"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:596: warning: type defaults
to `int' in declaration of `Perl_sv_upgrade'
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:596: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:598: error: syntax error
before "bool"
/usr/lib/perl5/5.8.6/i386-linux/CORE/proto.h:601: error: syntax error
before "bool"
In file included from /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2133,
from DBIXS.h:19,
from Perl.xs:5:
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:48: error: syntax error
before "PL_nomemok"
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:48: warning: type
defaults to `int' in declaration of `PL_nomemok'
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:48: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:136: error: syntax error
before "PL_in_my"
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:136: warning: type
defaults to `int' in declaration of `PL_in_my'
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:136: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:144: error: syntax error
before "PL_do_undump"
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:144: warning: type
defaults to `int' in declaration of `PL_do_undump'
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:144: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:157: error: syntax error
before "PL_collation_standard"
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:157: warning: type
defaults to `int' in declaration of `PL_collation_standard'
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:157: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:166: error: syntax error
before "PL_numeric_standard"
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:166: warning: type
defaults to `int' in declaration of `PL_numeric_standard'
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:166: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:168: error: syntax error
before "PL_numeric_local"
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:168: warning: type
defaults to `int' in declaration of `PL_numeric_local'
/usr/lib/perl5/5.8.6/i386-linux/CORE/perlvars.h:168: warning: data
definition has no type or storage class
In file included from /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2138,
from DBIXS.h:19,
from Perl.xs:5:
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:28: error: syntax error
before "PL_minus_c"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:28: warning: type
defaults to `int' in declaration of `PL_minus_c'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:28: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:32: error: syntax error
before "PL_preprocess"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:32: warning: type
defaults to `int' in declaration of `PL_preprocess'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:32: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:33: error: syntax error
before "PL_minus_n"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:33: warning: type
defaults to `int' in declaration of `PL_minus_n'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:33: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:34: error: syntax error
before "PL_minus_p"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:34: warning: type
defaults to `int' in declaration of `PL_minus_p'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:34: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:35: error: syntax error
before "PL_minus_l"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:35: warning: type
defaults to `int' in declaration of `PL_minus_l'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:35: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:36: error: syntax error
before "PL_minus_a"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:36: warning: type
defaults to `int' in declaration of `PL_minus_a'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:36: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:37: error: syntax error
before "PL_minus_F"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:37: warning: type
defaults to `int' in declaration of `PL_minus_F'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:37: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:38: error: syntax error
before "PL_doswitches"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:38: warning: type
defaults to `int' in declaration of `PL_doswitches'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:38: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:39: error: syntax error
before "PL_dowarn"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:39: warning: type
defaults to `int' in declaration of `PL_dowarn'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:39: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:40: error: syntax error
before "PL_doextract"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:40: warning: type
defaults to `int' in declaration of `PL_doextract'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:40: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:41: error: syntax error
before "PL_sawampersand"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:41: warning: type
defaults to `int' in declaration of `PL_sawampersand'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:41: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:42: error: syntax error
before "PL_sawstudy"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:42: warning: type
defaults to `int' in declaration of `PL_sawstudy'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:42: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:43: error: syntax error
before "PL_sawvec"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:43: warning: type
defaults to `int' in declaration of `PL_sawvec'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:43: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:44: error: syntax error
before "PL_unsafe"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:44: warning: type
defaults to `int' in declaration of `PL_unsafe'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:44: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:120: error: syntax error
before "PL_tainting"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:120: warning: type
defaults to `int' in declaration of `PL_tainting'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:120: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:152: error: syntax error
before "PL_preambled"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:152: warning: type
defaults to `int' in declaration of `PL_preambled'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:152: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:192: error: syntax error
before "PL_in_clean_objs"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:192: warning: type
defaults to `int' in declaration of `PL_in_clean_objs'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:192: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:193: error: syntax error
before "PL_in_clean_all"
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:193: warning: type
defaults to `int' in declaration of `PL_in_clean_all'
/usr/lib/perl5/5.8.6/i386-linux/CORE/intrpvar.h:193: warning: data
definition has no type or storage class
In file included from /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:2140,
from DBIXS.h:19,
from Perl.xs:5:
/usr/lib/perl5/5.8.6/i386-linux/CORE/thrdvar.h:67: error: syntax error
before "PL_tainted"
/usr/lib/perl5/5.8.6/i386-linux/CORE/thrdvar.h:67: warning: type
defaults to `int' in declaration of `PL_tainted'
/usr/lib/perl5/5.8.6/i386-linux/CORE/thrdvar.h:67: warning: data
definition has no type or storage class
/usr/lib/perl5/5.8.6/i386-linux/CORE/thrdvar.h:88: error: syntax error
before "PL_dirty"
/usr/lib/perl5/5.8.6/i386-linux/CORE/thrdvar.h:88: warning: type
defaults to `int' in declaration of `PL_dirty'
/usr/lib/perl5/5.8.6/i386-linux/CORE/thrdvar.h:88: warning: data
definition has no type or storage class
Perl.c: In function `XS_DBD__Perl__db__login':
Perl.c:129: warning: implicit declaration of function `SvPV_nolen'
Perl.c:129: warning: cast does not match function type
Perl.c: In function `XS_DBD__Perl__db_selectrow_arrayref':
Perl.c:213: warning: implicit declaration of function `PERL_UNUSED_VAR'
Perl.c: In function `XS_DBD__Perl__db_do':
Perl.c:287: warning: cast does not match function type
Perl.xsi: In function `XS_DBD__Perl__db_DESTROY':
Perl.xsi:341: warning: format argument is not a pointer (arg 3)
Perl.xsi: In function `XS_DBD__Perl__st__prepare':
Perl.xsi:427: warning: passing arg 3 of `dbd_st_prepare' makes pointer
from integer without acast
Perl.xsi: In function `XS_DBD__Perl__st_DESTROY':
Perl.xsi:727: warning: format argument is not a pointer (arg 3)
Perl.c: At top level:
/usr/lib/perl5/5.8.6/i386-linux/CORE/patchlevel.h:41: warning:
'local_patches' defined but not used
make: *** [Perl.o] Error 1

Re: DBI install problems

am 20.01.2006 16:32:50 von Tim.Bunce

On Thu, Jan 19, 2006 at 10:34:36AM -0800, Jeff Ballard wrote:
> Hello all.
>
> I am having an issue installing DBI on my system. I have tried both
> installing by hand and using CPAN and I get the same results. After
> toying with libraries and editting scripts, I can still only get so
> far. Here's is the cluster of errors I am receiving and I am stumped.
> Any ideas?

> In file included from /usr/lib/perl5/5.8.6/i386-linux/CORE/perl.h:1276,
> from DBIXS.h:19,
> from Perl.xs:5:
> /usr/lib/perl5/5.8.6/i386-linux/CORE/cop.h:217: error: syntax error before "bool"

The compiler doesn't like perl's own header files.
Perhaps you're not using the same compiler that that perl was built with.
It's important that you do.

If all else fails, build and install a fresh perl and use that.

Tim.