Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 109982
Status: rejected
Priority: 0/
Queue: DBD-mysql

People
Owner: MICHIELB [...] cpan.org
Requestors: perl [...] pied.nu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 4.033
Fixed in: 4.023



Subject: undefined symbol: mysql_options4
# rpm -q Percona-Server-devel-56 Percona-Server-devel-56-5.6.14-rel62.0.485.rhel5.sphinx # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.t ........................... 1/6 Bailout called. Further testing stopped: Unable to load DBD::mysql # Failed test 'use DBD::mysql;' # at t/00base.t line 15. # Tried to use 'DBD::mysql'. # Error: Can't load '/root/.cpan5.8.8/build/DBD-mysql-4.033-DIi39q/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: /root/.cpan5.8.8/build/DBD-mysql-4.033-DIi39q/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: mysql_options4 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230. # at t/00base.t line 15. # Compilation failed in require at t/00base.t line 15. # BEGIN failed--compilation aborted at t/00base.t line 15. FAILED--Further testing stopped: Unable to load DBD::mysql make: *** [test_dynamic] Error 255
Subject: undefined symbol: mysql_options4 using percona56 on RHEL 5
Hi there, Wow! You're running an old version of Perl and an old version of Linux! I tried to replicate your issue. In the yum repositories for RHEL 5 I found THIS version of the package with the libraries; which is slightly newer: Percona-Server-devel-56-5.6.24-rel72.2.el5.x86_64 This leads to the following settings: cflags (mysql_config) = -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -gdwarf-2 -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 embedded (guessed ) = ldflags (mysql_config) = libs (mysql_config) = -L/usr/lib64 -lperconaserverclient -lpthread -lm -lrt -lssl -lcrypto -ldl mysql_config (guessed ) = mysql_config I can compile perfectly fine! There's just one test that fails and that's: t/89async-method-check....1..223 ok 1 - Testing method 'can' on DBD::mysql::db during asynchronous operation ok 2 ok 3 - Testing method 'err' on DBD::mysql::db during asynchronous operation Can't locate object method "private_attribute_info" via package "DBI::db" at t/89async-method-check.t line 104. Issuing rollback() for database handle being DESTROY'd without explicit disconnect(). # Looks like you planned 223 tests but ran 10. # Looks like your test exited with 9 just after 10. ok 4 ok 5 - Testing method 'errstr' on DBD::mysql::db during asynchronous operation ok 6 ok 7 - Testing method 'parse_trace_flag' on DBD::mysql::db during asynchronous operation ok 8 ok 9 - Testing method 'parse_trace_flags' on DBD::mysql::db during asynchronous operation ok 10 dubious Test returned status 9 (wstat 2304, 0x900) DIED. FAILED tests 11-223 Failed 213/223 tests, 4.48% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/89async-method-check.t 9 2304 223 426 191.03% 11-223 Failed 1/1 test scripts, 0.00% okay. 213/223 subtests failed, 4.48% okay. but that would be because of the very old DBI in RHEL5 which does not come with "private_attribute_info" yet. I'll update the required DBI version; it's not too strange to require a DBI from 2009 in today's DBD::mysql, right? With 1.609 or newer, all tests pass. So I'll close this bug report because it WORKSFORME. If you have steps to reproduce with the latest Percona Server from the repos, please let me know! -- Michiel On Mon 30 Nov 2015 16:03:56, GWYN wrote: Show quoted text
> # rpm -q Percona-Server-devel-56 > Percona-Server-devel-56-5.6.14-rel62.0.485.rhel5.sphinx > > # make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00base.t ........................... 1/6 Bailout called. Further > testing stopped: Unable to load DBD::mysql > > # Failed test 'use DBD::mysql;' > # at t/00base.t line 15. > # Tried to use 'DBD::mysql'. > # Error: Can't load '/root/.cpan5.8.8/build/DBD-mysql-4.033- > DIi39q/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: > /root/.cpan5.8.8/build/DBD-mysql-4.033- > DIi39q/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: > mysql_options4 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread- > multi/DynaLoader.pm line 230. > # at t/00base.t line 15. > # Compilation failed in require at t/00base.t line 15. > # BEGIN failed--compilation aborted at t/00base.t line 15. > FAILED--Further testing stopped: Unable to load DBD::mysql > make: *** [test_dynamic] Error 255