Mock Version: 1.1.41 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/perl-DBD-MySQL.spec'], False, '/var/lib/mock/epel-7-x86_64-mockbuilder-1628/root/', None, 0, True, False, 500, 135, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'CCACHE_UMASK': '002'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/perl-DBD-MySQL.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'CCACHE_UMASK': '002'} error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) sh: scl: command not found sh: /opt/rh/perl516/root/usr/bin/perl: No such file or directory sh: /opt/rh/perl516/root/usr/bin/perl: No such file or directory sh: /opt/rh/perl516/root/usr/bin/perl: No such file or directory sh: /opt/rh/perl516/root/usr/bin/perl: No such file or directory sh: /opt/rh/perl516/root/usr/bin/perl: No such file or directory warning: Could not canonicalize hostname: i-00012d0f Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/perl516-perl-DBD-MySQL-4.025-4.el7.centos.src.rpm error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-DBD-MySQL.spec'], False, '/var/lib/mock/epel-7-x86_64-mockbuilder-1628/root/', None, 0, True, False, 500, 135, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'CCACHE_UMASK': '002'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/perl-DBD-MySQL.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'CCACHE_UMASK': '002'} error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rwngUo + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf DBD-mysql-4.025 + /usr/bin/gzip -dc /builddir/build/SOURCES/DBD-mysql-4.025.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd DBD-mysql-4.025 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find . -type f + xargs chmod -x + for file in lib/DBD/mysql.pm ChangeLog + iconv -f iso-8859-1 -t utf-8 + touch -r lib/DBD/mysql.pm lib/DBD/mysql.pm_ + mv -f lib/DBD/mysql.pm_ lib/DBD/mysql.pm + for file in lib/DBD/mysql.pm ChangeLog + iconv -f iso-8859-1 -t utf-8 + touch -r ChangeLog ChangeLog_ + mv -f ChangeLog_ ChangeLog Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.GMWHta + exit 0 + umask 022 + cd /builddir/build/BUILD + cd DBD-mysql-4.025 + scl enable perl516 ' perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic" --ssl ' PLEASE NOTE: For 'make test' to run properly, you must ensure that the database user 'mockbuild' 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 'mockbuild'@'localhost' identified by 's3kr1t'; You can also optionally set the user to run 'make test' with: perl Makefile.PL --testuser=username Warning: prerequisite Test::Deep 0 not found. Warning: prerequisite Test::More 0 not found. 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-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 embedded (mysql_config ) = ldflags (mysql_config ) = libs (mysql_config ) = -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (User's choice) = 1 testdb (default ) = test testhost (default ) = testpassword (default ) = testport (default ) = testsocket (default ) = testuser (guessed ) = mockbuild To change these settings, see 'perl Makefile.PL --help' and 'perldoc DBD::mysql::INSTALL'. Checking if your kit is complete... Warning: the following files are missing in your kit: META.json t/mem_leak.pl Please inform the author. Using DBI 1.63 (for perl 5.016003 on x86_64-linux-thread-multi) installed in /opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/auto/DBI/ Generating a Unix-style Makefile Writing Makefile for DBD::mysql + scl enable perl516 ' make -j3 ' gcc -c -I/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/auto/DBI -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"4.025\" -DXS_VERSION=\"4.025\" -fPIC "-I/opt/rh/perl516/root/usr/lib64/perl5/CORE" dbdimp.c /opt/rh/perl516/root/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/auto/DBI/Driver.xst > mysql.xsi /opt/rh/perl516/root/usr/bin/perl /opt/rh/perl516/root/usr/share/perl5/ExtUtils/xsubpp -typemap /opt/rh/perl516/root/usr/share/perl5/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c 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 Warning: duplicate function definition 'do' detected in mysql.xs, line 242 Warning: duplicate function definition 'rows' detected in mysql.xs, line 754 gcc -c -I/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/auto/DBI -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -DDBD_MYSQL_WITH_SSL -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DVERSION=\"4.025\" -DXS_VERSION=\"4.025\" -fPIC "-I/opt/rh/perl516/root/usr/lib64/perl5/CORE" mysql.c mysql.c: In function 'XS_DBD__mysql__db__login': mysql.c:288:7: warning: variable 'attribs' set but not used [-Wunused-but-set-variable] SV * attribs; ^ mysql.xs: In function 'XS_DBD__mysql__db_do': mysql.xs:260:19: warning: unused variable 'statement_ptr' [-Wunused-variable] char *str_ptr, *statement_ptr, *buffer; ^ mysql.xs: In function 'XS_DBD__mysql__st_more_results': mysql.xs:691:7: warning: unused variable 'retval' [-Wunused-variable] int retval; ^ dbdimp.c: In function 'dbd_discon_all': dbdimp.c:2229:14: warning: unused variable 'imp_xxh' [-Wunused-variable] D_imp_xxh(drh); ^ dbdimp.c: In function 'mysql_db_FETCH_attrib': dbdimp.c:2447:9: warning: variable 'fine_key' set but not used [-Wunused-but-set-variable] char* fine_key = NULL; ^ dbdimp.c: In function 'mysql_st_prepare': dbdimp.c:2643:33: warning: unused variable 'limit_flag' [-Wunused-variable] int col_type, prepare_retval, limit_flag=0; ^ dbdimp.c: In function 'mysql_describe': dbdimp.c:3661:22: warning: assignment from incompatible pointer type [enabled by default] buffer->is_null= &(fbh->is_null); ^ rm -f blib/arch/auto/DBD/mysql/mysql.so /opt/rh/perl516/root/usr/bin/perl myld gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.so \ -L/usr/lib64/mysql -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl \ chmod 755 blib/arch/auto/DBD/mysql/mysql.so /opt/rh/perl516/root/usr/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644 Manifying blib/man3/DBD::README.3pm Manifying blib/man3/Bundle::DBD::mysql.3pm Manifying blib/man3/DBD::mysql.3pm Manifying blib/man3/DBD::mysql::INSTALL.3pm + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.lCDiuo + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 + cd DBD-mysql-4.025 + scl enable perl516 ' make pure_install PERL_INSTALL_ROOT=/builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 ' Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/auto/DBD/mysql/mysql.so Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/Bundle/DBD/mysql.pm Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/DBD/mysql.pm Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/DBD/README.pod Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/DBD/mysql/INSTALL.pod Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/DBD/mysql/GetInfo.pm Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/man/man3/DBD::mysql.3pm Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/man/man3/DBD::README.3pm Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/man/man3/Bundle::DBD::mysql.3pm Installing /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/man/man3/DBD::mysql::INSTALL.3pm + find /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 -type f -name .packlist -exec rm -f '{}' ';' + find /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 -type f -name '*.bs' -empty -exec rm -f '{}' ';' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/DBD-mysql-4.025 extracting debug info from /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/lib64/perl5/vendor_perl/auto/DBD/mysql/mysql.so dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 542 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-scl-compress /opt/rh/perl516/root + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-scl-python-bytecompile /usr/bin/python 1 /opt/rh/perl516/root + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.4iZCmF + umask 022 + cd /builddir/build/BUILD + cd DBD-mysql-4.025 + exit 0 Processing files: perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.DgLAfW + umask 022 + cd /builddir/build/BUILD + cd DBD-mysql-4.025 + DOCDIR=/builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/doc/perl516-perl-DBD-MySQL-4.025 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/doc/perl516-perl-DBD-MySQL-4.025 + cp -pr ChangeLog /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/doc/perl516-perl-DBD-MySQL-4.025 + cp -pr eg /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/doc/perl516-perl-DBD-MySQL-4.025 + cp -pr README.pod /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/doc/perl516-perl-DBD-MySQL-4.025 + cp -pr TODO /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64/opt/rh/perl516/root/usr/share/doc/perl516-perl-DBD-MySQL-4.025 + exit 0 Provides: perl516-perl(Bundle::DBD::mysql) = 4.025 perl516-perl(DBD::mysql) = 4.025 perl516-perl(DBD::mysql::GetInfo) perl516-perl(DBD::mysql::db) perl516-perl(DBD::mysql::dr) perl516-perl(DBD::mysql::st) perl516-perl-DBD-MySQL = 4.025-4.el7.centos perl516-perl-DBD-MySQL(x86-64) = 4.025-4.el7.centos perl516-perl-DBD-mysql = 4.025-4.el7.centos scl-package(perl516) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcrypto.so.10()(64bit) libdl.so.2()(64bit) libm.so.6()(64bit) libmysqlclient.so.18()(64bit) libmysqlclient.so.18(libmysqlclient_18)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libssl.so.10()(64bit) libz.so.1()(64bit) perl516-perl >= 0:5.008_001 perl516-perl(Carp) perl516-perl(DBD::mysql) perl516-perl(DBI) perl516-perl(DBI::Const::GetInfoType) perl516-perl(DynaLoader) perl516-perl(strict) perl516-perl(warnings) rtld(GNU_HASH) Processing files: perl516-perl-DBD-MySQL-debuginfo-4.025-4.el7.centos.x86_64 Provides: scl-package(perl516) perl516-perl-DBD-MySQL-debuginfo = 4.025-4.el7.centos perl516-perl-DBD-MySQL-debuginfo(x86-64) = 4.025-4.el7.centos Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 Wrote: /builddir/build/RPMS/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/perl516-perl-DBD-MySQL-debuginfo-4.025-4.el7.centos.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.E1fSrN + umask 022 + cd /builddir/build/BUILD + cd DBD-mysql-4.025 + /usr/bin/rm -rf /builddir/build/BUILDROOT/perl516-perl-DBD-MySQL-4.025-4.el7.centos.x86_64 + exit 0 error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) error: Macro % has illegal name (%define) Child return code was: 0 LEAVE do -->