Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
debian 7.1 i386
Description
I try to use perl DBD::mysql with the libmariadb C driver. I use the trunk of the C driver (the 1.0 release on the website misses some error codes which are added in r30).
When I compile DBD::mysql, all is well but when I try to run tests I get this error:
# Failed test 'use DBD::mysql;'
|
# at t/00base.t line 21.
|
# Tried to use 'DBD::mysql'.
|
# Error: Can't load '/home/michiel/DBDmysql/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: /home/michiel/DBDmysql/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: net_buffer_length at /home/michiel/.plenv/versions/5.19.4/lib/perl5/5.19.4/i686-linux/DynaLoader.pm line 190.
|
# at (eval 8) line 2.
|
# Compilation failed in require at (eval 8) line 2.
|
libmysqlclient does export this symbol:
nm --dynamic /usr/lib/libmysqlclient.so|grep net_buffer_length
|
00000000004ee650 D net_buffer_length
|
How to reproduce:
(install Perl DBI - on debian apt-get install libdbi-perl)
|
(compile & install libmaradb from launchpad trunk)
|
git clone https://github.com/perl5-dbi/DBD-mysql.git
|
cd DBD-mysql
|
perl Makefile.PL --testuser=myuser --testpassword=mypass --mysql_config=/usr/local/bin/mariadb_config
|
make
|
make test
|