Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libmtp.spec'], chrootPath='/var/lib/mock/dist-oc9-build-42378-14591/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libmtp.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/libmtp-1.1.19-3.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libmtp.spec'], chrootPath='/var/lib/mock/dist-oc9-build-42378-14591/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libmtp.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4jAZMX + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libmtp-1.1.19 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/libmtp-1.1.19.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libmtp-1.1.19 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/0001-doc-Don-t-document-internal-endian-macros.patch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PXFJm7 + umask 022 + cd /builddir/build/BUILD + cd libmtp-1.1.19 + yes '' + ./autogen.sh Removing libtool cruft Running libtoolize libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' Removing aclocal cruft Running aclocal -I ./m4 Removing autoheader cruft Running autoheader Removing automake cruft Running automake configure.ac:10: installing './compile' configure.ac:13: installing './config.guess' configure.ac:13: installing './config.sub' configure.ac:5: installing './install-sh' configure.ac:5: installing './missing' examples/Makefile.am: installing './depcomp' Removing autoconf cruft Running autoconf configure.ac:7: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.ac:7: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:3075: AM_CONFIG_HEADER is expanded from... configure.ac:7: the top level configure.ac:13: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. configure.ac:13: You should run autoupdate. m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... configure.ac:13: the top level configure.ac:13: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you configure.ac:13: put the 'win32-dll' option into LT_INIT's first parameter. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... m4/ltoptions.m4:148: AC_LIBTOOL_WIN32_DLL is expanded from... configure.ac:13: the top level configure.ac:14: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:14: You should run autoupdate. m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:14: the top level configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete. configure.ac:15: You should run autoupdate. ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/iconv.m4:20: AM_ICONV_LINK is expanded from... m4/iconv.m4:169: AM_ICONV is expanded from... configure.ac:15: the top level configure.ac:15: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:15: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/iconv.m4:20: AM_ICONV_LINK is expanded from... m4/iconv.m4:169: AM_ICONV is expanded from... configure.ac:15: the top level configure.ac:15: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:15: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... m4/iconv.m4:169: AM_ICONV is expanded from... configure.ac:15: the top level configure.ac:20: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:20: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:20: the top level configure.ac:34: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:34: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:34: the top level configure.ac:42: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:42: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:42: the top level configure.ac:50: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:50: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:50: the top level configure.ac:86: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:86: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... configure.ac:86: the top level configure.ac:147: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:147: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:147: the top level configure.ac:176: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:176: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:176: the top level configure.ac:177: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:177: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:177: the top level configure.ac:186: warning: The macro `AC_TYPE_SIGNAL' is obsolete. configure.ac:186: You should run autoupdate. ./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from... configure.ac:186: the top level configure.ac:188: warning: The macro `AC_STRUCT_ST_BLKSIZE' is obsolete. configure.ac:188: You should run autoupdate. ./lib/autoconf/types.m4:1000: AC_STRUCT_ST_BLKSIZE is expanded from... configure.ac:188: the top level /usr/bin/which: no wget in (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin) Could not autoupdate config.sub and config.guess autogen.sh finished! Now going to run ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking whether ln -s works... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for file... file checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/time.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for ld... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking for shared library run path origin... done checking 32-bit host C ABI... no checking how to run the C preprocessor... gcc -E checking for ELF binary format... yes checking for the common suffixes of directories in the library search path... lib,lib,lib64 checking for iconv... yes checking for working iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for doxygen... true configure: API documentation will be generated using Doxygen checking if the host operating system is Darwin... no checking if the host operating system is Linux... yes checking For MinGW32... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBUSB... yes checking for libgcrypt... checking for gcry_check_version in -lgcrypt... yes configure: MTPZ functionality enabled configure: *** using libusb 1.0.26 *** checking for egrep... (cached) /usr/bin/grep -E checking for ctype.h... yes checking for errno.h... yes checking for fcntl.h... yes checking for getopt.h... yes checking for libgen.h... yes checking for limits.h... yes checking for stdio.h... (cached) yes checking for string.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for langinfo.h... yes checking for locale.h... yes checking for arpa/inet.h... yes checking for byteswap.h... yes checking for sys/uio.h... yes checking for an ANSI C-conforming const... yes checking for off_t... yes checking return type of signal handlers... void checking for size_t... yes checking for struct stat.st_blksize... yes checking for working memcmp... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for basename... yes checking for memset... yes checking for select... yes checking for strdup... yes checking for strerror... yes checking for strndup... yes checking for strrchr... yes checking for strtoul... yes checking for usleep... yes checking for mkstemp... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for uint8_t in stdint.h... yes checking whether byte ordering is bigendian... no checking for le32toh in machine/endian.h... no checking for ntohl in arpa/inet.h... yes checking for swap32 in machine/endian.h... no checking for bswap_32 in byteswap.h... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating src/libmtp.h config.status: creating doc/Doxyfile config.status: creating Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating examples/Makefile config.status: creating util/Makefile config.status: creating libmtp.sh config.status: creating hotplug.sh config.status: creating libmtp.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g ' + export FFLAGS + FCFLAGS='-O2 -g ' + export FCFLAGS + LDFLAGS= + export LDFLAGS + ./configure --host=x86_64-opencloudos-linux-gnu --build=x86_64-opencloudos-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static --with-udev-rules=69-libmtp.rules configure: loading site script /usr/share/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-opencloudos-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking whether ln -s works... yes checking build system type... x86_64-opencloudos-linux-gnu checking host system type... x86_64-opencloudos-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-opencloudos-linux-gnu file names to x86_64-opencloudos-linux-gnu format... func_convert_file_noop checking how to convert x86_64-opencloudos-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-opencloudos-linux-gnu-file... no checking for file... file checking for x86_64-opencloudos-linux-gnu-objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-opencloudos-linux-gnu-dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for x86_64-opencloudos-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-opencloudos-linux-gnu-strip... no checking for strip... strip checking for x86_64-opencloudos-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-opencloudos-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/time.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for ld... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking for shared library run path origin... done checking 32-bit host C ABI... no checking how to run the C preprocessor... gcc -E checking for ELF binary format... yes checking for the common suffixes of directories in the library search path... lib,lib,lib64 checking for iconv... yes checking for working iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for doxygen... true configure: API documentation will be generated using Doxygen checking if the host operating system is Darwin... no checking if the host operating system is Linux... yes checking For MinGW32... no checking for x86_64-opencloudos-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBUSB... yes checking for libgcrypt... checking for gcry_check_version in -lgcrypt... yes configure: MTPZ functionality enabled configure: *** using libusb 1.0.26 *** checking for egrep... (cached) /usr/bin/grep -E checking for ctype.h... yes checking for errno.h... yes checking for fcntl.h... yes checking for getopt.h... yes checking for libgen.h... yes checking for limits.h... yes checking for stdio.h... (cached) yes checking for string.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for langinfo.h... yes checking for locale.h... yes checking for arpa/inet.h... yes checking for byteswap.h... yes checking for sys/uio.h... yes checking for an ANSI C-conforming const... yes checking for off_t... yes checking return type of signal handlers... void checking for size_t... yes checking for struct stat.st_blksize... yes checking for working memcmp... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for basename... yes checking for memset... yes checking for select... yes checking for strdup... yes checking for strerror... yes checking for strndup... yes checking for strrchr... yes checking for strtoul... yes checking for usleep... yes checking for mkstemp... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for uint8_t in stdint.h... yes checking whether byte ordering is bigendian... no checking for le32toh in machine/endian.h... no checking for ntohl in arpa/inet.h... yes checking for swap32 in machine/endian.h... no checking for bswap_32 in byteswap.h... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating src/libmtp.h config.status: creating doc/Doxyfile config.status: creating Makefile config.status: creating doc/Makefile config.status: creating src/Makefile config.status: creating examples/Makefile config.status: creating util/Makefile config.status: creating libmtp.sh config.status: creating hotplug.sh config.status: creating libmtp.pc config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j32 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/builddir/build/BUILD/libmtp-1.1.19/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c -o libmtp_la-util.lo `test -f 'util.c' || echo './'`util.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c util.c -fPIC -DPIC -o .libs/libmtp_la-util.o make[2]: Leaving directory '/builddir/build/BUILD/libmtp-1.1.19/src' make[2]: Entering directory '/builddir/build/BUILD/libmtp-1.1.19/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c -o libmtp_la-unicode.lo `test -f 'unicode.c' || echo './'`unicode.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c unicode.c -fPIC -DPIC -o .libs/libmtp_la-unicode.o make[2]: Leaving directory '/builddir/build/BUILD/libmtp-1.1.19/src' make[2]: Entering directory '/builddir/build/BUILD/libmtp-1.1.19/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c -o libmtp_la-playlist-spl.lo `test -f 'playlist-spl.c' || echo './'`playlist-spl.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c playlist-spl.c -fPIC -DPIC -o .libs/libmtp_la-playlist-spl.o make[2]: Leaving directory '/builddir/build/BUILD/libmtp-1.1.19/src' make[2]: Entering directory '/builddir/build/BUILD/libmtp-1.1.19/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c -o libmtp_la-mtpz.lo `test -f 'mtpz.c' || echo './'`mtpz.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c mtpz.c -fPIC -DPIC -o .libs/libmtp_la-mtpz.o make[2]: Leaving directory '/builddir/build/BUILD/libmtp-1.1.19/src' mtpz.c: In function 'mtpz_loaddata': mtpz.c:151:29: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 151 | MTPZ_ENCRYPTION_KEY = hex_to_bytes(hexenckey, strlen(hexenckey)); | ^ make[2]: Entering directory '/builddir/build/BUILD/libmtp-1.1.19/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c -o libmtp_la-libusb1-glue.lo `test -f 'libusb1-glue.c' || echo './'`libusb1-glue.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c libusb1-glue.c -fPIC -DPIC -o .libs/libmtp_la-libusb1-glue.o make[2]: Leaving directory '/builddir/build/BUILD/libmtp-1.1.19/src' In function 'ptp_exit_send_memory_handler', inlined from 'ptp_usb_senddata' at libusb1-glue.c:1347:2: libusb1-glue.c:1237:31: warning: 'memhandler.priv' may be used uninitialized [-Wmaybe-uninitialized] 1237 | PTPMemHandlerPrivate* priv = (PTPMemHandlerPrivate*)handler->priv; | ^~~~ libusb1-glue.c: In function 'ptp_usb_senddata': libusb1-glue.c:1311:24: note: 'memhandler' declared here 1311 | PTPDataHandler memhandler; | ^~~~~~~~~~ In function 'ptp_exit_send_memory_handler', inlined from 'ptp_usb_sendreq' at libusb1-glue.c:1288:2: libusb1-glue.c:1237:31: warning: 'memhandler.priv' may be used uninitialized [-Wmaybe-uninitialized] 1237 | PTPMemHandlerPrivate* priv = (PTPMemHandlerPrivate*)handler->priv; | ^~~~ libusb1-glue.c: In function 'ptp_usb_sendreq': libusb1-glue.c:1262:25: note: 'memhandler' declared here 1262 | PTPDataHandler memhandler; | ^~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libmtp-1.1.19/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c -o libmtp_la-libmtp.lo `test -f 'libmtp.c' || echo './'`libmtp.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c libmtp.c -fPIC -DPIC -o .libs/libmtp_la-libmtp.o make[2]: Leaving directory '/builddir/build/BUILD/libmtp-1.1.19/src' make[2]: Entering directory '/builddir/build/BUILD/libmtp-1.1.19/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c -o libmtp_la-ptp.lo `test -f 'ptp.c' || echo './'`ptp.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -c ptp.c -fPIC -DPIC -o .libs/libmtp_la-ptp.o make[2]: Leaving directory '/builddir/build/BUILD/libmtp-1.1.19/src' In file included from ptp.c:125: ptp-pack.c: In function 'ptp_unpack_PTPTIME.part.0': ptp-pack.c:724:9: warning: 'strncpy' specified bound 40 equals destination size [-Wstringop-truncation] 724 | strncpy (ptpdate, str, sizeof(ptpdate)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ptp.c: In function 'ptp_nikon_getwifiprofilelist': ptp.c:4604:17: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 4604 | strncpy(params->wifi_profiles[profn].creation_date, buffer, sizeof(params->wifi_profiles[profn].creation_date)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ptp.c:4612:17: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 4612 | strncpy(params->wifi_profiles[profn].lastusage_date, buffer, sizeof(params->wifi_profiles[profn].lastusage_date)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ptp.c: In function 'ptp_nikon_writewifiprofile': ptp.c:4699:9: warning: 'strncpy' output may be truncated copying 16 bytes from a string of length 16 [-Wstringop-truncation] 4699 | strncpy((char*)&buffer[0x05], profile->profile_name, 16); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ptp.c:4722:9: warning: 'strncpy' output may be truncated copying 32 bytes from a string of length 32 [-Wstringop-truncation] 4722 | strncpy((char*)&buffer[0x4A], profile->essid, 32); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ptp.c:4722:9: warning: 'strncpy' output may be truncated copying 32 bytes from a string of length 32 [-Wstringop-truncation] make[2]: Entering directory '/builddir/build/BUILD/libmtp-1.1.19/src' /bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/include/libusb-1.0 -O2 -g -Wall -Wmissing-prototypes -no-undefined -export-symbols ./libmtp.sym -version-info 13:0:4 -o libmtp.la -rpath /usr/lib64 libmtp_la-libmtp.lo libmtp_la-unicode.lo libmtp_la-util.lo libmtp_la-playlist-spl.lo libmtp_la-ptp.lo libmtp_la-mtpz.lo libmtp_la-libusb1-glue.lo -lusb-1.0 -lgcrypt libtool: link: echo "{ global:" > .libs/libmtp.ver libtool: link: cat ./libmtp.sym | /usr/bin/sed -e "s/\(.*\)/\1;/" >> .libs/libmtp.ver libtool: link: echo "local: *; };" >> .libs/libmtp.ver libtool: link: gcc -shared -fPIC -DPIC .libs/libmtp_la-libmtp.o .libs/libmtp_la-unicode.o .libs/libmtp_la-util.o .libs/libmtp_la-playlist-spl.o .libs/libmtp_la-ptp.o .libs/libmtp_la-mtpz.o .libs/libmtp_la-libusb1-glue.o -lusb-1.0 -lgcrypt -Wl,-z,now -specs=/usr/lib/rpm/TencentOS/TencentOS-hardened-ld -O2 -g -Wl,-soname -Wl,libmtp.so.9 -Wl,-version-script -Wl,.libs/libmtp.ver -o .libs/libmtp.so.9.4.0 make[2]: Leaving directory '/builddir/build/BUILD/libmtp-1.1.19/src' gcc: fatal error: cannot read spec file '/usr/lib/rpm/TencentOS/TencentOS-hardened-ld': No such file or directory compilation terminated. make[2]: *** [Makefile:489: libmtp.la] Error 1 make[1]: *** [Makefile:530: all-recursive] Error 1 make: *** [Makefile:393: all] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.PXFJm7 (%build) Bad exit status from /var/tmp/rpm-tmp.PXFJm7 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libmtp.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libmtp.spec