* Package: media-libs/libmtp-1.1.6-r1 * Repository: gentoo * Maintainer: sound@gentoo.org * USE: abi_x86_64 amd64 crypt elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox * Applying libmtp-1.1.6-fbsdlibusb.patch ... [ ok ] checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-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 we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of x86_64-pc-linux-gnu-gcc... none 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... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/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 whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes 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/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r checking for x86_64-pc-linux-gnu-objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-pc-linux-gnu-dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar checking for archiver @FILE support... @ checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok checking for sysroot... no checking for x86_64-pc-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/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 used by GCC... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64 checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes checking for shared library run path origin... done 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); configure: API documentation will not be generated 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-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-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.19 *** checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for string.h... (cached) yes checking for sys/stat.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking byteswap.h usability... yes checking byteswap.h presence... yes checking for byteswap.h... yes checking sys/uio.h usability... yes checking sys/uio.h presence... 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 stdlib.h... (cached) yes checking for GNU libc compatible malloc... 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 make all-recursive make[1]: Entering directory '/var/tmp/portage/media-libs/libmtp-1.1.6-r1/work/libmtp-1.1.6' Making all in src make[2]: Entering directory '/var/tmp/portage/media-libs/libmtp-1.1.6-r1/work/libmtp-1.1.6/src' /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c -o libmtp_la-libmtp.lo `test -f 'libmtp.c' || echo './'`libmtp.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c -o libmtp_la-unicode.lo `test -f 'unicode.c' || echo './'`unicode.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c -o libmtp_la-util.lo `test -f 'util.c' || echo './'`util.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c -o libmtp_la-playlist-spl.lo `test -f 'playlist-spl.c' || echo './'`playlist-spl.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c -o libmtp_la-ptp.lo `test -f 'ptp.c' || echo './'`ptp.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c -o libmtp_la-mtpz.lo `test -f 'mtpz.c' || echo './'`mtpz.c /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c -o libmtp_la-libusb1-glue.lo `test -f 'libusb1-glue.c' || echo './'`libusb1-glue.c libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c util.c -fPIC -DPIC -o .libs/libmtp_la-util.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c libmtp.c -fPIC -DPIC -o .libs/libmtp_la-libmtp.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c playlist-spl.c -fPIC -DPIC -o .libs/libmtp_la-playlist-spl.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c unicode.c -fPIC -DPIC -o .libs/libmtp_la-unicode.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c libusb1-glue.c -fPIC -DPIC -o .libs/libmtp_la-libusb1-glue.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c ptp.c -fPIC -DPIC -o .libs/libmtp_la-ptp.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libusb-1.0 -march=native -Wformat -Werror=format-security -g0 -O2 -Wall -Wmissing-prototypes -c mtpz.c -fPIC -DPIC -o .libs/libmtp_la-mtpz.o In file included from /usr/include/time.h:27:0, from ptp.h:27, from ptp.c:27: /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^ In file included from /usr/include/string.h:634:0, from util.c:36: util.h:29:7: error: expected identifier or '(' before '__extension__' char *strndup (const char *s, size_t n); ^ util.c:111:7: error: expected identifier or '(' before '__extension__' char *strndup (const char *s, size_t n) ^ Makefile:450: recipe for target 'libmtp_la-util.lo' failed make[2]: *** [libmtp_la-util.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... ptp.c: In function 'ptp_nikon_writewifiprofile': ptp.c:2614:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *((unsigned int*)&buffer[0x3A]) = profile->ip_address; /* Do not reverse bytes */ ^ ptp.c:2616:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *((unsigned int*)&buffer[0x3F]) = profile->gateway_address; /* Do not reverse bytes */ ^ mtpz.c: In function 'mtpz_loaddata': mtpz.c:146:20: warning: pointer targets in initialization differ in signedness [-Wpointer-sign] char *hexenckey = (unsigned char *)fgets_strip((char *)malloc(35), 35, fdata); ^ mtpz.c:152:22: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] MTPZ_ENCRYPTION_KEY = hex_to_bytes(hexenckey, strlen(hexenckey)); ^ mtpz.c: In function 'mtpz_rsa_init': mtpz.c:259:23: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(rsa, 0, sizeof(rsa)); ^ libmtp.c: In function 'LIBMTP_Read_Event': libmtp.c:2159:12: warning: variable 'param3' set but not used [-Wunused-but-set-variable] uint32_t param3; ^ libmtp.c:2158:12: warning: variable 'param2' set but not used [-Wunused-but-set-variable] uint32_t param2; ^ libmtp.c:2156:12: warning: variable 'transaction_id' set but not used [-Wunused-but-set-variable] uint32_t transaction_id; ^ make[2]: Leaving directory '/var/tmp/portage/media-libs/libmtp-1.1.6-r1/work/libmtp-1.1.6/src' Makefile:429: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-libs/libmtp-1.1.6-r1/work/libmtp-1.1.6' Makefile:312: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: media-libs/libmtp-1.1.6-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-libs/libmtp-1.1.6-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-libs/libmtp-1.1.6-r1::gentoo'`. * The complete build log is located at '/var/log/log/build/media-libs/libmtp-1.1.6-r1:20150323-182838.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/media-libs/libmtp-1.1.6-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-libs/libmtp-1.1.6-r1/temp/environment'. * Working directory: '/var/tmp/portage/media-libs/libmtp-1.1.6-r1/work/libmtp-1.1.6' * S: '/var/tmp/portage/media-libs/libmtp-1.1.6-r1/work/libmtp-1.1.6'