>>> umtprd 1.3.6 Extracting gzip -d -c /tmp/instance-1/dl/umtprd/umtprd-1.3.6.tar.gz | /tmp/instance-1/output-1/host/bin/tar --strip-components=1 -C /tmp/instance-1/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 -j32 PATH="/tmp/instance-1/output-1/host/bin:/tmp/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" AR="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-ar" AS="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-as" LD="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-ld" NM="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-nm" CC="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc" GCC="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc" CPP="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-cpp" CXX="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-g++" FC="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gfortran" F77="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gfortran" RANLIB="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-ranlib" READELF="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-readelf" STRIP="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-strip" OBJCOPY="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-objcopy" OBJDUMP="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-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/tmp/instance-1/output-1/host/include" CFLAGS_FOR_BUILD="-O2 -I/tmp/instance-1/output-1/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/tmp/instance-1/output-1/host/include" LDFLAGS_FOR_BUILD="-L/tmp/instance-1/output-1/host/lib -Wl,-rpath,/tmp/instance-1/output-1/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-as" DEFAULT_LINKER="/tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-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="/tmp/instance-1/output-1/host/bin/pkg-config" STAGING_DIR="/tmp/instance-1/output-1/host/riscv64-buildroot-linux-musl/sysroot" INTLTOOL_PERL=/usr/bin/perl -C /tmp/instance-1/output-1/build/umtprd-1.3.6 make[1]: Entering directory '/tmp/instance-1/output-1/build/umtprd-1.3.6' /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-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 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-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 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-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 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-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 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-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 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_cfg.o src/mtp_cfg.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/logs_out.o src/logs_out.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_constant_strings.o src/mtp_constant_strings.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_helpers.o src/mtp_helpers.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_properties.o src/mtp_properties.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_datasets.o src/mtp_datasets.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp.o src/mtp.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/msgqueue.o src/msgqueue.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/inotify.o src/inotify.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getdevicepropvalue.o src/mtp_operations/mtp_op_getdevicepropvalue.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_endeditobject.o src/mtp_operations/mtp_op_endeditobject.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getobjectpropssupported.o src/mtp_operations/mtp_op_getobjectpropssupported.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_sendobject.o src/mtp_operations/mtp_op_sendobject.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getobjectreferences.o src/mtp_operations/mtp_op_getobjectreferences.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getobjecthandles.o src/mtp_operations/mtp_op_getobjecthandles.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getdeviceinfos.o src/mtp_operations/mtp_op_getdeviceinfos.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getpartialobject.o src/mtp_operations/mtp_op_getpartialobject.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_begineditobject.o src/mtp_operations/mtp_op_begineditobject.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 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getobjectpropvalue.o src/mtp_operations/mtp_op_getobjectpropvalue.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getstorageids.o src/mtp_operations/mtp_op_getstorageids.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/usbstring.c:42: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/umtprd.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #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 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/logs_out.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getdevicepropdesc.o src/mtp_operations/mtp_op_getdevicepropdesc.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/mtp_cfg.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/usb_gadget.c:28: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_setobjectpropvalue.o src/mtp_operations/mtp_op_setobjectpropvalue.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/mtp_constant_strings.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_datasets.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_properties.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_endeditobject.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getobjectproplist.o src/mtp_operations/mtp_op_getobjectproplist.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/msgqueue.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/inotify.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getobjectpropdesc.o src/mtp_operations/mtp_op_getobjectpropdesc.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/mtp_helpers.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_getobjectpropssupported.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_getdevicepropvalue.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_cfg.c:33: ./inc/mtp.h:121:2: error: unknown type name 'pthread_t' 121 | pthread_t inotify_thread; | ^~~~~~~~~ ./inc/mtp.h:122:2: error: unknown type name 'pthread_mutex_t' 122 | pthread_mutex_t inotify_mutex; | ^~~~~~~~~~~~~~~ ./inc/mtp.h:125:2: error: unknown type name 'pthread_t' 125 | pthread_t msgqueue_thread; | ^~~~~~~~~ /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_truncateobject.o src/mtp_operations/mtp_op_truncateobject.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/mtp_operations/mtp_op_sendobject.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_begineditobject.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_closesession.o src/mtp_operations/mtp_op_closesession.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/mtp_operations/mtp_op_getobjectpropvalue.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_getpartialobject.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_getdeviceinfos.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition /tmp/instance-1/output-1/host/bin/riscv64-buildroot-linux-musl-gcc -o obj/mtp_op_getobject.o src/mtp_operations/mtp_op_getobject.c -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I./inc -lpthread -Wall -O3 In file included from src/mtp_operations/mtp_op_getobjectreferences.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_getobjecthandles.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #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' 121 | pthread_t inotify_thread; | ^~~~~~~~~ ./inc/mtp.h:122:2: error: unknown type name 'pthread_mutex_t' 122 | pthread_mutex_t inotify_mutex; | ^~~~~~~~~~~~~~~ In file included from src/mtp_operations/mtp_op_getstorageids.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | ./inc/mtp.h:125:2: error: unknown type name 'pthread_t' 125 | pthread_t msgqueue_thread; | ^~~~~~~~~ : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_getdevicepropdesc.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_getobjectproplist.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_setobjectpropvalue.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_truncateobject.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition make[1]: *** [Makefile:16: obj/mtp_cfg.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from src/mtp_operations/mtp_op_closesession.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition In file included from src/mtp_operations/mtp_op_getobjectpropdesc.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #define _LARGEFILE64_SOURCE | : note: this is the location of the previous definition make[1]: *** [Makefile:16: obj/fs_handles_db.o] Error 1 In file included from src/mtp_operations/mtp_op_getobject.c:26: ./inc/buildconf.h:1: warning: "_LARGEFILE64_SOURCE" redefined 1 | #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 511 | struct timeval timeout; | ^~~~~~~ src/usb_gadget.c:513:2: error: unknown type name 'fd_set' 513 | fd_set read_set; | ^~~~~~ src/usb_gadget.c:522:3: warning: implicit declaration of function 'FD_ZERO' [-Wimplicit-function-declaration] 522 | 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] 523 | FD_SET(ctx->usb_device, &read_set); | ^~~~~~ | L_SET src/usb_gadget.c:527:10: warning: implicit declaration of function 'select' [-Wimplicit-function-declaration] 527 | ret = select(ctx->usb_device+1, &read_set, NULL, NULL, &timeout); | ^~~~~~ src/usb_gadget.c:511:17: warning: unused variable 'timeout' [-Wunused-variable] 511 | 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 634 | struct timeval timeout; | ^~~~~~~ src/usb_gadget.c:636:2: error: unknown type name 'fd_set' 636 | fd_set read_set; | ^~~~~~ src/usb_gadget.c:634:17: warning: unused variable 'timeout' [-Wunused-variable] 634 | 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] 888 | 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] 921 | ffs_str.code = htole16(0x0409); // en-us | ^~~~~~~ src/inotify.c: In function 'get_file_info.part.0.constprop': src/inotify.c:74:6: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 74 | strncpy( fileinfo->filename, event->name, 256 ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:16: obj/usb_gadget.o] Error 1 src/msgqueue.c: In function 'send_message_queue': src/msgqueue.c:214:3: warning: 'strncpy' specified bound 100 equals destination size [-Wstringop-truncation] 214 | strncpy(msg_buf.mesg_text,message,sizeof(msg_buf.mesg_text)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/tmp/instance-1/output-1/build/umtprd-1.3.6' make: *** [package/pkg-generic.mk:269: /tmp/instance-1/output-1/build/umtprd-1.3.6/.stamp_built] Error 2 make: Leaving directory '/tmp/instance-1/buildroot'