Got error when build DBD:mysql

Got error when build DBD:mysql

am 21.06.2007 22:55:09 von Brian Xia

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/sola ris/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/sola ris/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/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org