Subject: | Problem with compiling DBD::Informix |
Hello,
I have a problem compile DBD::Informix.
Here is the error:
Informix.xsi: In function `XS_DBD__Informix__dr_data_sources':
Informix.xsi:56: parse error before `*'
Informix.xsi:58: `av' undeclared (first use in this function)
Informix.xsi:58: (Each undeclared identifier is reported only once
Informix.xsi:58: for each function it appears in.)
Informix.xsi:58: `imp_drh' undeclared (first use in this function)
I found that in the Change of DBD-Informix-2003.03.0400
stand that there was a fix which cause this error but i it still
there. I found that the File Informix.xsi is generated with:
/usr/bin/perl -p -e "s/~DRIVER~/Informix/g" < /usr/lib/perl5/site_perl/5.6.0/i586-linux/auto/DBI/Driver.xst > Informix.xsi
so i must delete the function data_sources in this Informix.xsi manualy and then it compiles.
I think it is a problem in the DBI module in /usr/lib/perl5/site_perl/5.6.0/i586-linux/auto/DBI/Driver.xst
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.3, archname=i586-linux
uname='linux ragsdale 2.4.3 #1 smp fri sep 13 11:17:17 utc 2002 i686 unknown '
config_args='-ds -e -Dprefix=/usr -Di_db -Di_dbm -Di_ndbm -Di_gdbm'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
Compiler:
cc='cc', optimize='-O2 -pipe', gccversion=2.95.3 20010315 (SuSE)
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Sep 19 2002 14:48:47
@INC:
/usr/lib/perl5/5.6.0/i586-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i586-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
Linux mnp-engine-lx 2.4.18-64GB-SMP #1 SMP Wed Dec 4 22:19:46 GMT 2002 i686 unknown
Modul: DBD-Informix-2003.03.0401
I hope this will help you find this bug and fix it.
sincerely yours Stefan