Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/perl-DBD-MySQL.spec'], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-SCLs_php73-armhfp-cb9d97d127cbc9ba78467d572acd92074e0ef867/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/perl-DBD-MySQL.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/perl-DBD-MySQL-4.018-5.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/perl-DBD-MySQL.spec"], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-SCLs_php73-armhfp-cb9d97d127cbc9ba78467d572acd92074e0ef867/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/perl-DBD-MySQL.spec"] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gajLQD + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf DBD-mysql-4.018 + /usr/bin/gzip -dc /builddir/build/SOURCES/DBD-mysql-4.018.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd DBD-mysql-4.018 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (is_prefix.patch): + echo 'Patch #0 (is_prefix.patch):' + /usr/bin/cat /builddir/build/SOURCES/is_prefix.patch + /usr/bin/patch -p1 -b --suffix .prefix --fuzz=0 patching file mysql.xs + 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.O0pvnl + exit 0 + umask 022 + cd /builddir/build/BUILD + cd DBD-mysql-4.018 + 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 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' --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 I will use the following settings for compiling and testing: cflags (mysql_config ) = -I/usr/include/mysql embedded (mysql_config ) = libs (mysql_config ) = -L/usr/lib/mysql -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (User's choice) = 1 testdb (default ) = test testhost (default ) = testpassword (default ) = testsocket (default ) = testuser (guessed ) = mockbuild To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Checking if your kit is complete... Looks good Using DBI 1.627 (for perl 5.016003 on arm-linux-thread-multi) installed in /usr/lib/perl5/vendor_perl/auto/DBI/ Writing Makefile for DBD::mysql + make -j4 armv7hl-redhat-linux-gnueabi-gcc -c -I/usr/lib/perl5/vendor_perl/auto/DBI -I/usr/include/mysql -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 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -DVERSION=\"4.018\" -DXS_VERSION=\"4.018\" -fPIC "-I/usr/lib/perl5/CORE" dbdimp.c /usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /usr/lib/perl5/vendor_perl/auto/DBI/Driver.xst > mysql.xsi Running Mkbootstrap for DBD::mysql () /usr/bin/perl /usr/share/perl5/vendor_perl/ExtUtils/xsubpp -typemap /usr/share/perl5/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c chmod 644 mysql.bs cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs chmod 644 blib/arch/auto/DBD/mysql/mysql.bs cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.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 225 Warning: duplicate function definition 'rows' detected in mysql.xs, line 650 dbdimp.c: In function 'count_params': dbdimp.c:94:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c = *ptr) ^ dbdimp.c:137:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (c= *ptr) ^ armv7hl-redhat-linux-gnueabi-gcc -c -I/usr/lib/perl5/vendor_perl/auto/DBI -I/usr/include/mysql -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 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -DVERSION=\"4.018\" -DXS_VERSION=\"4.018\" -fPIC "-I/usr/lib/perl5/CORE" mysql.c In file included from dbdimp.h:21:0, from dbdimp.c:20: dbdimp.c: In function 'dbd_discon_all': /usr/lib/perl5/vendor_perl/auto/DBI/DBIXS.h:376:32: warning: unused variable 'imp_xxh' [-Wunused-variable] #define D_imp_xxh(h) D_impdata(imp_xxh, imp_xxh_t, h) ^ /usr/lib/perl5/vendor_perl/auto/DBI/DBIXS.h:372:39: note: in definition of macro 'D_impdata' #define D_impdata(name,type,h) type *name = (type*)(DBIh_COM(h)) ^ dbdimp.c:2172:3: note: in expansion of macro 'D_imp_xxh' D_imp_xxh(drh); ^ dbdimp.c: In function 'mysql_db_FETCH_attrib': dbdimp.c:2447:64: error: 'sv_undef' undeclared (first use in this function) sv_2mortal(newSVpv(clientinfo, strlen(clientinfo))) : &sv_undef; ^ dbdimp.c:2447:64: note: each undeclared identifier is reported only once for each function it appears in dbdimp.c:2403: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:2593:33: warning: unused variable 'limit_flag' [-Wunused-variable] int col_type, prepare_retval, limit_flag=0; ^ dbdimp.c: In function 'mysql_st_internal_execute41': dbdimp.c:3298:19: warning: format '%d' expects argument of type 'int', but argument 3 has type 'my_ulonglong' [-Wformat=] rows); ^ dbdimp.c: In function 'mysql_describe': dbdimp.c:3517:23: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] i, col_type, fbh->length); ^ dbdimp.c:3521:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] fields[i].charsetnr); ^ dbdimp.c:3531:22: warning: assignment from incompatible pointer type [enabled by default] buffer->is_null= &(fbh->is_null); ^ dbdimp.c: In function 'mysql_st_fetch': dbdimp.c:3738:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] fbh->ldata, buffer->is_unsigned); ^ dbdimp.c:3780:7: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'struct MYSQL_RES *' [-Wformat=] PerlIO_printf(DBILOGFP, "\timp_sth->result=%08lx\n",imp_sth->result); ^ dbdimp.c:3782:21: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=] mysql_num_fields(imp_sth->result)); ^ dbdimp.c: In function 'mysql_st_FETCH_attrib': dbdimp.c:4365:11: warning: format '%d' expects argument of type 'int', but argument 3 has type 'my_ulonglong' [-Wformat=] PerlIO_printf(DBILOGFP, "INSERT ID %d\n", imp_sth->insertid); ^ dbdimp.c: In function 'mysql_bind_ph': dbdimp.c:4571:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'IV' [-Wformat=] sql_type, (long) (*buffer)); ^ dbdimp.c:4583:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'IV' [-Wformat=] sql_type, (double)(*buffer)); ^ dbdimp.c:4595:27: warning: format '%d' expects argument of type 'int', but argument 3 has type 'IV' [-Wformat=] " SCALAR type STRING %d, buffertype=%d\n", sql_type, buffer_type); ^ dbdimp.c:4609:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'IV' [-Wformat=] sql_type, buffer_length); ^ dbdimp.c:4630:25: warning: format '%d' expects argument of type 'int', but argument 5 has type 'IV' [-Wformat=] imp_sth->bind[idx].buffer_type, buffer_type, sql_type); ^ make: *** [dbdimp.o] Error 1 make: *** Waiting for unfinished jobs.... mysql.c: In function 'XS_DBD__mysql__db__login': mysql.c:277: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:242:30: 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:588:3: warning: implicit declaration of function 'mysql_st_next_results' [-Wimplicit-function-declaration] if (dbd_st_more_results(sth, imp_sth)) ^ mysql.xs:587:7: warning: unused variable 'retval' [-Wunused-variable] int retval; ^ mysql.xs: In function 'XS_DBD__mysql__GetInfo_dbd_mysql_get_info': mysql.xs:741:4: warning: format '%i' expects argument of type 'int', but argument 2 has type 'struct SV *' [-Wformat=] croak("Unknown SQL Info type: %i",dbh); ^ RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.O0pvnl (%build) Bad exit status from /var/tmp/rpm-tmp.O0pvnl (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 89, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 582, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/perl-DBD-MySQL.spec