Bug 703185 - undefined symbol: is_prefix
Summary: undefined symbol: is_prefix
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-DBD-MySQL
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-09 15:13 UTC by Remi Collet
Modified: 2011-05-19 04:46 UTC (History)
3 users (show)

Fixed In Version: perl-DBD-MySQL-4.018-7.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 04:46:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 68112 0 None None None Never

Description Remi Collet 2011-05-09 15:13:03 UTC
Version-Release number of selected component (if applicable):
mysql-5.5.10-2.fc15.x86_64
perl-DBD-MySQL-4.018-5.fc15.x86_64


Steps to Reproduce:
1. mysqlhotcopy -p=<secret> test test2

From DBD_MySQL source code

        case SQL_IDENTIFIER_QUOTE_CHAR:
            /*XXX What about a DB started in ANSI mode? */
            /* Swiped from MyODBC's get_info.c */
            using_322=is_prefix(mysql_get_server_info(imp_dbh->pmysql),"3.22");
            retsv = newSVpv(!using_322 ? "`" : " ", 1);
            break;

The is_prefix function, defined in strings/is_prefix.c is not exported from latest MySQL build.

Comment 1 Remi Collet 2011-05-09 15:14:52 UTC
Adding Tom Lane in CC: because this "could" be fixed in mysql package.

But, probably a better solution should be to not used this function which is not in the offical MySQL client API.

Comment 2 Tom Lane 2011-05-09 15:33:55 UTC
Yes, this is exactly the sort of gratuitous dependency on not-officially-exported internals of libmysqlclient that I was trying to get rid of by installing a symbol filter.  Please change that code to use strncmp() or some such instead.

(Or you could consider dropping support for mysql 3.x altogether; surely that hasn't been seen in the wild for some time ...)

Comment 3 Fedora Update System 2011-05-10 11:27:23 UTC
perl-DBD-MySQL-4.018-6.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/perl-DBD-MySQL-4.018-6.fc15

Comment 4 Marcela Mašláňová 2011-05-10 11:28:40 UTC
Remi, could you please test this update and add karma? If it's working I'll send patch upstream.

Comment 5 Fedora Update System 2011-05-11 05:50:41 UTC
Package perl-DBD-MySQL-4.018-7.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-DBD-MySQL-4.018-7.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/perl-DBD-MySQL-4.018-7.fc15
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-05-19 04:45:58 UTC
perl-DBD-MySQL-4.018-7.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.