perlquestion
Steve_BZ
<p>Hi Monks,
<p>I'm experiencing some problems with DBD::InterBase (the Firebird 2.1 driver). See below for the dump of it's output. Maybe it's related to the Version of (K)ubuntu that I'm using (12.04 LTS) as everything installed fine on previous versions. There seem to be two points of failure and I don't know if they're linked:
<h4>First failure</h4>
<c>InterBase/Firebird bin directory : [/usr/bin] /usr/lib/firebird/2.1/bin
InterBase/Firebird include directory : [/usr/include]
Cannot proceed. Aborting..
</c>
<p>One could imagine a little more in the way of error reporting.
<h4>Second failure</h4>
<c>/usr/lib/firebird/2.1/bin/gstat: 11: exec: /usr/lib/firebird/2.1/bin/gstat.real: not found
</c>
<p>I'm not sure if this was fatal or the cause of the latter warnings and errors.
<p>What do you think?
<p>Regards
<p>Steve.
<readmore>
<c>
cpan -i DBD::InterBase
Reading '/home/image/.cpan/Metadata'
Database was generated on Thu, 05 Jul 2012 08:15:03 GMT
Running install for module 'DBD::InterBase'
Running make for E/ED/EDPRATOMO/DBD-InterBase-0.48.tar.gz
Fetching with LWP:
http://cpan.kinghost.net/authors/id/E/ED/EDPRATOMO/DBD-InterBase-0.48.tar.gz
Fetching with LWP:
http://cpan.kinghost.net/authors/id/E/ED/EDPRATOMO/CHECKSUMS
Checksum for /home/image/.cpan/sources/authors/id/E/ED/EDPRATOMO/DBD-InterBase-0.48.tar.gz ok
CPAN.pm: Building E/ED/EDPRATOMO/DBD-InterBase-0.48.tar.gz
InterBase/Firebird bin directory : [/usr/bin] /usr/lib/firebird/2.1/bin
InterBase/Firebird include directory : [/usr/include]
Cannot proceed. Aborting..
Full path to your test database: /home/image/Documents/Endoscopia/DB/ENDOSCOPIA.FDB
/home/image/Documents/Endoscopia/DB/ENDOSCOPIA.FDB exists.
Trying to use an existing database..
Please enter a username to connect.
Username : SYSDBA
Password : <password>
/usr/lib/firebird/2.1/bin/gstat: 11: exec: /usr/lib/firebird/2.1/bin/gstat.real: not found
Dialect of /home/image/Documents/Endoscopia/DB/ENDOSCOPIA.FDB is UNKNOWN.
This test requires a database of dialect 3. You may specify a non-existent database to create a new one.
Proceed anyway or create a NEW test database (P/N)? [P]
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgds
Using DBI 1.616 (for perl 5.014002 on i686-linux-gnu-thread-multi-64int) installed in /usr/lib/perl5/auto/DBI/
Writing Makefile for DBD::InterBase
Writing MYMETA.yml and MYMETA.json
cp lib/DBD/InterBase/TypeInfo.pm blib/lib/DBD/InterBase/TypeInfo.pm
cp InterBase.pm blib/lib/DBD/InterBase.pm
cp lib/DBD/InterBase/GetInfo.pm blib/lib/DBD/InterBase/GetInfo.pm
/usr/bin/perl -p -e "s/~DRIVER~/InterBase/g" /usr/lib/perl5/auto/DBI/Driver.xst > InterBase.xsi
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -noprototypes -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap InterBase.xs > InterBase.xsc && mv InterBase.xsc InterBase.c
cc -c -I"/usr/include" -I"/usr/lib/perl5/auto/DBI" -Wall -fno-strict-aliasing -O2 -g -DVERSION=\"0.48\" -DXS_VERSION=\"0.48\" -fPIC "-I/usr/lib/perl/5.14/CORE" InterBase.c
InterBase.c: In function ‘XS_DBD__InterBase__db__do’:
InterBase.c:1461:7: warning: variable ‘attr’ set but not used [-Wunused-but-set-variable]
InterBase.c: In function ‘XS_DBD__InterBase__db_ib_register_callback’:
InterBase.c:2652:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
InterBase.c: In function ‘XS_DBD__InterBase__db_ib_cancel_callback’:
InterBase.c:2711:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
InterBase.c: In function ‘XS_DBD__InterBase__db_ib_wait_event’:
InterBase.c:2747:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
InterBase.c: In function ‘XS_DBD__InterBase__Event_DESTROY’:
InterBase.c:2806:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cc -c -I"/usr/include" -I"/usr/lib/perl5/auto/DBI" -Wall -fno-strict-aliasing -O2 -g -DVERSION=\"0.48\" -DXS_VERSION=\"0.48\" -fPIC "-I/usr/lib/perl/5.14/CORE" dbdimp.c
dbdimp.c: In function ‘create_cursor_name’:
dbdimp.c:60:5: warning: '0' flag ignored with precision and ‘%x’ gnu_printf format [-Wformat]
dbdimp.c:60:5: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘isc_stmt_handle’ [-Wformat]
dbdimp.c: In function ‘do_error’:
dbdimp.c:116:23: error: ‘na’ undeclared (first use in this function)
dbdimp.c:116:23: note: each undeclared identifier is reported only once for each function it appears in
dbdimp.c:116:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
dbdimp.c: In function ‘ib_db_FETCH_attrib’:
dbdimp.c:696:25: error: ‘sv_yes’ undeclared (first use in this function)
dbdimp.c:696:48: error: ‘sv_no’ undeclared (first use in this function)
dbdimp.c: In function ‘ib_st_fetch’:
dbdimp.c:1459:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘long int’ [-Wformat]
dbdimp.c:1474:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long int’ [-Wformat]
dbdimp.c:1406:31: warning: variable ‘fpsec’ set but not used [-Wunused-but-set-variable]
dbdimp.c:1549:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
dbdimp.c:1549:36: warning: passing argument 7 of ‘isc_open_blob2’ makes pointer from integer without a cast [enabled by default]
/usr/include/ibase.h:801:23: note: expected ‘const ISC_UCHAR *’ but argument is of type ‘unsigned char’
dbdimp.c: In function ‘ib_discon_all’:
dbdimp.c:1991:9: warning: value computed is not used [-Wunused-value]
dbdimp.c:1994:9: error: ‘perl_destruct_level’ undeclared (first use in this function)
dbdimp.c: In function ‘ib_blob_write’:
dbdimp.c:2042:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
dbdimp.c: In function ‘ib_fill_isqlda’:
dbdimp.c:2103:5: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘int’ [-Wformat]
dbdimp.c: In function ‘ib_commit_transaction’:
dbdimp.c:2789:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
dbdimp.c: In function ‘ib_db_FETCH_attrib’:
dbdimp.c:701:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [dbdimp.o] Error 1
EDPRATOMO/DBD-InterBase-0.48.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
</c>
</readmore>