Error - Perl execution failed Modification of non-creatable array value attempted, subscript -1

Been using (and enjoying) Virtualmin for years -- thank you.

But suddenly, attempting to create a virtual server yields :

Error - Perl execution failed Modification of non-creatable array value attempted, subscript -1 at /usr/libexec/webmin-1.740/mysql/mysql-lib.pl line 460, line 2.

Doesn't seem to make much sense, looking at the code : 1 # mysql-lib.pl 2 # Common MySQL functions 3 4 BEGIN { push(@INC, ".."); }; 5 use WebminCore; 6 &init_config();

I tried creating a server with fewer and fewer options, especially eliminating anything related to MySQL, but still get this error. Even with everything unchecked under "Enabled Features", everything else left to default. Any suggestions?

Thanks much for your time and consideration.

Status: 
Active

Comments

Did you recently upgrade MySQL or any Virtualmin-related packages on your system?

Wow, thanks for the quick reply, Jamie. Nope, no recent upgrades. In fact the server is near EOL with CentOS5.

I take that back -- tzdata was upgraded today from the official repository, but I can't imagine that would have an impact?

Yeah in theory tzdata shouldn't matter.

Just as a test -- are you able to create a domain if the MySQL feature is not enabled?

I know that's not a solution, that's just a troubleshooting step to verify that we're just seeing an issue with just MySQL here.

No, same error every time regardless of MySQL. Tried all permutations of "Advanced options" (default and specified) and "Enabled Features" (including no Features). Everything returns the identical error. Weird.

Try going to Webmin -> Servers -> MySQL Database, and see if it reports any error about a missing DBI or DBD perl module on that page?

Thanks. I poked around at several of the functions there and all work properly. No errors or warnings.

So I successfully manually created the website in Apache. Then went to Virtualmin > Add Servers > Import Virtual Server. It looked like it was going properly :

Import Virtual Server   

Working out what will be imported ..

Will create new administration user rmfsf for domain.

Will create new administration group rmfsf for mailbox users.

Server is not accepting email for domain raylormutualfund.com.

Can import Apache virtual host raylormutualfund.com with documents directory /home/rmf/public_html.

No Apache SSL virtual host matching raylormutualfund.com was found.

No MySQL database named rmsfs was found.

Logrotate is not set up for log file /home/rmf/logs/access_log.

Plugin Mailman is not set up for domain.

No Webmin user for this domain.

No unique virtual IP address for this domain.

Are you sure you want to carry out the import actions listed above in bold?

But when I click to continue, same error but with a little more info :

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.740 Date: Tue, 21 Apr 2015 14:23:16 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close Error - Perl execution failed

Modification of non-creatable array value attempted, subscript -1 at /usr/libexec/webmin-1.740/mysql/mysql-lib.pl line 460, line 2.

Whoops, I had misspelled a couple of fields in the import. But with everything corrected I'm still getting the same error :

Working out what will be imported ..

Can import existing administration user rmf for domain.

Can import existing administration group rmf for mailbox users.

Can import 1 mailbox users who have the primary group rmf.

Server is not accepting email for domain raylormutualfund.com.

Can import Apache virtual host raylormutualfund.com with documents directory /home/rmf/public_html.

No Apache SSL virtual host matching raylormutualfund.com was found.

Can import MySQL database rmf.

Logrotate is not set up for log file /home/rmf/logs/access_log.

Plugin Mailman is not set up for domain.

No Webmin user for this domain.

No unique virtual IP address for this domain.

Are you sure you want to carry out the import actions listed above in bold?

HTTP/1.0 500 Perl execution failed Server: MiniServ/1.740 Date: Tue, 21 Apr 2015 15:14:03 GMT Content-type: text/html; Charset=iso-8859-1 Connection: close Error - Perl execution failed

Modification of non-creatable array value attempted, subscript -1 at /usr/libexec/webmin-1.740/mysql/mysql-lib.pl line 460, line 2.

Also, make sure that at Webmin -> Servers -> MySQL Database -> Module Config that that "Use DBI to connect if available?" option is set to "Yes".

Thanks, Jamie. Yeah, that's set properly.

I'm just trying to figure out what the heck has changed to suddenly caused this error. I've been through the server maintenance logs, and there's nothing at all that provides a clue that we might have done something to inadvertently cause the problem. Might Webmin / Virtualmin logs help?

On the other hand, this box is (over)due for a CentOS & PHP & MySQL upgrade, so it's probably not worth much of your time to continue to investigate. We're dealing with an end-of-lifer here, so we can limp along until we get around to the next (re)incarnation.

The only thing I can think of is if Webmin cannot use the Perl DBD modules to connect to MySQL all of a sudden. Can you take another look at Webmin ->Servers ->MySQL Database, for a message down the bottom of the page like "Warning: The Perl module DBD is not installed on your system"

A-ha! I totally overlooked that warning, I just tested the MySQL Server utilities in Webmin and all work just fine. It gets weirder, because I try to install via yum and get :

Package perl-DBD-MySQL-3.0007-2.el5.x86_64 already installed and latest version

I try to install manually via CPAN and get a load of errors and so the make fails. I have no idea what happened to suddenly screw this up, but clearly it's a problem on the server not in Webmin, so I won't continue to bother you about it.

Thanks for your time and guidance to find the problem, Jamie. Much appreciated.

Perhaps the module is installed, but doesn't work properly?

You can test this by SSHing in as root and running :

perl -MCPAN -e 'use DBD::mysql'

and see what it outputs.

perl -MCPAN -e 'use DBD::mysql' yields : Can't locate DBD/mysql.pm in @INC

And :

locate mysql.pm

/root/.cpan/Bundle/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-Hy68wy/blib/lib/Bundle/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-Hy68wy/blib/lib/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-Hy68wy/lib/Bundle/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-Hy68wy/lib/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-cCPrwY/blib/lib/Bundle/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-cCPrwY/blib/lib/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-cCPrwY/lib/Bundle/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-cCPrwY/lib/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-znenag/blib/lib/Bundle/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-znenag/blib/lib/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-znenag/lib/Bundle/DBD/mysql.pm /root/.cpan/build/DBD-mysql-4.031-znenag/lib/DBD/mysql.pm /usr/lib64/perl5-backup/vendor_perl/5.8.8/x86_64-linux-thread-multi/Bundle/DBD/mysql.pm /usr/lib64/perl5-backup/vendor_perl/5.8.8/x86_64-linux-thread-multi/DBD/mysql.pm

Sorry, line breaks were lost. Trying to other input format option :

# locate mysql.pm
/root/.cpan/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-Hy68wy/blib/lib/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-Hy68wy/blib/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-Hy68wy/lib/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-Hy68wy/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-cCPrwY/blib/lib/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-cCPrwY/blib/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-cCPrwY/lib/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-cCPrwY/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-znenag/blib/lib/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-znenag/blib/lib/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-znenag/lib/Bundle/DBD/mysql.pm
/root/.cpan/build/DBD-mysql-4.031-znenag/lib/DBD/mysql.pm
/usr/lib64/perl5-backup/vendor_perl/5.8.8/x86_64-linux-thread-multi/Bundle/DBD/mysql.pm
/usr/lib64/perl5-backup/vendor_perl/5.8.8/x86_64-linux-thread-multi/DBD/mysql.pm

Try installing the missing module with :

perl -MCPAN -e 'install DBD::mysql'

Yeah, that returns all kinds of warnings and errors, though perms are properly set for 'username_redacted' below. I'll just table it until we get around to upgrading the server O/S.


# perl -MCPAN -e 'install DBD::mysql'
CPAN: Storable loaded ok (v2.15)
Reading '/root/.cpan/Metadata'
Database was generated on Sat, 25 Apr 2015 22:29:02 GMT
Running install for module 'DBD::mysql'
CPAN: Digest::SHA loaded ok (v5.93)
CPAN: Compress::Zlib loaded ok (v2.066)
Checksum for /root/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.031.tar.gz ok
CPAN: File::Temp loaded ok (v0.2304)
CPAN: YAML loaded ok (v1.13)
CPAN: CPAN::Meta::Requirements loaded ok (v2.127)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.142690)
CPAN: Module::CoreList loaded ok (v5.20141020)
Configuring C/CA/CAPTTOFU/DBD-mysql-4.031.tar.gz with Makefile.PL

PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'username_redacted' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'username_redacted'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

I will use the following settings for compiling and testing:

cflags (mysql_config) = -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv
embedded (guessed ) =
ldflags (mysql_config) = -rdynamic
libs (mysql_config) = -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 1
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testport (default ) =
testsocket (default ) =
testuser (guessed ) = username_redacted

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

Checking if your kit is complete...
Looks good
Using DBI 1.632 (for perl 5.008008 on x86_64-linux-thread-multi) installed in /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI/
Generating a Unix-style Makefile
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
CAPTTOFU/DBD-mysql-4.031.tar.gz
/usr/bin/perl Makefile.PL -- OK
Running make for C/CA/CAPTTOFU/DBD-mysql-4.031.tar.gz
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp README.pod blib/lib/DBD/README.pod
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
Running Mkbootstrap for DBD::mysql ()
chmod 644 "mysql.bs"
gcc -c -I/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"4.031\" -DXS_VERSION=\"4.031\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" dbdimp.c
In file included from dbdimp.c:20:
dbdimp.h:21:49: error: mysql.h: No such file or directory
dbdimp.h:22:45: error: mysqld_error.h: No such file or directory
dbdimp.h:24:49: error: errmsg.h: No such file or directory
In file included from dbdimp.c:20:
dbdimp.h:172: error: expected specifier-qualifier-list before ‘MYSQL’
dbdimp.h:271: error: expected specifier-qualifier-list before ‘MYSQL_RES’
In file included from dbdimp.c:20:
dbdimp.h:332: error: expected ‘)’ before ‘*’ token
dbdimp.h:335: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_st_internal_execute’
dbdimp.h:371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dbdimp.h:377: error: expected declaration specifiers or ‘...’ before ‘MYSQL_RES’
dbdimp.c: In function ‘alloc_param’:
dbdimp.c:227: warning: comparison is always false due to limited range of data type
dbdimp.c: At top level:
dbdimp.c:523: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
dbdimp.c: In function ‘parse_params’:
dbdimp.c:771: warning: implicit declaration of function ‘mysql_real_escape_string’
dbdimp.c:771: error: ‘sock’ undeclared (first use in this function)
dbdimp.c:771: error: (Each undeclared identifier is reported only once
dbdimp.c:771: error: for each function it appears in.)
dbdimp.c: At top level:
dbdimp.c:826: error: ‘FIELD_TYPE_VAR_STRING’ undeclared here (not in a function)
dbdimp.c:836: error: ‘FIELD_TYPE_DECIMAL’ undeclared here (not in a function)
dbdimp.c:846: error: ‘FIELD_TYPE_TINY’ undeclared here (not in a function)
dbdimp.c:856: error: ‘FIELD_TYPE_SHORT’ undeclared here (not in a function)
dbdimp.c:866: error: ‘FIELD_TYPE_LONG’ undeclared here (not in a function)
dbdimp.c:876: error: ‘FIELD_TYPE_FLOAT’ undeclared here (not in a function)
dbdimp.c:886: error: ‘FIELD_TYPE_DOUBLE’ undeclared here (not in a function)
dbdimp.c:909: error: ‘FIELD_TYPE_TIMESTAMP’ undeclared here (not in a function)
dbdimp.c:919: error: ‘FIELD_TYPE_LONGLONG’ undeclared here (not in a function)
dbdimp.c:929: error: ‘FIELD_TYPE_INT24’ undeclared here (not in a function)
dbdimp.c:939: error: ‘FIELD_TYPE_DATE’ undeclared here (not in a function)
dbdimp.c:949: error: ‘FIELD_TYPE_TIME’ undeclared here (not in a function)
dbdimp.c:959: error: ‘FIELD_TYPE_DATETIME’ undeclared here (not in a function)
dbdimp.c:969: error: ‘FIELD_TYPE_YEAR’ undeclared here (not in a function)
dbdimp.c:979: error: ‘FIELD_TYPE_NEWDATE’ undeclared here (not in a function)
dbdimp.c:989: error: ‘FIELD_TYPE_ENUM’ undeclared here (not in a function)
dbdimp.c:999: error: ‘FIELD_TYPE_SET’ undeclared here (not in a function)
dbdimp.c:1009: error: ‘FIELD_TYPE_BLOB’ undeclared here (not in a function)
dbdimp.c:1019: error: ‘FIELD_TYPE_TINY_BLOB’ undeclared here (not in a function)
dbdimp.c:1029: error: ‘FIELD_TYPE_MEDIUM_BLOB’ undeclared here (not in a function)
dbdimp.c:1039: error: ‘FIELD_TYPE_LONG_BLOB’ undeclared here (not in a function)
dbdimp.c:1049: error: ‘FIELD_TYPE_STRING’ undeclared here (not in a function)
dbdimp.c: In function ‘mysql_dr_error’:
dbdimp.c:1439: warning: unused variable ‘errstate’
dbdimp.c: At top level:
dbdimp.c:1519: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dbdimp.c: In function ‘my_login’:
dbdimp.c:2061: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2063: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2063: error: ‘MYSQL’ undeclared (first use in this function)
dbdimp.c:2063: warning: comparison between pointer and integer
dbdimp.c:2063: error: invalid operands to binary /
dbdimp.c:2063: warning: comparison between pointer and integer
dbdimp.c:2063: error: expected expression before ‘)’ token
dbdimp.c:2063: error: invalid operands to binary *
dbdimp.c:2063: error: invalid operands to binary *
dbdimp.c:2063: error: invalid operands to binary *
dbdimp.c:2063: error: invalid operands to binary *
dbdimp.c:2063: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2063: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2063: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2063: error: invalid operands to binary *
dbdimp.c:2063: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2063: warning: passing argument 3 of ‘__builtin___memset_chk’ makes integer from pointer without a cast
dbdimp.c:2063: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2063: error: invalid operands to binary *
dbdimp.c:2063: warning: passing argument 3 of ‘__memset_ichk’ makes integer from pointer without a cast
dbdimp.c:2063: warning: left-hand operand of comma expression has no effect
dbdimp.c:2063: warning: value computed is not used
dbdimp.c:2065: warning: implicit declaration of function ‘mysql_dr_connect’
dbdimp.c:2065: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2069: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c: In function ‘mysql_db_login’:
dbdimp.c:2108: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:2108: error: request for member ‘auto_reconnects_ok’ in something not a structure or union
dbdimp.c:2108: warning: statement with no effect
dbdimp.c:2109: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:2109: error: request for member ‘auto_reconnects_failed’ in something not a structure or union
dbdimp.c:2109: warning: statement with no effect
dbdimp.c:2110: error: ‘imp_dbh_t’ has no member named ‘bind_type_guessing’
dbdimp.c:2110: warning: statement with no effect
dbdimp.c:2111: error: ‘imp_dbh_t’ has no member named ‘bind_comment_placeholders’
dbdimp.c:2111: warning: statement with no effect
dbdimp.c:2112: error: ‘imp_dbh_t’ has no member named ‘has_transactions’
dbdimp.c:2112: warning: statement with no effect
dbdimp.c:2114: error: ‘imp_dbh_t’ has no member named ‘auto_reconnect’
dbdimp.c:2114: warning: statement with no effect
dbdimp.c:2123: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2124: warning: implicit declaration of function ‘mysql_errno’
dbdimp.c:2124: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2125: warning: implicit declaration of function ‘mysql_error’
dbdimp.c:2125: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2125: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c: In function ‘mysql_db_commit’:
dbdimp.c:2162: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:2164: error: ‘imp_dbh_t’ has no member named ‘has_transactions’
dbdimp.c:2167: warning: implicit declaration of function ‘mysql_real_query’
dbdimp.c:2167: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2172: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2172: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2173: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c: In function ‘mysql_db_rollback’:
dbdimp.c:2192: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:2194: error: ‘imp_dbh_t’ has no member named ‘has_transactions’
dbdimp.c:2197: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2202: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2203: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2203: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c: In function ‘mysql_db_disconnect’:
dbdimp.c:2241: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2242: warning: implicit declaration of function ‘mysql_close’
dbdimp.c:2242: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c: In function ‘dbd_discon_all’:
dbdimp.c:2293: warning: implicit declaration of function ‘mysql_server_end’
dbdimp.c:2269: warning: unused variable ‘imp_xxh’
dbdimp.c: In function ‘mysql_db_destroy’:
dbdimp.c:2330: error: ‘imp_dbh_t’ has no member named ‘has_transactions’
dbdimp.c:2334: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2342: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c: In function ‘mysql_db_STORE_attrib’:
dbdimp.c:2381: error: ‘imp_dbh_t’ has no member named ‘has_transactions’
dbdimp.c:2389: error: ‘imp_dbh_t’ has no member named ‘no_autocommit_cmd’
dbdimp.c:2395: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2426: error: ‘imp_dbh_t’ has no member named ‘use_mysql_use_result’
dbdimp.c:2426: warning: statement with no effect
dbdimp.c:2428: error: ‘imp_dbh_t’ has no member named ‘auto_reconnect’
dbdimp.c:2428: warning: statement with no effect
dbdimp.c:2430: error: ‘imp_dbh_t’ has no member named ‘use_server_side_prepare’
dbdimp.c:2430: warning: statement with no effect
dbdimp.c:2432: error: ‘imp_dbh_t’ has no member named ‘no_autocommit_cmd’
dbdimp.c:2432: warning: statement with no effect
dbdimp.c:2434: error: ‘imp_dbh_t’ has no member named ‘bind_type_guessing’
dbdimp.c:2434: warning: statement with no effect
dbdimp.c:2436: error: ‘imp_dbh_t’ has no member named ‘bind_type_guessing’
dbdimp.c:2436: warning: statement with no effect
dbdimp.c: At top level:
dbdimp.c:2496: error: expected declaration specifiers or ‘...’ before ‘my_ulonglong’
dbdimp.c: In function ‘my_ulonglong2str’:
dbdimp.c:2501: error: ‘val’ undeclared (first use in this function)
dbdimp.c:2507: error: invalid operands to binary %
dbdimp.c:2507: warning: assignment makes integer from pointer without a cast
dbdimp.c:2508: error: invalid operands to binary /
dbdimp.c:2508: warning: statement with no effect
dbdimp.c: In function ‘mysql_db_FETCH_attrib’:
dbdimp.c:2526: error: ‘imp_dbh_t’ has no member named ‘has_transactions’
dbdimp.c:2543: error: ‘imp_dbh_t’ has no member named ‘auto_reconnect’
dbdimp.c:2543: warning: passing argument 2 of ‘Perl_newSViv’ makes integer from pointer without a cast
dbdimp.c:2549: error: ‘imp_dbh_t’ has no member named ‘bind_type_guessing’
dbdimp.c:2549: warning: passing argument 2 of ‘Perl_newSViv’ makes integer from pointer without a cast
dbdimp.c:2554: error: ‘imp_dbh_t’ has no member named ‘bind_comment_placeholders’
dbdimp.c:2554: warning: passing argument 2 of ‘Perl_newSViv’ makes integer from pointer without a cast
dbdimp.c:2560: warning: implicit declaration of function ‘mysql_get_client_info’
dbdimp.c:2560: warning: initialization makes pointer from integer without a cast
dbdimp.c:2566: warning: implicit declaration of function ‘mysql_get_client_version’
dbdimp.c:2566: error: too many arguments to function ‘my_ulonglong2str’
dbdimp.c:2571: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2575: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2575: warning: initialization makes pointer from integer without a cast
dbdimp.c:2589: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:2589: error: request for member ‘auto_reconnects_ok’ in something not a structure or union
dbdimp.c:2589: warning: passing argument 2 of ‘Perl_newSViv’ makes integer from pointer without a cast
dbdimp.c:2596: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:2596: error: request for member ‘auto_reconnects_failed’ in something not a structure or union
dbdimp.c:2596: warning: passing argument 2 of ‘Perl_newSViv’ makes integer from pointer without a cast
dbdimp.c:2610: warning: implicit declaration of function ‘mysql_get_host_info’
dbdimp.c:2610: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2610: warning: initialization makes pointer from integer without a cast
dbdimp.c:2619: warning: implicit declaration of function ‘mysql_info’
dbdimp.c:2619: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2619: warning: initialization makes pointer from integer without a cast
dbdimp.c:2624: warning: implicit declaration of function ‘mysql_insert_id’
dbdimp.c:2624: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2624: error: too many arguments to function ‘my_ulonglong2str’
dbdimp.c:2629: error: ‘imp_dbh_t’ has no member named ‘no_autocommit_cmd’
dbdimp.c:2629: warning: passing argument 2 of ‘Perl_newSViv’ makes integer from pointer without a cast
dbdimp.c:2634: warning: implicit declaration of function ‘mysql_get_proto_info’
dbdimp.c:2634: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2639: warning: implicit declaration of function ‘mysql_get_server_info’
dbdimp.c:2639: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2639: warning: initialization makes pointer from integer without a cast
dbdimp.c:2644: warning: implicit declaration of function ‘mysql_get_server_version’
dbdimp.c:2644: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2644: error: too many arguments to function ‘my_ulonglong2str’
dbdimp.c:2646: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2648: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2648: error: ‘sql_type_info_t’ has no member named ‘net’
dbdimp.c:2648: error: request for member ‘fd’ in something not a structure or union
dbdimp.c:2651: warning: implicit declaration of function ‘mysql_stat’
dbdimp.c:2651: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2651: warning: initialization makes pointer from integer without a cast
dbdimp.c:2658: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2658: warning: initialization makes pointer from integer without a cast
dbdimp.c:2663: error: ‘imp_dbh_t’ has no member named ‘use_server_side_prepare’
dbdimp.c:2668: warning: implicit declaration of function ‘mysql_thread_id’
dbdimp.c:2668: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:2678: error: ‘imp_dbh_t’ has no member named ‘use_mysql_use_result’
dbdimp.c: In function ‘mysql_st_prepare’:
dbdimp.c:2731: error: ‘MYSQL_VERSION_ID’ undeclared (first use in this function)
dbdimp.c:2759: error: ‘imp_sth_t’ has no member named ‘done_desc’
dbdimp.c:2759: warning: statement with no effect
dbdimp.c:2760: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:2760: warning: statement with no effect
dbdimp.c:2761: error: ‘imp_sth_t’ has no member named ‘currow’
dbdimp.c:2761: warning: statement with no effect
dbdimp.c:2765: error: ‘imp_sth_t’ has no member named ‘use_mysql_use_result’
dbdimp.c:2766: error: ‘imp_dbh_t’ has no member named ‘use_mysql_use_result’
dbdimp.c:2766: warning: pointer/integer type mismatch in conditional expression
dbdimp.c:2766: warning: statement with no effect
dbdimp.c:2769: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:2769: error: assignment of read-only location
dbdimp.c:2769: warning: statement with no effect
dbdimp.c:2963: error: ‘imp_dbh_t’ has no member named ‘bind_comment_placeholders’
dbdimp.c:2963: warning: passing argument 4 of ‘count_params’ makes integer from pointer without a cast
dbdimp.c:2967: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:2967: warning: statement with no effect
dbdimp.c: In function ‘mysql_st_free_result_sets’:
dbdimp.c:3038: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3040: warning: implicit declaration of function ‘mysql_free_result’
dbdimp.c:3040: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3041: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3041: warning: statement with no effect
dbdimp.c:2991: warning: unused variable ‘next_result_rc’
dbdimp.c:2989: warning: unused variable ‘imp_dbh’
dbdimp.c: At top level:
dbdimp.c:3216: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_st_internal_execute’
dbdimp.c: In function ‘mysql_st_execute’:
dbdimp.c:3560: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:3572: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:3572: error: used struct type value where scalar is required
dbdimp.c:3573: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:3573: error: cannot convert to a pointer type
dbdimp.c:3575: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:3575: error: assignment of read-only location
dbdimp.c:3575: warning: statement with no effect
dbdimp.c:3601: error: ‘imp_sth_t’ has no member named ‘row_num’
dbdimp.c:3601: warning: implicit declaration of function ‘mysql_st_internal_execute’
dbdimp.c:3606: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:3607: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3608: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:3609: error: ‘imp_sth_t’ has no member named ‘use_mysql_use_result’
dbdimp.c:3610: warning: statement with no effect
dbdimp.c:3612: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:3551: warning: unused variable ‘actual_row_num’
dbdimp.c: At top level:
dbdimp.c:3619: error: expected identifier or ‘(’ before ‘if’
dbdimp.c:3640: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘->’ token
dbdimp.c:3642: error: expected identifier or ‘(’ before ‘if’
dbdimp.c:3654: error: expected identifier or ‘(’ before ‘return’
dbdimp.c:3655: error: expected identifier or ‘(’ before ‘}’ token
dbdimp.c: In function ‘mysql_describe’:
dbdimp.c:3779: error: ‘imp_sth_t’ has no member named ‘done_desc’
dbdimp.c:3779: warning: statement with no effect
dbdimp.c: In function ‘mysql_st_fetch’:
dbdimp.c:3809: error: ‘MYSQL_ROW’ undeclared (first use in this function)
dbdimp.c:3809: warning: statement with no effect
dbdimp.c:3809: error: expected ‘;’ before ‘cols’
dbdimp.c:3810: warning: ISO C90 forbids mixed declarations and code
dbdimp.c:3811: error: ‘MYSQL’ undeclared (first use in this function)
dbdimp.c:3811: error: ‘svsock’ undeclared (first use in this function)
dbdimp.c:3811: error: invalid operands to binary *
dbdimp.c:3811: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:3811: warning: statement with no effect
dbdimp.c:3812: warning: ISO C90 forbids mixed declarations and code
dbdimp.c:3817: error: ‘MYSQL_FIELD’ undeclared (first use in this function)
dbdimp.c:3817: error: ‘fields’ undeclared (first use in this function)
dbdimp.c:3817: error: invalid operands to binary *
dbdimp.c:3817: warning: statement with no effect
dbdimp.c:3822: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:3823: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3823: error: too many arguments to function ‘mysql_db_async_result’
dbdimp.c:3863: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:3870: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:3870: error: ‘sql_type_info_t’ has no member named ‘net’
dbdimp.c:3870: error: request for member ‘last_errno’ in something not a structure or union
dbdimp.c:3870: warning: statement with no effect
dbdimp.c:4048: error: ‘imp_sth_t’ has no member named ‘currow’
dbdimp.c:4048: error: invalid lvalue in increment
dbdimp.c:4048: warning: statement with no effect
dbdimp.c:4053: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4055: warning: implicit declaration of function ‘mysql_num_fields’
dbdimp.c:4055: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4057: warning: implicit declaration of function ‘mysql_num_rows’
dbdimp.c:4057: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4059: warning: implicit declaration of function ‘mysql_affected_rows’
dbdimp.c:4059: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4061: error: ‘imp_sth_t’ has no member named ‘currow’
dbdimp.c:4064: error: ‘cols’ undeclared (first use in this function)
dbdimp.c:4064: warning: implicit declaration of function ‘mysql_fetch_row’
dbdimp.c:4064: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4070: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4071: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4072: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4073: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c:4083: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4084: warning: implicit declaration of function ‘mysql_fetch_fields’
dbdimp.c:4084: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4084: warning: statement with no effect
dbdimp.c:4085: warning: implicit declaration of function ‘mysql_fetch_lengths’
dbdimp.c:4085: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4085: warning: assignment makes pointer from integer without a cast
dbdimp.c:4125: error: incompatible types in initialization
dbdimp.c:3812: warning: unused variable ‘fbh’
dbdimp.c:3805: warning: unused variable ‘rc’
dbdimp.c: In function ‘mysql_st_finish’:
dbdimp.c:4202: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:4203: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4203: error: too many arguments to function ‘mysql_db_async_result’
dbdimp.c: In function ‘mysql_st_destroy’:
dbdimp.c:4318: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:4320: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:4320: warning: passing argument 2 of ‘free_param’ from incompatible pointer type
dbdimp.c:4321: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:4321: warning: statement with no effect
dbdimp.c:4327: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:4327: error: used struct type value where scalar is required
dbdimp.c:4328: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:4328: error: cannot convert to a pointer type
dbdimp.c:4329: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:4329: error: assignment of read-only location
dbdimp.c:4329: warning: statement with no effect
dbdimp.c:4264: warning: unused variable ‘imp_xxh’
dbdimp.c: In function ‘mysql_st_STORE_attrib’:
dbdimp.c:4374: error: ‘imp_sth_t’ has no member named ‘use_mysql_use_result’
dbdimp.c:4374: warning: statement with no effect
dbdimp.c: At top level:
dbdimp.c:4422: error: expected declaration specifiers or ‘...’ before ‘MYSQL_RES’
dbdimp.c: In function ‘mysql_st_FETCH_internal’:
dbdimp.c:4429: error: ‘MYSQL_FIELD’ undeclared (first use in this function)
dbdimp.c:4429: error: ‘curField’ undeclared (first use in this function)
dbdimp.c:4429: error: invalid operands to binary *
dbdimp.c:4429: warning: statement with no effect
dbdimp.c:4436: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:4436: error: invalid operands to binary &&
dbdimp.c:4437: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:4437: error: incompatible types in assignment
dbdimp.c:4437: warning: statement with no effect
dbdimp.c:4440: error: ‘res’ undeclared (first use in this function)
dbdimp.c:4447: warning: implicit declaration of function ‘mysql_field_seek’
dbdimp.c:4448: warning: implicit declaration of function ‘mysql_fetch_field’
dbdimp.c:4454: error: ‘sql_type_info_t’ has no member named ‘name’
dbdimp.c:4454: error: ‘sql_type_info_t’ has no member named ‘name’
dbdimp.c:4454: warning: passing argument 1 of ‘strlen’ from incompatible pointer type
dbdimp.c:4454: warning: passing argument 2 of ‘Perl_newSVpv’ from incompatible pointer type
dbdimp.c:4458: error: ‘sql_type_info_t’ has no member named ‘table’
dbdimp.c:4458: error: ‘sql_type_info_t’ has no member named ‘table’
dbdimp.c:4458: warning: passing argument 1 of ‘strlen’ from incompatible pointer type
dbdimp.c:4458: warning: passing argument 2 of ‘Perl_newSVpv’ from incompatible pointer type
dbdimp.c:4462: error: ‘sql_type_info_t’ has no member named ‘type’
dbdimp.c:4462: warning: cast from pointer to integer of different size
dbdimp.c:4466: error: ‘sql_type_info_t’ has no member named ‘type’
dbdimp.c:4466: warning: passing argument 1 of ‘native2sql’ makes integer from pointer without a cast
dbdimp.c:4469: warning: implicit declaration of function ‘IS_PRI_KEY’
dbdimp.c:4469: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:4473: warning: implicit declaration of function ‘IS_NOT_NULL’
dbdimp.c:4473: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:4477: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:4481: error: ‘sql_type_info_t’ has no member named ‘length’
dbdimp.c:4481: warning: cast from pointer to integer of different size
dbdimp.c:4485: error: ‘sql_type_info_t’ has no member named ‘type’
dbdimp.c:4485: warning: passing argument 1 of ‘native2sql’ makes integer from pointer without a cast
dbdimp.c:4489: error: ‘sql_type_info_t’ has no member named ‘type’
dbdimp.c:4489: warning: passing argument 1 of ‘native2sql’ makes integer from pointer without a cast
dbdimp.c:4493: error: ‘sql_type_info_t’ has no member named ‘max_length’
dbdimp.c:4493: warning: cast from pointer to integer of different size
dbdimp.c:4505: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:4505: error: ‘PRI_KEY_FLAG’ undeclared (first use in this function)
dbdimp.c:4505: error: ‘UNIQUE_KEY_FLAG’ undeclared (first use in this function)
dbdimp.c:4505: error: invalid operands to binary |
dbdimp.c:4505: error: ‘MULTIPLE_KEY_FLAG’ undeclared (first use in this function)
dbdimp.c:4505: error: invalid operands to binary |
dbdimp.c:4505: error: invalid operands to binary &
dbdimp.c:4509: warning: implicit declaration of function ‘IS_BLOB’
dbdimp.c:4509: error: ‘sql_type_info_t’ has no member named ‘flags’
dbdimp.c:4513: error: ‘sql_type_info_t’ has no member named ‘decimals’
dbdimp.c:4513: warning: cast from pointer to integer of different size
dbdimp.c:4517: error: ‘sql_type_info_t’ has no member named ‘length’
dbdimp.c:4517: error: ‘sql_type_info_t’ has no member named ‘max_length’
dbdimp.c:4517: error: ‘sql_type_info_t’ has no member named ‘length’
dbdimp.c:4517: error: ‘sql_type_info_t’ has no member named ‘max_length’
dbdimp.c:4517: warning: passing argument 2 of ‘Perl_newSViv’ makes integer from pointer without a cast
dbdimp.c:4532: error: ‘imp_sth_t’ has no member named ‘av_attr’
dbdimp.c:4532: error: assignment of read-only location
dbdimp.c:4532: warning: statement with no effect
dbdimp.c: In function ‘mysql_st_FETCH_attrib’:
dbdimp.c:4584: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4584: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4584: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4586: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4586: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4586: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4590: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4590: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4590: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4602: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:4602: error: ‘struct sql_type_info_s’ has no member named ‘value’
dbdimp.c:4602: warning: passing argument 2 of ‘Perl_newSVsv’ from incompatible pointer type
dbdimp.c:4611: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4611: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4611: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4615: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4615: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4615: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4621: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4621: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4621: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4625: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4625: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4625: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4629: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4629: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4629: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4631: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4631: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4631: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4633: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4633: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4633: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4635: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4639: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4639: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4639: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4646: error: ‘imp_sth_t’ has no member named ‘insertid’
dbdimp.c:4646: warning: cast from pointer to integer of different size
dbdimp.c:4648: error: ‘imp_sth_t’ has no member named ‘insertid’
dbdimp.c:4648: error: too many arguments to function ‘my_ulonglong2str’
dbdimp.c:4653: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4653: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4653: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4657: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4657: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4657: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4659: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4659: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4659: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c:4661: error: ‘imp_sth_t’ has no member named ‘use_mysql_use_result’
dbdimp.c:4665: error: ‘imp_sth_t’ has no member named ‘warning_count’
dbdimp.c:4677: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:4677: warning: passing argument 3 of ‘mysql_st_FETCH_internal’ makes integer from pointer without a cast
dbdimp.c:4677: error: too many arguments to function ‘mysql_st_FETCH_internal’
dbdimp.c: In function ‘mysql_bind_ph’:
dbdimp.c:4767: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:4810: error: ‘imp_sth_t’ has no member named ‘params’
dbdimp.c:4810: warning: passing argument 1 of ‘bind_param’ from incompatible pointer type
dbdimp.c: In function ‘mysql_db_reconnect’:
dbdimp.c:4956: error: ‘MYSQL’ undeclared (first use in this function)
dbdimp.c:4956: warning: statement with no effect
dbdimp.c:4956: error: expected ‘;’ before ‘save_socket’
dbdimp.c:4966: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4966: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
dbdimp.c:4966: warning: comparison between pointer and integer
dbdimp.c:4970: error: ‘imp_dbh_t’ has no member named ‘auto_reconnect’
dbdimp.c:4984: error: ‘save_socket’ undeclared (first use in this function)
dbdimp.c:4984: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4984: warning: statement with no effect
dbdimp.c:4985: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4985: warning: passing argument 3 of ‘__builtin___memcpy_chk’ makes integer from pointer without a cast
dbdimp.c:4985: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4985: warning: passing argument 3 of ‘__memcpy_ichk’ makes integer from pointer without a cast
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: warning: passing argument 1 of ‘__builtin___memset_chk’ discards qualifiers from pointer target type
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4986: warning: passing argument 1 of ‘__memset_ichk’ discards qualifiers from pointer target type
dbdimp.c:4994: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4994: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4995: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c:4996: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4996: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4996: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4996: warning: passing argument 1 of ‘__builtin___memcpy_chk’ discards qualifiers from pointer target type
dbdimp.c:4996: warning: passing argument 3 of ‘__builtin___memcpy_chk’ makes integer from pointer without a cast
dbdimp.c:4996: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:4996: warning: passing argument 1 of ‘__memcpy_ichk’ discards qualifiers from pointer target type
dbdimp.c:4996: warning: passing argument 3 of ‘__memcpy_ichk’ makes integer from pointer without a cast
dbdimp.c:4997: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:4997: error: request for member ‘auto_reconnects_failed’ in something not a structure or union
dbdimp.c:4997: error: invalid lvalue in increment
dbdimp.c:4997: warning: statement with no effect
dbdimp.c:5006: error: ‘imp_dbh_t’ has no member named ‘stats’
dbdimp.c:5006: error: request for member ‘auto_reconnects_ok’ in something not a structure or union
dbdimp.c:5006: error: invalid lvalue in increment
dbdimp.c:5006: warning: statement with no effect
dbdimp.c: In function ‘mysql_db_quote’:
dbdimp.c:5168: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c: In function ‘mysql_db_last_insert_id’:
dbdimp.c:5193: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:5194: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:5194: error: too many arguments to function ‘my_ulonglong2str’
dbdimp.c: At top level:
dbdimp.c:5199: error: expected declaration specifiers or ‘...’ before ‘MYSQL_RES’
dbdimp.c: In function ‘mysql_db_async_result’:
dbdimp.c:5204: error: ‘MYSQL’ undeclared (first use in this function)
dbdimp.c:5204: error: ‘svsock’ undeclared (first use in this function)
dbdimp.c:5204: error: invalid operands to binary *
dbdimp.c:5204: warning: statement with no effect
dbdimp.c:5205: error: ‘MYSQL_RES’ undeclared (first use in this function)
dbdimp.c:5205: error: ‘_res’ undeclared (first use in this function)
dbdimp.c:5205: error: invalid operands to binary *
dbdimp.c:5205: warning: statement with no effect
dbdimp.c:5206: warning: ISO C90 forbids mixed declarations and code
dbdimp.c:5209: error: ‘resp’ undeclared (first use in this function)
dbdimp.c:5210: warning: statement with no effect
dbdimp.c:5224: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:5228: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:5228: warning: comparison of distinct pointer types lacks a cast
dbdimp.c:5232: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:5232: warning: statement with no effect
dbdimp.c:5234: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:5234: warning: statement with no effect
dbdimp.c:5235: warning: implicit declaration of function ‘mysql_read_query_result’
dbdimp.c:5237: warning: implicit declaration of function ‘mysql_store_result’
dbdimp.c:5237: error: assignment of read-only location
dbdimp.c:5237: warning: statement with no effect
dbdimp.c:5240: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c:5241: error: wrong type argument to unary exclamation mark
dbdimp.c:5245: warning: comparison of distinct pointer types lacks a cast
dbdimp.c:5253: error: ‘my_ulonglong’ undeclared (first use in this function)
dbdimp.c:5253: warning: comparison between pointer and integer
dbdimp.c:5254: error: wrong type argument to unary exclamation mark
dbdimp.c:5255: error: ‘imp_sth_t’ has no member named ‘insertid’
dbdimp.c:5255: warning: statement with no effect
dbdimp.c:5261: error: ‘imp_sth_t’ has no member named ‘result’
dbdimp.c:5262: error: ‘imp_sth_t’ has no member named ‘done_desc’
dbdimp.c:5262: warning: statement with no effect
dbdimp.c:5263: error: ‘imp_sth_t’ has no member named ‘fetch_done’
dbdimp.c:5263: warning: statement with no effect
dbdimp.c:5266: error: ‘imp_sth_t’ has no member named ‘warning_count’
dbdimp.c:5266: warning: statement with no effect
dbdimp.c:5251: warning: unused variable ‘imp_dbh’
dbdimp.c:5270: warning: passing argument 3 of ‘mysql_dr_error’ makes pointer from integer without a cast
dbdimp.c: In function ‘mysql_db_async_ready’:
dbdimp.c:5294: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:5295: error: ‘imp_dbh_t’ has no member named ‘async_query_in_flight’
dbdimp.c:5295: warning: comparison of distinct pointer types lacks a cast
dbdimp.c:5299: error: ‘imp_dbh_t’ has no member named ‘pmysql’
dbdimp.c:5299: error: ‘sql_type_info_t’ has no member named ‘net’
dbdimp.c:5299: error: request for member ‘fd’ in something not a structure or union
dbdimp.c:5299: warning: assignment makes integer from pointer without a cast
make: *** [dbdimp.o] Error 1
CAPTTOFU/DBD-mysql-4.031.tar.gz
/usr/bin/make -- NOT OK

Tried that but unfortunately it returns all kinds of warnings and errors, though perms are properly set for 'username_redacted' below. I'll just table it until we get around to upgrading the server O/S. But just FYI :

# perl -MCPAN -e 'install DBD::mysql'
CPAN: Storable loaded ok (v2.15)
Reading '/root/.cpan/Metadata'
  Database was generated on Sat, 25 Apr 2015 22:29:02 GMT
Running install for module 'DBD::mysql'
CPAN: Digest::SHA loaded ok (v5.93)
CPAN: Compress::Zlib loaded ok (v2.066)
Checksum for /root/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.031.tar.gz ok
CPAN: File::Temp loaded ok (v0.2304)
CPAN: YAML loaded ok (v1.13)
CPAN: CPAN::Meta::Requirements loaded ok (v2.127)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.142690)
CPAN: Module::CoreList loaded ok (v5.20141020)
Configuring C/CA/CAPTTOFU/DBD-mysql-4.031.tar.gz with Makefile.PL


PLEASE NOTE:

For 'make test' to run properly, you must ensure that the
database user 'username_redacted' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.

mysql> grant all privileges on test.* to 'username_redacted'@'localhost' identified by 's3kr1t';

You can also optionally set the user to run 'make test' with:

perl Makefile.PL --testuser=username

I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I/usr/include/mysql  -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv
  embedded      (guessed     ) =
  ldflags       (mysql_config) = -rdynamic
  libs          (mysql_config) = -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto
  mysql_config  (guessed     ) = mysql_config
  nocatchstderr (default     ) = 0
  nofoundrows   (default     ) = 0
  ssl           (guessed     ) = 1
  testdb        (default     ) = test
  testhost      (default     ) =
  testpassword  (default     ) =
  testport      (default     ) =
  testsocket    (default     ) =
  testuser      (guessed     ) = username_redacted

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

Checking if your kit is complete...
Looks good
Using DBI 1.632 (for perl 5.008008 on x86_64-linux-thread-multi) installed in /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI/
Generating a Unix-style Makefile
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
  CAPTTOFU/DBD-mysql-4.031.tar.gz
  /usr/bin/perl Makefile.PL -- OK
Running make for C/CA/CAPTTOFU/DBD-mysql-4.031.tar.gz
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp README.pod blib/lib/DBD/README.pod
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
Running Mkbootstrap for DBD::mysql ()
chmod 644 "mysql.bs"
gcc -c  -I/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBI -I/usr/include/mysql  -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION="4.031" -DXS_VERSION="4.031" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE"   dbdimp.c
In file included from dbdimp.c:20:
dbdimp.h:21:49: error: mysql.h: No such file or directory
dbdimp.h:22:45: error: mysqld_error.h: No such file or directory
dbdimp.h:24:49: error: errmsg.h: No such file or directory
In file included from dbdimp.c:20:
dbdimp.h:172: error: expected specifier-qualifier-list before ‘MYSQL’
dbdimp.h:271: error: expected specifier-qualifier-list before ‘MYSQL_RES’
In file included from dbdimp.c:20:
dbdimp.h:332: error: expected ‘)’ before ‘*’ token
dbdimp.h:335: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mysql_st_internal_execute’
dbdimp.h:371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
dbdimp.h:377: error: expected declaration specifiers or ‘...’ before ‘MYSQL_RES’
dbdimp.c: In function ‘alloc_param’:
dbdimp.c:227: warning: comparison is always false due to limited range of data type
dbdimp.c: At top level:
dbdimp.c:523: error: expected declaration specifiers or ‘...’ before ‘MYSQL’
dbdimp.c: In function ‘parse_params’:
dbdimp.c:771: warning: implicit declaration of function ‘mysql_real_escape_string’
dbdimp.c:771: error: ‘sock’ undeclared (first use in this function)
dbdimp.c:771: error: (Each undeclared identifier is reported only once
dbdimp.c:771: error: for each function it appears in.)
[and lots more...]

There may also be a system package you can use... what is the output of this command:

rpm -qa | grep perl-DBD-MySQL

It's there :

# rpm -qa | grep perl-DBD-MySQL
perl-DBD-MySQL-3.0007-2.el5

And from yum info DBD-MySQL :

Installed Packages
Name       : perl-DBD-MySQL
Arch       : x86_64
Version    : 3.0007
Release    : 2.el5
Size       : 328 k
Repo       : installed
Summary    : A MySQL interface for perl
URL        : http://search.cpan.org/dist/DBD-mysql/
License    : GPL or Artistic
Description: An implementation of DBI for MySQL for Perl.