Bug #5537 compile error for DBD::mysql
Submitted: 13 Sep 2004 5:49 Modified: 5 Oct 2004 15:18
Reporter: Lee HeeWon Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.4-binary OS:Linux (Linux version 2.4.20-31.9smp)
Assigned to: Matthew Lord CPU Architecture:Any

[13 Sep 2004 5:49] Lee HeeWon
Description:
Hi, here is some minor bug for compile DBD::mysql.

In online document of install perl DBD::mysql in mysql ( <= 4.1.2 )

just below 5 step, process done normally.
"
shell> cd DBI-VERSION
shell> perl Makefile.PL
shell> make
shell> make test
shell> make install
"

but if mysql version is over 4.1.3, in "make" step I got a error.

I thought the reason is "mysql_shutdown()"

"make" command create "mysql.xs" file.

but in mysql.xs (line:100) "result = mysql_shutdown(sock);" cause fault.

How to repeat:
just install mysql-4.1.4 binary and download DBD::mysql

shell> cd DBI-VERSION
shell> perl Makefile.PL
shell> make
.
<error!!>
.
shell> make test
shell> make install

Suggested fix:
in mysql.xs

mysql_shutdown(sock) => mysql_shutdown(sock,SHUTDOWN_DEFAULT)

and I want to request one suggestion.

If "Makefile.PL" takes basedir setting ( for mysql installed non-standard path)
It'll be very helpful.
[5 Oct 2004 15:18] Matthew Lord
Thank you for your bug report. This issue has already been fixed
in the latest released version of that product, which you can download at 
http://www.mysql.com/downloads/

Additional info:

Hi,

Thank you for your bug report!

This has been fixed in DBD::mysql version 2.9004 which you can download here:
http://search.cpan.org/dist/DBD-mysql/

Thank You