+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/curlftpfs.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.51MI7x + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf curlftpfs-0.9.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/curlftpfs-0.9.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd curlftpfs-0.9.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (curlftpfs-0.9.2-offset_64_another.patch):' Patch #1 (curlftpfs-0.9.2-offset_64_another.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .offset --fuzz=0 patching file ftpfs.c + echo 'Patch #2 (curlftpfs-0.9.2-create-fix.patch):' Patch #2 (curlftpfs-0.9.2-create-fix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .create-fix --fuzz=0 patching file ftpfs.c Hunk #1 succeeded at 757 (offset -2 lines). Hunk #2 succeeded at 814 (offset -2 lines). + echo 'Patch #3 (curlftpfs-0.9.2-aarch64.patch):' Patch #3 (curlftpfs-0.9.2-aarch64.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .aarch64 --fuzz=0 patching file config.guess patching file config.sub + echo 'Patch #4 (curlftpfs-0.9.2-memleak#591298.patch):' Patch #4 (curlftpfs-0.9.2-memleak#591298.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .memleak --fuzz=0 patching file ftpfs.c Hunk #1 succeeded at 614 (offset -1 lines). + echo 'Patch #5 (curlftpfs-0.9.2-memleak-cached#591299.patch):' Patch #5 (curlftpfs-0.9.2-memleak-cached#591299.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .memleak-cached --fuzz=0 patching file cache.c patching file ftpfs-ls.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.O6KvLL + umask 022 + cd /builddir/build/BUILD + cd curlftpfs-0.9.2 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu 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 ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognize dependent libraries... pass_all 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 dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for riscv64-redhat-linux-gnu-g++... no checking for riscv64-redhat-linux-gnu-c++... no checking for riscv64-redhat-linux-gnu-gpp... no checking for riscv64-redhat-linux-gnu-aCC... no checking for riscv64-redhat-linux-gnu-CC... no checking for riscv64-redhat-linux-gnu-cxx... no checking for riscv64-redhat-linux-gnu-cc++... no checking for riscv64-redhat-linux-gnu-cl.exe... no checking for riscv64-redhat-linux-gnu-FCC... no checking for riscv64-redhat-linux-gnu-KCC... no checking for riscv64-redhat-linux-gnu-RCC... no checking for riscv64-redhat-linux-gnu-xlC_r... no checking for riscv64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking how to run the C++ preprocessor... g++ -E checking for riscv64-redhat-linux-gnu-g77... no checking for riscv64-redhat-linux-gnu-xlf... no checking for riscv64-redhat-linux-gnu-f77... no checking for riscv64-redhat-linux-gnu-frt... no checking for riscv64-redhat-linux-gnu-pgf77... no checking for riscv64-redhat-linux-gnu-cf77... no checking for riscv64-redhat-linux-gnu-fort77... no checking for riscv64-redhat-linux-gnu-fl32... no checking for riscv64-redhat-linux-gnu-af77... no checking for riscv64-redhat-linux-gnu-xlf90... no checking for riscv64-redhat-linux-gnu-f90... no checking for riscv64-redhat-linux-gnu-pgf90... no checking for riscv64-redhat-linux-gnu-pghpf... no checking for riscv64-redhat-linux-gnu-epcf90... no checking for riscv64-redhat-linux-gnu-gfortran... no checking for riscv64-redhat-linux-gnu-g95... no checking for riscv64-redhat-linux-gnu-xlf95... no checking for riscv64-redhat-linux-gnu-f95... no checking for riscv64-redhat-linux-gnu-fort... no checking for riscv64-redhat-linux-gnu-ifort... no checking for riscv64-redhat-linux-gnu-ifc... no checking for riscv64-redhat-linux-gnu-efc... no checking for riscv64-redhat-linux-gnu-pgf95... no checking for riscv64-redhat-linux-gnu-lf95... no checking for riscv64-redhat-linux-gnu-ftn... no checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 1572864 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for riscv64-redhat-linux-gnu-ar... no checking for ar... ar checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) 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 configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking for riscv64-redhat-linux-gnu-pkg-config... /usr/bin/riscv64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for GLIB... yes checking for FUSE... yes checking for gawk... (cached) gawk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 7.58.0 checking for libcurl >= version 7.17.0... yes checking whether libcurl is usable... yes checking for curl_free... yes checking for fuse_opt_parse... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for inline... inline checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking for struct stat.st_blksize... yes checking for struct stat.st_blocks... yes checking for struct stat.st_rdev... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for unistd.h... (cached) yes checking for working chown... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... 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 utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking for alarm... yes checking for working mktime... no checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking types of arguments for select... int,fd_set *,struct timeval * checking for strftime... yes checking whether utime accepts a null argument... yes checking for ftruncate... yes checking for getpass... yes checking for memmove... yes checking for memset... yes checking for mkdir... yes checking for realpath... yes checking for rmdir... yes checking for select... yes checking for strchr... yes checking for strdup... yes checking for strrchr... yes checking for strstr... yes checking for strtoull... yes checking for utime... yes checking for iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); configure: creating ./config.status config.status: creating Makefile config.status: creating compat/Makefile config.status: creating tests/Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2' Making all in compat make[2]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2/compat' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -c -o fuse_opt.lo fuse_opt.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -c fuse_opt.c -fPIC -DPIC -o .libs/fuse_opt.o gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -c fuse_opt.c -o fuse_opt.o >/dev/null 2>&1 /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libcompat.la fuse_opt.lo -lglib-2.0 -lfuse -pthread -lcurl ar cru .libs/libcompat.a .libs/fuse_opt.o ranlib .libs/libcompat.a creating libcompat.la (cd .libs && rm -f libcompat.la && ln -s ../libcompat.la libcompat.la) make[2]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2/compat' Making all in doc make[2]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2/doc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2/doc' make[2]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2' gcc -DHAVE_CONFIG_H -I. -I. -I. -DFUSE_USE_VERSION=26 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -c cache.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DFUSE_USE_VERSION=26 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -c ftpfs-ls.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DFUSE_USE_VERSION=26 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -c charset_utils.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DFUSE_USE_VERSION=26 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -c path_utils.c gcc -DHAVE_CONFIG_H -I. -I. -I. -DFUSE_USE_VERSION=26 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -c ftpfs.c cache.c: In function 'cache_add_attr': cache.c:139:12: warning: variable 'now' set but not used [-Wunused-but-set-variable] time_t now; ^~~ cache.c: In function 'cache_add_dir': cache.c:160:12: warning: variable 'now' set but not used [-Wunused-but-set-variable] time_t now; ^~~ cache.c: In function 'cache_add_link': cache.c:185:12: warning: variable 'now' set but not used [-Wunused-but-set-variable] time_t now; ^~~ path_utils.c: In function 'get_dir_path': path_utils.c:85:30: warning: field precision specifier '.*' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] ret = g_strdup_printf("%s%.*s%s", ~~^~ path_utils.c:87:25: lastdir - path, ~~~~~~~~~~~~~~ rm -f libcurlftpfs.a ar cru libcurlftpfs.a cache.o ftpfs-ls.o charset_utils.o path_utils.o ranlib libcurlftpfs.a ftpfs.c: In function 'cancel_previous_multi': ftpfs.c:201:17: warning: comparison between 'CURLMcode {aka enum }' and 'enum ' [-Wenum-compare] if (curlMCode != CURLE_OK) ^~ In file included from ftpfs.c:30:0: ftpfs.c: In function 'ftpfs_read_chunk': ftpfs.c:333:12: warning: format '%lld' expects argument of type 'long long int', but argument 6 has type 'off_t {aka long int}' [-Wformat=] DEBUG(2, "ftpfs_read_chunk: %s %p %zu %lld %p %p\n", ^ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c:338:12: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t {aka long int}' [-Wformat=] DEBUG(2, "buffer size: %zu %lld\n", fh->buf.len, fh->buf.begin_offset); ^ ~~~~~~~~~ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c:350:16: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t {aka long int}' [-Wformat=] DEBUG(2, "buf.begin_offset=%lld offset=%lld\n", fh->buf.begin_offset, offset); ^ ~~~~~~~~~ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c:350:16: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t {aka long int}' [-Wformat=] DEBUG(2, "buf.begin_offset=%lld offset=%lld\n", fh->buf.begin_offset, offset); ^ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c:367:21: warning: comparison between 'CURLMcode {aka enum }' and 'enum ' [-Wenum-compare] if (curlMCode != CURLE_OK) ^~ In file included from ftpfs.c:30:0: ftpfs.c: In function 'ftpfs_write_thread': ftpfs.c:501:12: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t {aka long int}' [-Wformat=] DEBUG(2, "enter streaming write thread #%d path=%s pos=%lld\n", ++write_thread_ctr, fh->full_path, fh->pos); ^ ~~~~~ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c:499:8: warning: unused variable 'range' [-Wunused-variable] char range[15]; ^~~~~ In file included from ftpfs.c:30:0: ftpfs.c: In function 'ftpfs_open_common': ftpfs.c:739:18: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=] DEBUG(1, "initial read failed size=%d\n", size); ^ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c: In function 'ftpfs_create': ftpfs.c:820:26: warning: passing argument 3 of 'ftpfs_mknod' makes integer from pointer without a cast [-Wint-conversion] ftpfs_mknod(path, mode, NULL); ^~~~ ftpfs.c:662:12: note: expected 'dev_t {aka long unsigned int}' but argument is of type 'void *' static int ftpfs_mknod(const char* path, mode_t mode, dev_t rdev); ^~~~~~~~~~~ In file included from ftpfs.c:30:0: ftpfs.c: In function 'ftpfs_read': ftpfs.c:830:12: warning: format '%lld' expects argument of type 'long long int', but argument 7 has type 'off_t {aka long int}' [-Wformat=] DEBUG(1, "ftpfs_read: %s size=%zu offset=%lld has_write_conn=%d pos=%lld\n", path, size, (long long) offset, fh->write_conn!=0, fh->pos); ^ ~~~~~ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c: In function 'ftpfs_truncate': ftpfs.c:949:12: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t {aka long int}' [-Wformat=] DEBUG(1, "ftpfs_truncate: %s len=%lld\n", path, offset); ^ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c: In function 'ftpfs_ftruncate': ftpfs.c:969:12: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t {aka long int}' [-Wformat=] DEBUG(1, "ftpfs_ftruncate: %s len=%lld\n", path, offset); ^ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c: In function 'ftpfs_write': ftpfs.c:1114:12: warning: format '%lld' expects argument of type 'long long int', but argument 7 has type 'off_t {aka long int}' [-Wformat=] DEBUG(1, "ftpfs_write: %s size=%zu offset=%lld has_write_conn=%d pos=%lld\n", path, size, (long long) offset, fh->write_conn!=0, fh->pos); ^ ~~~~~ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c:1124:14: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t {aka long int}' [-Wformat=] DEBUG(1, "ftpfs_write: starting a streaming write at pos=%lld\n", fh->pos); ^ ~~~~~ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c:1149:14: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t {aka long int}' [-Wformat=] DEBUG(1, "ftpfs_write: resuming a streaming write at pos=%lld\n", fh->pos); ^ ~~~~~ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c: In function 'ftpfs_flush': ftpfs.c:1201:12: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t {aka long int}' [-Wformat=] DEBUG(1, "ftpfs_flush: buf.len=%zu buf.pos=%lld write_conn=%d\n", fh->buf.len, fh->pos, fh->write_conn!=0); ^ ~~~~~ ftpfs.h:80:32: note: in definition of macro 'DEBUG' fprintf(stderr, args);\ ^~~~ ftpfs.c:1218:68: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type '__off64_t {aka long int}' [-Wformat=] fprintf(stderr, "ftpfs_flush: check filesize problem: size=%lld expected=%lld\n", sbuf.st_size, fh->pos); ~~~^ ~~~~~~~~~~~~ %ld ftpfs.c:1218:82: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t {aka long int}' [-Wformat=] fprintf(stderr, "ftpfs_flush: check filesize problem: size=%lld expected=%lld\n", sbuf.st_size, fh->pos); ~~~^ ~~~~~~~ %ld At top level: ftpfs.c:684:12: warning: 'test_exists' defined but not used [-Wunused-function] static int test_exists(const char* path) ^~~~~~~~~~~ ftpfs.c:622:12: warning: 'buffer_file' defined but not used [-Wunused-function] static int buffer_file(struct ftpfs_file *fh) { ^~~~~~~~~~~ /bin/sh ./libtool --tag=CC --mode=link gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o curlftpfs ftpfs.o libcurlftpfs.a -lglib-2.0 -lfuse -pthread -lcurl mkdir .libs gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -W -Wno-sign-compare -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o curlftpfs ftpfs.o -pthread libcurlftpfs.a -lglib-2.0 -lfuse -lcurl make[2]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2' make[1]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.h8PlIm + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64 + cd curlftpfs-0.9.2 + make DESTDIR=/builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64 install Making install in compat make[1]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2/compat' make[2]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2/compat' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2/compat' make[1]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2/compat' Making install in doc make[1]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2/doc' make[2]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2/doc' make[2]: Nothing to be done for 'install-exec-am'. test -z "/usr/share/man/man1" || mkdir -p -- "/builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/share/man/man1" /usr/bin/install -c -m 644 './curlftpfs.1' '/builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/share/man/man1/curlftpfs.1' make[2]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2/doc' make[1]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2/doc' make[1]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2' make[2]: Entering directory '/builddir/build/BUILD/curlftpfs-0.9.2' test -z "/usr/bin" || mkdir -p -- "/builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/bin" /bin/sh ./libtool --mode=install /usr/bin/install -c 'curlftpfs' '/builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/bin/curlftpfs' /usr/bin/install -c curlftpfs /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/bin/curlftpfs make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2' make[1]: Leaving directory '/builddir/build/BUILD/curlftpfs-0.9.2' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: curlftpfs-0.9.2-19.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.09Xp1s + umask 022 + cd /builddir/build/BUILD + cd curlftpfs-0.9.2 + DOCDIR=/builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/share/doc/curlftpfs + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/share/doc/curlftpfs + cp -pr README /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/share/doc/curlftpfs + cp -pr COPYING /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64/usr/share/doc/curlftpfs + exit 0 Provides: curlftpfs = 0.9.2-19.fc28 curlftpfs(riscv-64) = 0.9.2-19.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libcurl.so.4()(64bit) libfuse.so.2()(64bit) libfuse.so.2(FUSE_2.5)(64bit) libfuse.so.2(FUSE_2.6)(64bit) libglib-2.0.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64 Wrote: /builddir/build/SRPMS/curlftpfs-0.9.2-19.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/curlftpfs-0.9.2-19.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.jka0Kr + umask 022 + cd /builddir/build/BUILD + cd curlftpfs-0.9.2 + /usr/bin/rm -rf /builddir/build/BUILDROOT/curlftpfs-0.9.2-19.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff