DBD::Mysql build errors

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

DBD::Mysql build errors

Postby Wittyname27 » 16. February 2006 00:40

Greetings,

I am attempting to compile and install (Via CPAN) the DBD::Mysql module. I am not having any luck and am hopeful that a kind soul could offer some advice.

When I attempt to build the module via CPAN I get the following errors (Truncated)

CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-3.0002.tar.gz

I will use the following settings for compiling and testing:

cflags (mysql_config) = -I/Applications/xampp/xamppfiles/include/mysql -I/Applications/xampp/xamppfiles/include -L/Applications/xampp/xamppfiles/lib
embedded (mysql_config) =
libs (mysql_config) = -L/Applications/xampp/xamppfiles/lib -I/Applications/xampp/xamppfiles/include -L/Applications/xampp/xamppfiles/lib/mysql -lmysqlclient -lz -lm -L/Applications/xampp/xamppfiles/lib -lssl -lcrypto
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 1
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (default ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Unrecognized argument in LIBS ignored: '-I/Applications/xampp/xamppfiles/include'
Note (probably harmless): No library found for -lmysqlclient
Using DBI 1.50 (for perl 5.008007 on darwin-2level) installed in /Applications/xampp/xamppfiles/lib/perl5/site_perl/5.8.7/darwin-2level/auto/DBI/
Writing Makefile for DBD::mysql
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/Applications/xampp/xamppfiles/lib/perl5/site_perl/5.8.7/darwin-2level/auto/DBI/ -I/Applications/xampp/xamppfiles/include/mysql -I/Applications/xampp/xamppfiles/include -L/Applications/xampp/xamppfiles/lib -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -Os -DVERSION=\"3.0002\" -DXS_VERSION=\"3.0002\" "-I/Applications/xampp/xamppfiles/lib/perl5/5.8.7/darwin-2level/CORE" dbdimp.c
In file included from dbdimp.c:20:
dbdimp.h:21:49: mysql.h: No such file or directory
dbdimp.h:22:45: mysqld_error.h: No such file or directory
dbdimp.h:23:49: errmsg.h: No such file or directory
In file included from dbdimp.c:20:
dbdimp.h:124: error: parse error before "MYSQL"
dbdimp.h:124: warning: no semicolon at end of struct or union
dbdimp.h:142: error: parse error before '}' token
dbdimp.h:209: error: parse error before "MYSQL_RES"
dbdimp.h:209: warning: no semicolon at end of struct or union
dbdimp.h:212: error: parse error before "row_num"
dbdimp.h:212: warning: data definition has no type or storage class
dbdimp.h:217: error: parse error before "insertid"
dbdimp.h:217: warning: data definition has no type or storage class
dbdimp.h:223: error: parse error before '}' token
In file included from dbdimp.c:20:
dbdimp.h:263: error: parse error before '*' token
dbdimp.h:266: error: parse error before "mysql_st_internal_execute"
dbdimp.h:266: error: parse error before "MYSQL_RES"
dbdimp.h:267: warning: data definition has no type or storage class
dbdimp.h:287: error: parse error before '*' token
dbdimp.h:287: error: parse error before "MYSQL"
dbdimp.h:288: warning: data definition has no type or storage class
dbdimp.c:398: error: parse error before '*' token
dbdimp.c: In function `parse_params':
dbdimp.c:410: error: `slen_ptr' undeclared (first use in this function)
dbdimp.c:410: error: (Each undeclared identifier is reported only once
dbdimp.c:410: error: for each function it appears in.)
dbdimp.c:419: error: `statement' undeclared (first use in this function)
dbdimp.c:419: error: `num_params' undeclared (first use in this function)
dbdimp.c:599: error: `sock' undeclared (first use in this function)
dbdimp.c: At top level:
dbdimp.c:655: error: `FIELD_TYPE_VAR_STRING' undeclared here (not in a function)


The errors continue on and the compile errors out. Has anyone encountered this issue? I've searched through the previous posts on this BB and saw others with similar errors. I"ve tried the suggested fixes and none of them have been fruitful.

Any help would be greatly appreciated. Thanks in advance.
Wittyname27
 
Posts: 1
Joined: 16. February 2006 00:30

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 74 guests