* Package: dev-perl/DBD-mysql-5.1.0:0  * Repository: gentoo  * Maintainer: perl@gentoo.org  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux mariadb  * FEATURES: compressdebug network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking DBD-mysql-5.001.tar.gz to /var/tmp/portage/dev-perl/DBD-mysql-5.1.0/work >>> Source unpacked in /var/tmp/portage/dev-perl/DBD-mysql-5.1.0/work >>> Preparing source in /var/tmp/portage/dev-perl/DBD-mysql-5.1.0/work/DBD-mysql-5.001 ... * Applying DBD-mysql-4.050-no-dot-inc.patch ...  [ ok ] * Applying DBD-mysql-5.001-tests.patch ...  [ ok ] * Removing un-needed t/pod.t * Removing un-needed t/manifest.t * Removing un-needed t/40server_prepare.t * Fixing Manifest >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-perl/DBD-mysql-5.1.0/work/DBD-mysql-5.001 ... * Using ExtUtils::MakeMaker * perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLMAN3DIR=none DESTDIR=/var/tmp/portage/dev-perl/DBD-mysql-5.1.0/image --mysql_config=/usr/bin/mariadb_config PLEASE NOTE: For 'make test' to run properly, you must ensure that the database user '' 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> CREATE USER ''@'localhost' IDENTIFIED BY 's3kr1t'; mysql> GRANT ALL PRIVILEGES ON test.* TO ''@'localhost'; 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/mariadb -I/usr/include/mariadb/mysql ldflags (mysql_config) = libs (mysql_config) = -L/usr/lib64/ -lmariadb mysql_config (Users choice) = /usr/bin/mariadb_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 testdb (default ) = test testhost (default ) = testpassword (default ) = testport (default ) = testsocket (default ) = testuser (guessed ) = To change these settings, see 'perl Makefile.PL --help' and 'perldoc DBD::mysql::INSTALL'. Checking if libs are available for compiling... Looks good. Checking if your kit is complete... Looks good Warning: prerequisite Test::Deep 0 not found. Using DBI 1.643 (for perl 5.038000 on x86_64-linux-thread-multi) installed in /usr/lib64/perl5/vendor_perl/5.38/x86_64-linux-thread-multi/auto/DBI/ Generating a Unix-style Makefile Writing Makefile for DBD::mysql Writing MYMETA.yml and MYMETA.json >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-perl/DBD-mysql-5.1.0/work/DBD-mysql-5.001 ... make -j9 'OTHERLDFLAGS=-Wl,-O1 -Wl,--as-needed' 'OPTIMIZE=-O2 -ggdb3 -pipe -march=znver2' Running Mkbootstrap for mysql () x86_64-pc-linux-gnu-gcc -c -I/usr/lib64/perl5/vendor_perl/5.38/x86_64-linux-thread-multi/auto/DBI -I/usr/include/mariadb -I/usr/include/mariadb/mysql -g -D_REENTRANT -D_GNU_SOURCE -O2 -ggdb3 -pipe -march=znver2 -fno-strict-aliasing -DNO_PERL_RAND_SEED -fwrapv -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -ggdb3 -pipe -march=znver2 -DVERSION=\"5.001\" -DXS_VERSION=\"5.001\" -fPIC "-I/usr/lib64/perl5/5.38/x86_64-linux-thread-multi/CORE" dbdimp.c "/usr/bin/perl" -p -e "s/~DRIVER~/mysql/g" /usr/lib64/perl5/vendor_perl/5.38/x86_64-linux-thread-multi/auto/DBI/Driver.xst > mysql.xsi x86_64-pc-linux-gnu-gcc -c -I/usr/lib64/perl5/vendor_perl/5.38/x86_64-linux-thread-multi/auto/DBI -I/usr/include/mariadb -I/usr/include/mariadb/mysql -g -D_REENTRANT -D_GNU_SOURCE -O2 -ggdb3 -pipe -march=znver2 -fno-strict-aliasing -DNO_PERL_RAND_SEED -fwrapv -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -ggdb3 -pipe -march=znver2 -DVERSION=\"5.001\" -DXS_VERSION=\"5.001\" -fPIC "-I/usr/lib64/perl5/5.38/x86_64-linux-thread-multi/CORE" socket.c "/usr/bin/perl" "/usr/lib64/perl5/5.38/ExtUtils/xsubpp" -typemap '/usr/lib64/perl5/5.38/ExtUtils/typemap' mysql.xs > mysql.xsc chmod 644 "mysql.bs" cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644 cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm Warning: duplicate function definition 'do' detected in mysql.xs, line 229 Warning: duplicate function definition 'rows' detected in mysql.xs, line 637 mv mysql.xsc mysql.c x86_64-pc-linux-gnu-gcc -c -I/usr/lib64/perl5/vendor_perl/5.38/x86_64-linux-thread-multi/auto/DBI -I/usr/include/mariadb -I/usr/include/mariadb/mysql -g -D_REENTRANT -D_GNU_SOURCE -O2 -ggdb3 -pipe -march=znver2 -fno-strict-aliasing -DNO_PERL_RAND_SEED -fwrapv -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -ggdb3 -pipe -march=znver2 -DVERSION=\"5.001\" -DXS_VERSION=\"5.001\" -fPIC "-I/usr/lib64/perl5/5.38/x86_64-linux-thread-multi/CORE" mysql.c dbdimp.c: In function ‘mysql_dr_connect’: dbdimp.c:1407:31: error: ‘MYSQL_OPT_GET_SERVER_PUBLIC_KEY’ undeclared (first use in this function); did you mean ‘MYSQL_SERVER_PUBLIC_KEY’? 1407 | mysql_options(sock, MYSQL_OPT_GET_SERVER_PUBLIC_KEY, &server_get_pubkey); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | MYSQL_SERVER_PUBLIC_KEY dbdimp.c:1407:31: note: each undeclared identifier is reported only once for each function it appears in dbdimp.c:1464:22: error: ‘SSL_MODE_PREFERRED’ undeclared (first use in this function) 1464 | ssl_mode = SSL_MODE_PREFERRED; | ^~~~~~~~~~~~~~~~~~ ./mysql.xsi: In function ‘XS_DBD__mysql__db_selectrow_arrayref’: ./mysql.xsi:234:9: warning: ‘Perl_dowantarray’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;] 234 | if (GIMME == G_SCALAR) | ^~ In file included from /usr/lib64/perl5/5.38/x86_64-linux-thread-multi/CORE/perl.h:6190, from /usr/lib64/perl5/vendor_perl/5.38/x86_64-linux-thread-multi/auto/DBI/DBIXS.h:23, from dbdimp.h:20, from mysql.xs:12: /usr/lib64/perl5/5.38/x86_64-linux-thread-multi/CORE/proto.h:1019:1: note: declared here 1019 | Perl_dowantarray(pTHX) | ^~~~~~~~~~~~~~~~ ./mysql.xsi:240:9: warning: ‘Perl_dowantarray’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;] 240 | if (GIMME == G_SCALAR) | ^~ /usr/lib64/perl5/5.38/x86_64-linux-thread-multi/CORE/proto.h:1019:1: note: declared here 1019 | Perl_dowantarray(pTHX) | ^~~~~~~~~~~~~~~~ mysql.xs: In function ‘XS_DBD__mysql__st_rows’: mysql.xs:658:18: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘my_ulonglong’ {aka ‘long long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 658 | sprintf(buf, "%lu", imp_sth->row_num); | ^~~~~ ~~~~~~~~~~~~~~~~ | | | my_ulonglong {aka long long unsigned int} dbdimp.c:1466:26: error: ‘SSL_MODE_VERIFY_IDENTITY’ undeclared (first use in this function) 1466 | ssl_mode = SSL_MODE_VERIFY_IDENTITY; | ^~~~~~~~~~~~~~~~~~~~~~~~ dbdimp.c:1468:26: error: ‘SSL_MODE_VERIFY_CA’ undeclared (first use in this function) 1468 | ssl_mode = SSL_MODE_VERIFY_CA; | ^~~~~~~~~~~~~~~~~~ dbdimp.c:1470:26: error: ‘SSL_MODE_REQUIRED’ undeclared (first use in this function) 1470 | ssl_mode = SSL_MODE_REQUIRED; | ^~~~~~~~~~~~~~~~~ dbdimp.c:1471:37: error: ‘MYSQL_OPT_SSL_MODE’ undeclared (first use in this function); did you mean ‘MYSQL_OPT_SSL_CRL’? 1471 | if (mysql_options(sock, MYSQL_OPT_SSL_MODE, &ssl_mode) != 0) { | ^~~~~~~~~~~~~~~~~~ | MYSQL_OPT_SSL_CRL dbdimp.c:1480:37: error: ‘SSL_MODE_DISABLED’ undeclared (first use in this function) 1480 | unsigned int ssl_mode = SSL_MODE_DISABLED; | ^~~~~~~~~~~~~~~~~ dbdimp.c: In function ‘mysql_st_prepare’: dbdimp.c:2407:24: warning: assignment to ‘my_bool *’ {aka ‘char *’} from incompatible pointer type ‘_Bool *’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types]8;;] 2407 | bind->is_null= &(fbind->is_null); | ^ dbdimp.c: In function ‘mysql_st_internal_execute41’: dbdimp.c:2943:63: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘my_ulonglong’ {aka ‘long long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 2943 | "\t<- mysql_internal_execute_41 returning %lu rows\n", | ~~^ | | | long unsigned int | %llu 2944 | rows); | ~~~~ | | | my_ulonglong {aka long long unsigned int} dbdimp.c: In function ‘mysql_st_execute’: dbdimp.c:3104:32: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘my_ulonglong’ {aka ‘long long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 3104 | sprintf(actual_row_num, "%lu", imp_sth->row_num); | ~~^ ~~~~~~~~~~~~~~~~ | | | | | my_ulonglong {aka long long unsigned int} | long unsigned int | %llu dbdimp.c: In function ‘mysql_describe’: dbdimp.c:3198:22: warning: assignment to ‘my_bool *’ {aka ‘char *’} from incompatible pointer type ‘_Bool *’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types]8;;] 3198 | buffer->is_null= &(fbh->is_null); | ^ dbdimp.c:3199:20: warning: assignment to ‘my_bool *’ {aka ‘char *’} from incompatible pointer type ‘_Bool *’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types]8;;] 3199 | buffer->error= (bool*) &(fbh->error); | ^ dbdimp.c: In function ‘mysql_st_fetch’: dbdimp.c:3503:63: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘my_ulonglong’ {aka ‘long long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 3503 | PerlIO_printf(DBIc_LOGPIO(imp_xxh), "\tmysql_num_rows=%lu\n", | ~~^ | | | long unsigned int | %llu 3504 | mysql_num_rows(imp_sth->result)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | my_ulonglong {aka long long unsigned int} dbdimp.c:3505:68: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘my_ulonglong’ {aka ‘long long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 3505 | PerlIO_printf(DBIc_LOGPIO(imp_xxh), "\tmysql_affected_rows=%lu\n", | ~~^ | | | long unsigned int | %llu 3506 | mysql_affected_rows(imp_dbh->pmysql)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | my_ulonglong {aka long long unsigned int} dbdimp.c: In function ‘mysql_st_FETCH_attrib’: dbdimp.c:4106:60: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘my_ulonglong’ {aka ‘long long unsigned int’} []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat=-Wformat=]8;;] 4106 | PerlIO_printf(DBIc_LOGPIO(imp_xxh), "INSERT ID %lu\n", imp_sth->insertid); | ~~^ ~~~~~~~~~~~~~~~~~ | | | | | my_ulonglong {aka long long unsigned int} | long unsigned int | %llu dbdimp.c: In function ‘mysql_db_quote’: dbdimp.c:4646:12: warning: implicit declaration of function ‘mysql_real_escape_string_quote’; did you mean ‘mysql_real_escape_string’? []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;] 4646 | sptr+= mysql_real_escape_string_quote(imp_dbh->pmysql, sptr, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | mysql_real_escape_string make: *** [Makefile:357: dbdimp.o] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: dev-perl/DBD-mysql-5.1.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-perl/DBD-mysql-5.1.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-perl/DBD-mysql-5.1.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-perl/DBD-mysql-5.1.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-perl/DBD-mysql-5.1.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-perl/DBD-mysql-5.1.0/work/DBD-mysql-5.001' * S: '/var/tmp/portage/dev-perl/DBD-mysql-5.1.0/work/DBD-mysql-5.001'