[CONC-57] libmariadb does not export net_buffer_length Created: 2013-10-11  Updated: 2013-10-14  Resolved: 2013-10-14

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Michiel Beijen Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

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



 Comments   
Comment by Georg Richter [ 2013-10-14 ]

Thanks for your report!

Issue fixed in rev. 101

Generated at Thu Feb 08 03:02:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.