>>> umtprd 1.3.6 Extracting gzip -d -c /home/naourr/work/instance-2/dl/umtprd/umtprd-1.3.6.tar.gz | /home/naourr/work/instance-2/output-1/host/bin/tar --strip-components=1 -C /home/naourr/work/instance-2/output-1/build/umtprd-1.3.6 -xf - >>> umtprd 1.3.6 Patching >>> umtprd 1.3.6 Configuring >>> umtprd 1.3.6 Building /usr/bin/make -j4 PATH="/home/naourr/work/instance-2/output-1/host/bin:/home/naourr/work/instance-2/output-1/host/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/naourr/bin:/home/naourr/git/git-wrappers:/home/naourr/.local/bin:/home/naourr/bin" AR="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-ar" AS="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-as" LD="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-ld" NM="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-nm" CC="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-gcc" GCC="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-gcc" CPP="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-cpp" CXX="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-g++" FC="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-gfortran" F77="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-gfortran" RANLIB="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-ranlib" READELF="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-readelf" STRIP="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-strip" OBJCOPY="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-objcopy" OBJDUMP="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/home/naourr/work/instance-2/output-1/host/include" CFLAGS_FOR_BUILD="-O2 -I/home/naourr/work/instance-2/output-1/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/home/naourr/work/instance-2/output-1/host/include" LDFLAGS_FOR_BUILD="-L/home/naourr/work/instance-2/output-1/host/lib -Wl,-rpath,/home/naourr/work/instance-2/output-1/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-as" DEFAULT_LINKER="/home/naourr/work/instance-2/output-1/host/bin/i586-linux-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " LDFLAGS="" FCFLAGS=" -Os " FFLAGS=" -Os " PKG_CONFIG="/home/naourr/work/instance-2/output-1/host/bin/pkg-config" STAGING_DIR="/home/naourr/work/instance-2/output-1/host/i586-buildroot-linux-musl/sysroot" INTLTOOL_PERL=/usr/bin/perl -C /home/naourr/work/instance-2/output-1/build/umtprd-1.3.6 make[1]: Entering directory '/home/naourr/work/instance-2/output-1/build/umtprd-1.3.6' /home/naourr/work/instance-2/output-1/host/bin/i586-linux-gcc -o obj/umtprd.o src/umtprd.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /home/naourr/work/instance-2/output-1/host/bin/i586-linux-gcc -o obj/mtp_support_def.o src/mtp_support_def.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/umtprd.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined #define _LARGEFILE64_SOURCE : note: this is the location of the previous definition /home/naourr/work/instance-2/output-1/host/bin/i586-linux-gcc -o obj/fs_handles_db.o src/fs_handles_db.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /home/naourr/work/instance-2/output-1/host/bin/i586-linux-gcc -o obj/usbstring.o src/usbstring.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/fs_handles_db.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined #define _LARGEFILE64_SOURCE : note: this is the location of the previous definition In file included from src/mtp_support_def.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined #define _LARGEFILE64_SOURCE : note: this is the location of the previous definition In file included from src/usbstring.c:42: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined #define _LARGEFILE64_SOURCE : note: this is the location of the previous definition In file included from src/fs_handles_db.c:37: ./inc/mtp.h:121:2: error: unknown type name 'pthread_t' pthread_t inotify_thread; ^~~~~~~~~ ./inc/mtp.h:122:2: error: unknown type name 'pthread_mutex_t' pthread_mutex_t inotify_mutex; ^~~~~~~~~~~~~~~ ./inc/mtp.h:125:2: error: unknown type name 'pthread_t' pthread_t msgqueue_thread; ^~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/i586-linux-gcc -o obj/usb_gadget.o src/usb_gadget.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 make[1]: *** [Makefile:16: obj/fs_handles_db.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from src/usb_gadget.c:28: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined #define _LARGEFILE64_SOURCE : note: this is the location of the previous definition src/usb_gadget.c: In function 'handle_ep0': src/usb_gadget.c:511:17: error: storage size of 'timeout' isn't known struct timeval timeout; ^~~~~~~ src/usb_gadget.c:513:2: error: unknown type name 'fd_set'; did you mean 'fpos_t'? fd_set read_set; ^~~~~~ fpos_t src/usb_gadget.c:522:3: warning: implicit declaration of function 'FD_ZERO' [-Wimplicit-function-declaration] FD_ZERO(&read_set); ^~~~~~~ src/usb_gadget.c:523:3: warning: implicit declaration of function 'FD_SET'; did you mean 'L_SET'? [-Wimplicit-function-declaration] FD_SET(ctx->usb_device, &read_set); ^~~~~~ L_SET src/usb_gadget.c:527:10: warning: implicit declaration of function 'select'; did you mean 'setenv'? [-Wimplicit-function-declaration] ret = select(ctx->usb_device+1, &read_set, NULL, NULL, &timeout); ^~~~~~ setenv src/usb_gadget.c:511:17: warning: unused variable 'timeout' [-Wunused-variable] struct timeval timeout; ^~~~~~~ src/usb_gadget.c: In function 'handle_ffs_ep0': src/usb_gadget.c:634:17: error: storage size of 'timeout' isn't known struct timeval timeout; ^~~~~~~ src/usb_gadget.c:636:2: error: unknown type name 'fd_set'; did you mean 'fpos_t'? fd_set read_set; ^~~~~~ fpos_t src/usb_gadget.c:634:17: warning: unused variable 'timeout' [-Wunused-variable] struct timeval timeout; ^~~~~~~ src/usb_gadget.c: In function 'init_usb_mtp_gadget': src/usb_gadget.c:888:36: warning: implicit declaration of function 'htole32' [-Wimplicit-function-declaration] usbctx->usb_ffs_config->magic = htole32(FUNCTIONFS_DESCRIPTORS_MAGIC_V2); ^~~~~~~ src/usb_gadget.c:921:19: warning: implicit declaration of function 'htole16' [-Wimplicit-function-declaration] ffs_str.code = htole16(0x0409); // en-us ^~~~~~~ make[1]: *** [Makefile:16: obj/usb_gadget.o] Error 1 make[1]: Leaving directory '/home/naourr/work/instance-2/output-1/build/umtprd-1.3.6' make: *** [package/pkg-generic.mk:269: /home/naourr/work/instance-2/output-1/build/umtprd-1.3.6/.stamp_built] Error 2 make: Leaving directory '/home/naourr/work/instance-2/buildroot'