DBD::mysql maestros:

Maria DB provides a LGPL licensed client library that will connect to MySQL. 
I've gotten this library compiling to my needs. My hope was to get DBD::mysql 
to compile against it. I seem to be able to do so by running:

perl Makefile.PL --mysql_config=/usr/local/cpanel/3rdparty/bin/mariadb_config 

The client library: https://downloads.mariadb.org/client-native/

However, when I run make, I get this:

/usr/bin/gcc -c  
-I/usr/local/cpanel/3rdparty/perl/514/lib/perl5/cpanel_lib/i386-linux-64int/auto/DBI
 -I/usr/local/cpanel/3rdparty/mariadbclient/include 
-DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -I/usr/local/cpanel/3rdparty/perl/514/include 
-L/usr/local/cpanel/3rdparty/perl/514/lib -I/usr/local/cpanel/3rdparty/include 
-L/usr/local/cpanel/3rdparty/lib -DAPPLLIB_EXP="/usr/local/cpanel" 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os   -DVERSION=\"4.024\" 
-DXS_VERSION=\"4.024\" -fPIC 
"-I/usr/local/cpanel/3rdparty/perl/514/lib/perl5/5.14.3/i386-linux-64int/CORE"  
 dbdimp.c

dbdimp.c: In function ‘mysql_db_FETCH_attrib’:
dbdimp.c:2571: warning: cast from pointer to integer of different size
dbdimp.c: In function ‘mysql_st_prepare’:
dbdimp.c:2798: error: ‘ER_UNSUPPORTED_PS’ undeclared (first use in this 
function)
dbdimp.c:2798: error: (Each undeclared identifier is reported only once
dbdimp.c:2798: error: for each function it appears in.)
dbdimp.c: In function ‘mysql_st_FETCH_attrib’:
dbdimp.c:4514: warning: cast from pointer to integer of different size
make: *** [dbdimp.o] Error 1

I'm guessing these errors are because the client library is: "derived from 
PHP's mysqlnd extension (http://www.php.net and the original LGPL MySQL client 
library for MySqL 3.23. The rest of the code is written by developers at Monty 
Program Ab."

My suspicion is that DBD::mysql may be incompatible with some of the older code 
this library comes with. Before I dig further, I thought I'd inquire on this 
list if anyone has attempted to get this working?

Should I try an older DBD, or should I try to compile some optional #ifdefs to 
fix these issues in the existing DBD::mysql?

Thanks,
Todd



Reply via email to