Got error when build DBD:mysql

Brian Xia <[email protected]> Thu, 21 Jun 2007 15:55:09 -0500
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Hi,

I am installing a very old version of DBD-mysql. The Perl version is 
5.005_03 built for sun4-solaris.  And it is hacked and rebuild from 
source so that the embedded Perl application was made.

I downloaded the oldest version I can find -- DBD-mysql-2.1012 and

followed the steps,

perl Makefile.PL
make

I got the following error message.
cc -c 
-I/project/software2/Mace/EPG/BrianXia/release/mace/lib/solaris/perl5/site_perl/auto/DBI 
-I/usr/local/include/mysql -DMULTIPLICITY -O    -DVERSION=\"2.1012\" 
-DXS_VERSION=\"2.1012\" -KPIC 
-I/project/software2/Mace/EPG/BrianXia/release/mace/lib/solaris/perl5/CORE  
mysql.c
"mysql.xs", line 19: warning: syntax error:  empty declaration
"mysql.xs", line 54: warning: argument #3 is incompatible with prototype:
        prototype: pointer to char : "./dbdimp.h", line 200
        argument : pointer to const char
"mysql.xs", line 93: warning: argument #3 is incompatible with prototype:
        prototype: pointer to char : "./dbdimp.h", line 200
        argument : pointer to const char
"mysql.xs", line 99: prototype mismatch: 1 arg passed, 2 expected
"mysql.xs", line 137: warning: argument #3 is incompatible with prototype:
        prototype: pointer to char : "./dbdimp.h", line 200
        argument : pointer to const char
"mysql.xs", line 180: warning: argument #3 is incompatible with prototype:
        prototype: pointer to char : "./dbdimp.h", line 200
        argument : pointer to const char
cc: acomp failed for mysql.c
make: *** [mysql.o] Error 2

Anyone know what caused this and what would be the way to solve it?

Brian

-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]