In the original code, there is a missing if-endif part, and under several conditions the compile fails. Patch: diff -rupN DBD-mysql-4.020/dbdimp.c DBD-mysql-4.020-new/dbdimp.c --- DBD-mysql-4.020/dbdimp.c 2011-08-20 20:35:59.000000000 +0200 +++ DBD-mysql-4.020-new/dbdimp.c 2014-09-05 17:49:24.621195143 +0200 @@ -3473,7 +3473,9 @@ int dbd_st_execute(SV* sth, imp_sth_t* i return 0; } #endif +#if MYSQL_VERSION_ID >= SERVER_PREPARE_VERSION } +#endif if (imp_sth->row_num+1 != (my_ulonglong)-1) {
why should we implement this one into gentoo instead upstream? We should not.