D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 warning: line 37: It's not recommended to have unversioned Obsoletes: Obsoletes: perl-Mysql sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/perl-DBD-mysql-4.52.0-2.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.H19UL0 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + test -d /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.lQaXDE + umask 022 + cd /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + rm -rf DBD-mysql-4.052 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/DBD-mysql-4.052.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd DBD-mysql-4.052 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.aazcaa + umask 022 + cd /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + cd DBD-mysql-4.052 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + RPM_OPT_FLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor PLEASE NOTE: For 'make test' to run properly, you must ensure that the database user 'pterjan' 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 'pterjan'@'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 -I/usr/include/mysql/mysql embedded (mysql_config) = ldflags (guessed ) = libs (mysql_config) = -L/usr/lib64/ -lmariadb mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 nossl (default ) = 0 testdb (default ) = test testhost (default ) = testpassword (default ) = testport (default ) = testsocket (default ) = testuser (guessed ) = pterjan 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 Using DBI 1.645 (for perl 5.040000 on x86_64-linux-thread-multi) installed in /usr/lib64/perl5/vendor_perl/auto/DBI/ Generating a Unix-style Makefile Writing Makefile for DBD::mysql Writing MYMETA.yml and MYMETA.json + /usr/bin/make -O -j48 V=1 VERBOSE=1 'OPTIMIZE=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' "/usr/bin/perl5.40.0" -p -e "s/~DRIVER~/mysql/g" /usr/lib64/perl5/vendor_perl/auto/DBI/Driver.xst > mysql.xsi Running Mkbootstrap for mysql () chmod 644 "mysql.bs" "/usr/bin/perl5.40.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644 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/DBD/mysql.pm blib/lib/DBD/mysql.pm cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm gcc -c -I/usr/lib64/perl5/vendor_perl/auto/DBI -I/usr/include/mysql -I/usr/include/mysql/mysql -DDBD_MYSQL_WITH_SSL -g -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"4.052\" -DXS_VERSION=\"4.052\" -fPIC "-I/usr/lib64/perl5/CORE" socket.c "/usr/bin/perl5.40.0" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' mysql.xs > mysql.xsc Warning: duplicate function definition 'do' detected in mysql.xs, line 247 Warning: duplicate function definition 'rows' detected in mysql.xs, line 683 mv mysql.xsc mysql.c gcc -c -I/usr/lib64/perl5/vendor_perl/auto/DBI -I/usr/include/mysql -I/usr/include/mysql/mysql -DDBD_MYSQL_WITH_SSL -g -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"4.052\" -DXS_VERSION=\"4.052\" -fPIC "-I/usr/lib64/perl5/CORE" mysql.c gcc -c -I/usr/lib64/perl5/vendor_perl/auto/DBI -I/usr/include/mysql -I/usr/include/mysql/mysql -DDBD_MYSQL_WITH_SSL -g -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"4.052\" -DXS_VERSION=\"4.052\" -fPIC "-I/usr/lib64/perl5/CORE" dbdimp.c rm -f blib/arch/auto/DBD/mysql/mysql.so gcc -lpthread -shared -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -fstack-protector-strong dbdimp.o mysql.o socket.o -o blib/arch/auto/DBD/mysql/mysql.so \ -L/usr/lib64/ -lmariadb -lperl \ chmod 755 blib/arch/auto/DBD/mysql/mysql.so Manifying 3 pod documents + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.OjhZvF + umask 022 + cd /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build + mkdir /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT + cd DBD-mysql-4.052 + '[' 1 -eq 1 ']' + /usr/bin/make install DESTDIR=/home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT 'INSTALL=/usr/bin/install -p' "/usr/bin/perl5.40.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644 Manifying 3 pod documents Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/auto/DBD/mysql/mysql.so Installing /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/DBD/mysql.pm Installing /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/DBD/mysql/INSTALL.pod Installing /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/DBD/mysql/GetInfo.pm Installing /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/Bundle/DBD/mysql.pm Installing /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/share/man/man3/DBD::mysql::INSTALL.3pm Installing /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/share/man/man3/Bundle::DBD::mysql.3pm Installing /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/share/man/man3/DBD::mysql.3pm Appending installation info to /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/lib64/perl5/perllocal.pod + /usr/bin/find-debuginfo -j48 --strict-build-id -m -i --build-id-seed 4.52.0-2.mga10 --unique-debug-suffix -4.52.0-2.mga10.x86_64 --unique-debug-src-base perl-DBD-mysql-4.52.0-2.mga10.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/DBD-mysql-4.052 find-debuginfo: starting Extracting debug info from 1 files objcopy: unable to copy file '/home/pterjan/rpmbuild/BUILD/perl-DBD-mysql-4.52.0-build/BUILDROOT/usr/lib64/perl5/vendor_perl/auto/DBD/mysql/mysql.so'; reason: Permission denied *** ERROR:: GDB exited with exit status 1 during index generation error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.OjhZvF (%install) RPM build warnings: line 37: It's not recommended to have unversioned Obsoletes: Obsoletes: perl-Mysql RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.OjhZvF (%install) I: [iurt_root_command] ERROR: chroot