Yes I tried the new version of Perl. Unfortunately the result is the same.

Do you have the zip files of DBI and DBD supported for Perl 5.8.7 and MySQL 
4.1.13?

Tim

________________________________
From: Jonathan Leffler [mailto:jonathan.leff...@gmail.com]
Sent: Friday, May 20, 2011 5:11 AM
To: Pham, Tim (CCI-Orange County)
Cc: dbi-users@perl.org
Subject: Re: DBI and DBD module for perl 5.8.7 and mysql4.1.13


On Thu, May 19, 2011 at 14:41, <tim.p...@cox.com<mailto:tim.p...@cox.com>> 
wrote:
We have an old server that needs to install BDI and DBD module. The server is 
running with Perl 5.8.7 and MySQL 4.1.13

We have DBI-1.41 and DBD-mysql-2.9003. However, it was failed when I installed 
these modules.

These are the outputs for DBI and DBD:



The outputs show that DBI installed OK.

They also show DBD::MySQL failed because of


/usr/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap 
/usr/local/lib/perl5/5.8.7/ExtUtils/typemap  mysql.xs > mysql.xsc && mv 
mysql.xsc mysql.c

Warning: duplicate function definition 'do' detected in mysql.xs, line 192

Warning: duplicate function definition 'rows' detected in mysql.xs, line 290

cc -c  -I/usr/local/lib/perl5/site_perl/5.8.7/mach/auto/DBI 
-I/usr/local/include/mysql -O -pipe  
-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.7/BSDPAN" -DHAS_FPSETMASK 
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe  
  -DVERSION=\"2.9003\"  -DXS_VERSION=\"2.9003\" -DPIC -fPIC 
"-I/usr/local/lib/perl5/5.8.7/mach/CORE"   mysql.c

mysql.xs: In function `XS_DBD__mysql__dr__admin_internal':

mysql.xs:100: error: too few arguments to function `mysql_shutdown'

I don't know what the solution to that is, but there is at least an outside 
chance that you need to go to a version of DBD::MySQL that supports MySQL 4.x 
instead of 5.x.  At the least, you need to read the release notes with the 
version you have to see which versions of MySQL are supported.

I also tried the latest versions and still failed

Did you try a newer version of Perl?


--
Jonathan Leffler 
<jonathan.leff...@gmail.com<mailto:jonathan.leff...@gmail.com>>  #include 
<disclaimer.h>
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be 
amused."

Reply via email to