[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help for test error on pbuilder but ok on dpkg-buildpackage (DBI/SQLite)






De: "Olivier Sallou" <olivier.sallou@irisa.fr>
À: debian-perl@lists.debian.org
Envoyé: Lundi 7 Novembre 2011 20:28:18
Objet: Re: help for test error on pbuilder but ok on dpkg-buildpackage (DBI/SQLite)

Looking further at tests with a sample script extracted from tests, tests fail with PERL_DL_NONLAZY=1.
If I test with PERL_D_NONLAZY=0, my tests pass.....



Olivier
I tried to create a sample script to test, though I do not get same errors on output, I see that DBI->connect fails when NONLAZY is set to 1. 

Script:
#!/bin/bash

sqlite3 foo.db '';

# Connect and run bad SQL

PERL_DL_NONLAZY=0 perl -MDBI -le 'DBI->connect("dbi:SQLite:name=foo.db", "", "
")->selectall_arrayref("#");'

PERL_DL_NONLAZY=1 perl -MDBI -le 'DBI->connect("dbi:SQLite:name=foo.db", "", "
")->selectall_arrayref("#");'

Logs:

DBD::SQLite: selectall_arrayref failed: unrecognized token: "#" at -e line 1.   (error is OK)

install_driver(SQLite) failed: Can't load '/usr/lib/perl5/auto/DBD/SQLite/SQLite.so' for module DBD::SQLite: /usr/lib/perl5/auto/DBD/SQLite/SQLite.so: undefined symbol: sqlite3_column_table_name at /usr/lib/perl/5.12/DynaLoader.pm line 192.
 at (eval 3) line 3
Compilation failed in require at (eval 3) line 3.
Perhaps a required shared library or dll isn't installed where expected
 at -e line 1

Reply to: