D: [iurt_root_command] chroot warning: %make is deprecated, use %make_build instead Installing /home/iurt/rpmbuild/SRPMS/afpfs-ng-0.8.1-12.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.hb3gsn + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf afpfs-ng-0.8.1 + /usr/bin/bzip2 -dc /home/iurt/rpmbuild/SOURCES/afpfs-ng-0.8.1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd afpfs-ng-0.8.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/build-error-fixes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/header-path-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/include-headers-fix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.sjznWl + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd afpfs-ng-0.8.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -if libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:11: installing './compile' configure.ac:6: installing './missing' cmdline/Makefile.am: installing './depcomp' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe 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-mageia-linux-gnu-gcc... x86_64-mageia-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-mageia-linux-gnu-gcc accepts -g... yes checking for x86_64-mageia-linux-gnu-gcc option to accept ISO C89... none needed checking whether x86_64-mageia-linux-gnu-gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of x86_64-mageia-linux-gnu-gcc... none checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-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 x86_64-mageia-linux-gnu-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/x86_64-mageia-linux-gnu-nm -p checking the name lister (/usr/bin/x86_64-mageia-linux-gnu-nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop checking how to convert x86_64-mageia-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-mageia-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-mageia-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-mageia-linux-gnu-ar... x86_64-mageia-linux-gnu-ar checking for archiver @FILE support... @ checking for x86_64-mageia-linux-gnu-strip... no checking for strip... strip checking for x86_64-mageia-linux-gnu-ranlib... x86_64-mageia-linux-gnu-ranlib checking command to parse /usr/bin/x86_64-mageia-linux-gnu-nm -p output from x86_64-mageia-linux-gnu-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-mageia-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... x86_64-mageia-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-mageia-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-mageia-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-mageia-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-mageia-linux-gnu-gcc static flag -static works... no checking if x86_64-mageia-linux-gnu-gcc supports -c -o file.o... yes checking if x86_64-mageia-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-mageia-linux-gnu-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 main in -lncurses... yes checking for readline in -lreadline... yes checking for pthread_create in -lpthread... yes checking for ANSI C header files... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking for bzero... yes checking for gethostbyname... yes checking for gettimeofday... yes checking for inet_ntoa... yes checking for memset... yes checking for select... yes checking for socket... yes checking for strchr... yes checking for strerror... yes checking for strstr... yes checking for strtol... yes checking for gcry_cipher_open in -lgcrypt... yes checking fuse.h usability... yes checking fuse.h presence... yes checking for fuse.h... yes checking for fuse_main in -lfuse... yes checking for __gmpz_init in -lgmp... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating lib/Makefile config.status: creating fuse/Makefile config.status: creating cmdline/Makefile config.status: creating Makefile config.status: creating docs/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j8 /usr/bin/make all-recursive Making all in lib make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-uams_def.lo `test -f 'uams_def.c' || echo './'`uams_def.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c uams_def.c -fPIC -DPIC -o .libs/libafpclient_la-uams_def.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-map_def.lo `test -f 'map_def.c' || echo './'`map_def.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c map_def.c -fPIC -DPIC -o .libs/libafpclient_la-map_def.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-did.lo `test -f 'did.c' || echo './'`did.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c did.c -fPIC -DPIC -o .libs/libafpclient_la-did.o did.c: In function 'get_dirid': did.c:229:3: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 229 | p=path+(p-copy); | ^ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-codepage.lo `test -f 'codepage.c' || echo './'`codepage.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c codepage.c -fPIC -DPIC -o .libs/libafpclient_la-codepage.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-unicode.lo `test -f 'unicode.c' || echo './'`unicode.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c unicode.c -fPIC -DPIC -o .libs/libafpclient_la-unicode.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-users.lo `test -f 'users.c' || echo './'`users.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c users.c -fPIC -DPIC -o .libs/libafpclient_la-users.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-uams.lo `test -f 'uams.c' || echo './'`uams.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c uams.c -fPIC -DPIC -o .libs/libafpclient_la-uams.o uams.c:53:3: warning: initialization of 'int (*)(struct afp_server *, char *, char *, char *)' from incompatible pointer type 'int (*)(struct afp_server *, char *, char *)' [-Wincompatible-pointer-types] 53 | &cleartxt_passwd,NULL}; | ^ uams.c:53:3: note: (near initialization for 'uam_cleartxt.do_server_passwd') uams.c: In function 'cleartxt_login': uams.c:183:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 183 | if ((int)p & 0x1) | ^ uams.c: In function 'cleartxt_passwd': uams.c:233:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 233 | if ((int)p & 0x1) | ^ uams.c: In function 'dhx_login': uams.c:583:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 583 | if (((int)d) % 2) | ^ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-log.lo `test -f 'log.c' || echo './'`log.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c log.c -fPIC -DPIC -o .libs/libafpclient_la-log.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-client.lo `test -f 'client.c' || echo './'`client.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c client.c -fPIC -DPIC -o .libs/libafpclient_la-client.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-afp.lo `test -f 'afp.c' || echo './'`afp.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c afp.c -fPIC -DPIC -o .libs/libafpclient_la-afp.o afp.c: In function 'afp_unmount_volume': afp.c:264:49: warning: passing argument 2 of 'afp_closedt' makes pointer from integer without a cast [-Wint-conversion] 264 | if (volume->dtrefnum) afp_closedt(server,volume->dtrefnum); | ~~~~~~^~~~~~~~~~ | | | short unsigned int In file included from afp.c:12: ../include/afp.h:373:62: note: expected 'short unsigned int *' but argument is of type 'short unsigned int' 373 | int afp_closedt(struct afp_server * server, unsigned short * refnum); | ~~~~~~~~~~~~~~~~~^~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-dsi.lo `test -f 'dsi.c' || echo './'`dsi.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c dsi.c -fPIC -DPIC -o .libs/libafpclient_la-dsi.o dsi.c: In function 'dsi_opensession': dsi.c:92:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 92 | dsi_setup_header(server,&dsi_opensession_header.dsi_header,DSI_DSIOpenSession); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dsi.c: In function 'dsi_getstatus_reply': dsi.c:477:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 477 | p=(void *)((unsigned int) server->incoming_buffer + sizeof(*reply1)); | ^ dsi.c:527:3: warning: implicit declaration of function 'convert_utf8dec_to_utf8pre' [-Wimplicit-function-declaration] 527 | convert_utf8dec_to_utf8pre(server->server_name_utf8, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ dsi.c: In function 'dsi_recv': dsi.c:760:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 760 | (((unsigned int) server->incoming_buffer)+server->data_read), | ^ dsi.c:759:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 759 | ret = read(server->fd, (void *) | ^ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-utils.lo `test -f 'utils.c' || echo './'`utils.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c utils.c -fPIC -DPIC -o .libs/libafpclient_la-utils.o utils.c: In function 'invalid_filename': utils.c:199:3: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 199 | p=filename+1; | ^ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-server.lo `test -f 'server.c' || echo './'`server.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c server.c -fPIC -DPIC -o .libs/libafpclient_la-server.o server.c: In function 'afp_server_complete_connection': server.c:75:3: warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] 75 | gettimeofday(&tv,NULL); | ^~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-connect.lo `test -f 'connect.c' || echo './'`connect.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c connect.c -fPIC -DPIC -o .libs/libafpclient_la-connect.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-resource.lo `test -f 'resource.c' || echo './'`resource.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c resource.c -fPIC -DPIC -o .libs/libafpclient_la-resource.o resource.c: In function 'appledouble_truncate': resource.c:365:5: warning: implicit declaration of function 'remove_opened_fork' [-Wimplicit-function-declaration] 365 | remove_opened_fork(volume,fp); | ^~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-loop.lo `test -f 'loop.c' || echo './'`loop.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c loop.c -fPIC -DPIC -o .libs/libafpclient_la-loop.o loop.c:28:32: warning: initialization of 'pthread_t' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion] 28 | static pthread_t main_thread = NULL; | ^~~~ loop.c: In function 'just_end_it_now': loop.c:90:14: warning: 'return' with no value, in function returning non-void 90 | if (ending) return; | ^~~~~~ loop.c:88:8: note: declared here 88 | void * just_end_it_now(void * ignore) | ^~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_attr.lo `test -f 'proto_attr.c' || echo './'`proto_attr.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_attr.c -fPIC -DPIC -o .libs/libafpclient_la-proto_attr.o proto_attr.c: In function 'afp_newcommand76': proto_attr.c:39:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 39 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_attr.c: In function 'afp_listextattr': proto_attr.c:80:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 80 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/arpa/inet.h:22, from ../include/afp.h:5, from ../include/dsi.h:5, from proto_attr.c:10: ../include/utils.h:11:50: warning: right shift count >= width of type [-Wshift-count-overflow] 11 | #define hton64(x) ((u_int64_t) (htonl(((x) >> 32) & 0xffffffffLL)) | \ | ^~ proto_attr.c:88:31: note: in expansion of macro 'hton64' 88 | request_packet->maxreplysize=hton64(info->maxsize); | ^~~~~~ proto_attr.c: In function 'afp_getextattr': proto_attr.c:158:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 158 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/arpa/inet.h:22, from ../include/afp.h:5, from ../include/dsi.h:5, from proto_attr.c:10: ../include/utils.h:11:50: warning: right shift count >= width of type [-Wshift-count-overflow] 11 | #define hton64(x) ((u_int64_t) (htonl(((x) >> 32) & 0xffffffffLL)) | \ | ^~ proto_attr.c:163:25: note: in expansion of macro 'hton64' 163 | request_packet->offset=hton64(0); | ^~~~~~ ../include/utils.h:11:50: warning: right shift count >= width of type [-Wshift-count-overflow] 11 | #define hton64(x) ((u_int64_t) (htonl(((x) >> 32) & 0xffffffffLL)) | \ | ^~ proto_attr.c:164:27: note: in expansion of macro 'hton64' 164 | request_packet->reqcount=hton64(0); | ^~~~~~ proto_attr.c:169:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 169 | if (((unsigned int ) p2) & 0x1) p2++; | ^ proto_attr.c: In function 'afp_setextattr': proto_attr.c:211:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 211 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_desktop.lo `test -f 'proto_desktop.c' || echo './'`proto_desktop.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_desktop.c -fPIC -DPIC -o .libs/libafpclient_la-proto_desktop.o proto_desktop.c: In function 'afp_geticon': proto_desktop.c:35:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 35 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ proto_desktop.c: In function 'afp_addcomment': proto_desktop.c:90:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 90 | dsi_setup_header(volume->server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_desktop.c: In function 'afp_getcomment': proto_desktop.c:135:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 135 | dsi_setup_header(volume->server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_desktop.c: In function 'afp_closedt': proto_desktop.c:180:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 180 | dsi_setup_header(server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/arpa/inet.h:22, from ../include/afp.h:5, from ../include/dsi.h:5, from proto_desktop.c:12: proto_desktop.c:183:30: warning: passing argument 1 of '__bswap_16' makes integer from pointer without a cast [-Wint-conversion] 183 | request_packet.refnum=htons(refnum); | ^~~~~~ | | | short unsigned int * In file included from /usr/include/endian.h:35, from /usr/include/sys/types.h:176, from /usr/include/stdlib.h:394, from proto_desktop.c:10: /usr/include/bits/byteswap.h:34:24: note: expected '__uint16_t' {aka 'short unsigned int'} but argument is of type 'short unsigned int *' 34 | __bswap_16 (__uint16_t __bsx) | ~~~~~~~~~~~^~~~~ proto_desktop.c: In function 'afp_opendt': proto_desktop.c:200:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 200 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_directory.lo `test -f 'proto_directory.c' || echo './'`proto_directory.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_directory.c -fPIC -DPIC -o .libs/libafpclient_la-proto_directory.o proto_directory.c: In function 'afp_moveandrename': proto_directory.c:61:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 61 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_directory.c: In function 'afp_rename': proto_directory.c:110:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 110 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_directory.c: In function 'afp_createdir': proto_directory.c:155:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 155 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_directory.c: In function 'afp_enumerateext2_reply': proto_directory.c:296:9: warning: assignment to 'struct *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 296 | entry = p; | ^ proto_directory.c: In function 'afp_enumerate': proto_directory.c:350:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 350 | dsi_setup_header(server,&afp_enumerate_request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_directory.c: In function 'afp_enumerateext2': proto_directory.c:410:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 410 | dsi_setup_header(server,&afp_enumerateext2_request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_fork.lo `test -f 'proto_fork.c' || echo './'`proto_fork.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_fork.c -fPIC -DPIC -o .libs/libafpclient_la-proto_fork.o proto_fork.c: In function 'afp_setforkparms': proto_fork.c:45:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 45 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ proto_fork.c: In function 'afp_closefork': proto_fork.c:74:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 74 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ proto_fork.c: In function 'afp_flushfork': proto_fork.c:94:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 94 | dsi_setup_header(volume->server,&request_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ proto_fork.c: In function 'afp_openfork_reply': proto_fork.c:114:31: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 114 | struct dsi_header * header = &afp_openfork_reply_packet->header; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_fork.c: In function 'afp_openfork': proto_fork.c:160:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 160 | dsi_setup_header(server,&afp_openfork_request->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_fork.c: In function 'afp_byterangelock': proto_fork.c:194:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 194 | dsi_setup_header(volume->server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ proto_fork.c: In function 'afp_byterangelockext': proto_fork.c:237:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 237 | dsi_setup_header(volume->server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_login.lo `test -f 'proto_login.c' || echo './'`proto_login.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_login.c -fPIC -DPIC -o .libs/libafpclient_la-proto_login.o proto_login.c: In function 'afp_logout': proto_login.c:27:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 27 | dsi_setup_header(server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ proto_login.c: In function 'afp_changepassword': proto_login.c:75:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 75 | dsi_setup_header(server,&request->header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~ proto_login.c: In function 'afp_login': proto_login.c:130:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 130 | dsi_setup_header(server,&request->header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~ proto_login.c: In function 'afp_logincont': proto_login.c:169:27: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 169 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_files.lo `test -f 'proto_files.c' || echo './'`proto_files.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_files.c -fPIC -DPIC -o .libs/libafpclient_la-proto_files.o proto_files.c: In function 'afp_setparms_lowlevel': proto_files.c:51:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 51 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_files.c: In function 'afp_delete': proto_files.c:166:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 166 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_files.c: In function 'afp_read': proto_files.c:200:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 200 | dsi_setup_header(volume->server,&readext_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ proto_files.c: In function 'afp_readext': proto_files.c:249:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 249 | dsi_setup_header(volume->server,&readext_packet.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ proto_files.c: In function 'afp_getfiledirparms_reply': proto_files.c:299:2: warning: implicit declaration of function 'parse_reply_block' [-Wimplicit-function-declaration] 299 | parse_reply_block(server, | ^~~~~~~~~~~~~~~~~ proto_files.c: In function 'afp_getfiledirparms': proto_files.c:339:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 339 | dsi_setup_header(server,&getfiledirparms->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_files.c: In function 'afp_createfile': proto_files.c:378:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 378 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_files.c: In function 'afp_write': proto_files.c:420:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 420 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSIWrite); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_files.c: In function 'afp_writeext': proto_files.c:479:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 479 | dsi_setup_header(server,&request_packet->dsi_header,DSI_DSIWrite); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_map.lo `test -f 'proto_map.c' || echo './'`proto_map.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_map.c -fPIC -DPIC -o .libs/libafpclient_la-proto_map.o proto_map.c: In function 'afp_getuserinfo': proto_map.c:38:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 38 | dsi_setup_header(server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ proto_map.c: In function 'afp_mapid': proto_map.c:103:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 103 | dsi_setup_header(server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ proto_map.c: In function 'afp_mapid_reply': proto_map.c:125:28: warning: passing argument 2 of 'copy_from_pascal_two' from incompatible pointer type [-Wincompatible-pointer-types] 125 | copy_from_pascal_two(name,&reply->name,255); | ^~~~~~~~~~~~ | | | char ** In file included from proto_map.c:14: ../include/utils.h:30:55: note: expected 'char *' but argument is of type 'char **' 30 | unsigned short copy_from_pascal_two(char *dest, char *pascal,unsigned int max_len); | ~~~~~~^~~~~~ proto_map.c: In function 'afp_mapname': proto_map.c:154:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 154 | dsi_setup_header(server,&request->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_replyblock.lo `test -f 'proto_replyblock.c' || echo './'`proto_replyblock.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_replyblock.c -fPIC -DPIC -o .libs/libafpclient_la-proto_replyblock.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_server.lo `test -f 'proto_server.c' || echo './'`proto_server.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_server.c -fPIC -DPIC -o .libs/libafpclient_la-proto_server.o proto_server.c: In function 'afp_getsrvrparms': proto_server.c:25:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 25 | dsi_setup_header(server,&afp_getsrvrparms_request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_server.c: In function 'afp_getsrvrmsg': proto_server.c:128:26: warning: taking address of packed member of 'struct afp_getsrvrmsg_request_packet' may result in an unaligned pointer value [-Waddress-of-packed-member] 128 | dsi_setup_header(server,&afp_getsrvrmsg_request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_server.c: In function 'afp_zzzzz': proto_server.c:151:26: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 151 | dsi_setup_header(server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-midlevel.lo `test -f 'midlevel.c' || echo './'`midlevel.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c midlevel.c -fPIC -DPIC -o .libs/libafpclient_la-midlevel.o midlevel.c: In function 'ml_write': midlevel.c:735:6: warning: implicit declaration of function 'appledouble_write'; did you mean 'appledouble_utime'? [-Wimplicit-function-declaration] 735 | ret=appledouble_write(volume,fp,data,size,offset,&totalwritten); | ^~~~~~~~~~~~~~~~~ | appledouble_utime midlevel.c:754:42: warning: passing argument 6 of 'll_write' from incompatible pointer type [-Wincompatible-pointer-types] 754 | ret=ll_write(volume,data,size,offset,fp,&totalwritten); | ^~~~~~~~~~~~~ | | | int * In file included from midlevel.c:37: lowlevel.h:29:38: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *' 29 | struct afp_file_info * fp, size_t * totalwritten); | ~~~~~~~~~^~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_session.lo `test -f 'proto_session.c' || echo './'`proto_session.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_session.c -fPIC -DPIC -o .libs/libafpclient_la-proto_session.o proto_session.c: In function 'afp_getsessiontoken': proto_session.c:42:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 42 | uint32_t *p = (void *) (((unsigned int) request)+ | ^ proto_session.c:66:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 66 | data=(void *) (((unsigned int) request)+sizeof(*request)+offset); | ^ proto_session.c:70:27: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 70 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~~ proto_session.c: In function 'afp_disconnectoldsession': proto_session.c:130:14: warning: assignment to 'char *' from incompatible pointer type 'struct *' [-Wincompatible-pointer-types] 130 | token_data = request + sizeof(*request); | ^ proto_session.c:136:27: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 136 | dsi_setup_header(server, &request->header, DSI_DSICommand); | ^~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-proto_volume.lo `test -f 'proto_volume.c' || echo './'`proto_volume.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c proto_volume.c -fPIC -DPIC -o .libs/libafpclient_la-proto_volume.o proto_volume.c: In function 'afp_volclose': proto_volume.c:102:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 102 | dsi_setup_header(volume->server,&request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~ proto_volume.c: In function 'afp_volopen': proto_volume.c:170:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 170 | dsi_setup_header(volume->server,&afp_volopen_request->dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_volume.c: In function 'afp_flush': proto_volume.c:235:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 235 | dsi_setup_header(volume->server,&afp_flush_request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ proto_volume.c: In function 'afp_getvolparms': proto_volume.c:257:34: warning: taking address of packed member of 'struct ' may result in an unaligned pointer value [-Waddress-of-packed-member] 257 | dsi_setup_header(volume->server,&afp_getvolparms_request.dsi_header,DSI_DSICommand); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-debug.lo `test -f 'debug.c' || echo './'`debug.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c debug.c -fPIC -DPIC -o .libs/libafpclient_la-debug.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-forklist.lo `test -f 'forklist.c' || echo './'`forklist.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c forklist.c -fPIC -DPIC -o .libs/libafpclient_la-forklist.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-afp_url.lo `test -f 'afp_url.c' || echo './'`afp_url.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c afp_url.c -fPIC -DPIC -o .libs/libafpclient_la-afp_url.o afp_url.c: In function 'check_uamname': afp_url.c:36:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 36 | for (p=uam;*p;p++) { | ^ afp_url.c: In function 'afp_parse_url': afp_url.c:191:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 191 | if (p==NULL) p=toparse; | ^ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-status.lo `test -f 'status.c' || echo './'`status.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c status.c -fPIC -DPIC -o .libs/libafpclient_la-status.o status.c: In function 'print_volume_status': status.c:38:32: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~^ | | | long long unsigned int | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, | ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} status.c:38:43: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~^ | | | long long unsigned int | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, | ~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} status.c:38:53: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~^ | | | long long unsigned int | %lu 39 | v->did_cache_stats.misses, v->did_cache_stats.hits, 40 | v->did_cache_stats.expired, | ~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} status.c:38:67: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 38 | " did cache stats: %llu miss, %llu hit, %llu expired, %llu force removal\n uid/gid mapping: %s (%d/%d)\n", | ~~~^ | | | long long unsigned int | %lu ...... 41 | v->did_cache_stats.force_removed, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} status.c: In function 'afp_status_server': status.c:127:3: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 9 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 127 | "\n" | ^~~~ ...... 135 | s->lastrequestid,s->stats.requests_pending); | ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} status.c:131:41: note: format string is defined here 131 | " last request id: %d in queue: %llu\n", | ~~~^ | | | long long unsigned int | %lu status.c:144:21: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 144 | " transfer: %llu(rx) %llu(tx)\n" | ~~~^ | | | long long unsigned int | %lu 145 | " runt packets: %llu\n", 146 | s->stats.rx_bytes,s->stats.tx_bytes, | ~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} status.c:144:30: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 144 | " transfer: %llu(rx) %llu(tx)\n" | ~~~^ | | | long long unsigned int | %lu 145 | " runt packets: %llu\n", 146 | s->stats.rx_bytes,s->stats.tx_bytes, | ~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} status.c:144:3: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 144 | " transfer: %llu(rx) %llu(tx)\n" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...... 147 | s->stats.runt_packets); | ~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} status.c:145:25: note: format string is defined here 145 | " runt packets: %llu\n", | ~~~^ | | | long long unsigned int | %lu make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=compile x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o libafpclient_la-lowlevel.lo `test -f 'lowlevel.c' || echo './'`lowlevel.c libtool: compile: x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c lowlevel.c -fPIC -DPIC -o .libs/libafpclient_la-lowlevel.o lowlevel.c: In function 'll_open': lowlevel.c:214:11: warning: overflow in conversion from 'int' to 'char' changes value from 'flags & 1069056' to '0' [-Woverflow] 214 | fp->sync=(flags & (O_SYNC | O_DIRECT)); | ^ lowlevel.c:280:5: warning: implicit declaration of function 'ml_creat' [-Wimplicit-function-declaration] 280 | (ml_creat(volume,path,0644)==0)) { | ^~~~~~~~ lowlevel.c:314:2: warning: implicit declaration of function 'add_opened_fork'; did you mean 'afp_openfork'? [-Wimplicit-function-declaration] 314 | add_opened_fork(volume, fp); | ^~~~~~~~~~~~~~~ | afp_openfork lowlevel.c: In function 'll_readdir': lowlevel.c:499:22: warning: taking address of packed member of 'struct afp_unixprivs' may result in an unaligned pointer value [-Waddress-of-packed-member] 499 | set_nonunix_perms(&p->unixprivs.permissions, p); | ^~~~~~~~~~~~~~~~~~~~~~~~~ lowlevel.c: In function 'll_getattr': lowlevel.c:585:21: warning: passing argument 1 of 'set_nonunix_perms' from incompatible pointer type [-Wincompatible-pointer-types] 585 | set_nonunix_perms(stbuf,&fp); | ^~~~~ | | | struct stat * lowlevel.c:29:46: note: expected 'unsigned int *' but argument is of type 'struct stat *' 29 | static void set_nonunix_perms(unsigned int * mode, struct afp_file_info *fp) | ~~~~~~~~~~~~~~~^~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -D_FILE_OFFSET_BITS=64 -I../include -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o libafpclient.la -rpath /usr/lib64 libafpclient_la-afp.lo libafpclient_la-codepage.lo libafpclient_la-did.lo libafpclient_la-dsi.lo libafpclient_la-map_def.lo libafpclient_la-uams.lo libafpclient_la-uams_def.lo libafpclient_la-unicode.lo libafpclient_la-users.lo libafpclient_la-utils.lo libafpclient_la-resource.lo libafpclient_la-log.lo libafpclient_la-client.lo libafpclient_la-server.lo libafpclient_la-connect.lo libafpclient_la-loop.lo libafpclient_la-midlevel.lo libafpclient_la-proto_attr.lo libafpclient_la-proto_desktop.lo libafpclient_la-proto_directory.lo libafpclient_la-proto_files.lo libafpclient_la-proto_fork.lo libafpclient_la-proto_login.lo libafpclient_la-proto_map.lo libafpclient_la-proto_replyblock.lo libafpclient_la-proto_server.lo libafpclient_la-proto_volume.lo libafpclient_la-proto_session.lo libafpclient_la-afp_url.lo libafpclient_la-status.lo libafpclient_la-forklist.lo libafpclient_la-debug.lo libafpclient_la-lowlevel.lo -lfuse -lgcrypt -lpthread -lreadline -lncurses libtool: link: x86_64-mageia-linux-gnu-gcc -shared -Wl,--as-needed -fPIC -DPIC .libs/libafpclient_la-afp.o .libs/libafpclient_la-codepage.o .libs/libafpclient_la-did.o .libs/libafpclient_la-dsi.o .libs/libafpclient_la-map_def.o .libs/libafpclient_la-uams.o .libs/libafpclient_la-uams_def.o .libs/libafpclient_la-unicode.o .libs/libafpclient_la-users.o .libs/libafpclient_la-utils.o .libs/libafpclient_la-resource.o .libs/libafpclient_la-log.o .libs/libafpclient_la-client.o .libs/libafpclient_la-server.o .libs/libafpclient_la-connect.o .libs/libafpclient_la-loop.o .libs/libafpclient_la-midlevel.o .libs/libafpclient_la-proto_attr.o .libs/libafpclient_la-proto_desktop.o .libs/libafpclient_la-proto_directory.o .libs/libafpclient_la-proto_files.o .libs/libafpclient_la-proto_fork.o .libs/libafpclient_la-proto_login.o .libs/libafpclient_la-proto_map.o .libs/libafpclient_la-proto_replyblock.o .libs/libafpclient_la-proto_server.o .libs/libafpclient_la-proto_volume.o .libs/libafpclient_la-proto_session.o .libs/libafpclient_la-afp_url.o .libs/libafpclient_la-status.o .libs/libafpclient_la-forklist.o .libs/libafpclient_la-debug.o .libs/libafpclient_la-lowlevel.o -O2 -g -fstack-protector -O2 -g -fstack-protector -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -lfuse -lgcrypt -lpthread -lreadline -lncurses -Wl,-soname -Wl,libafpclient.so.0 -o .libs/libafpclient.so.0.0.0 libtool: link: (cd ".libs" && rm -f "libafpclient.so.0" && ln -s "libafpclient.so.0.0.0" "libafpclient.so.0") libtool: link: (cd ".libs" && rm -f "libafpclient.so" && ln -s "libafpclient.so.0.0.0" "libafpclient.so") libtool: link: ( cd ".libs" && rm -f "libafpclient.la" && ln -s "../libafpclient.la" "libafpclient.la" ) make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/lib' Making all in fuse make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o afpfsd-fuse_error.o `test -f 'fuse_error.c' || echo './'`fuse_error.c fuse_error.c: In function 'fuse_capture_stderr_start': fuse_error.c:44:2: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result] 44 | freopen(TMP_FILE, "a", stderr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o afpfsd-fuse_int.o `test -f 'fuse_int.c' || echo './'`fuse_int.c fuse_int.c: In function 'fuse_open': fuse_int.c:200:9: warning: assignment to 'uint64_t' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion] 200 | fi->fh=(void *) fp; | ^ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o afpfsd-daemon.o `test -f 'daemon.c' || echo './'`daemon.c daemon.c: In function 'fuse_unmount_volume': daemon.c:70:3: warning: implicit declaration of function 'fuse_exit' [-Wimplicit-function-declaration] 70 | fuse_exit((struct fuse *)volume->priv); | ^~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o afpfsd-commands.o `test -f 'commands.c' || echo './'`commands.c commands.c: In function 'start_fuse_thread': commands.c:200:40: warning: '%s' directive output may be truncated writing up to 254 bytes into a region of size 68 [-Wformat-truncation=] 200 | snprintf(mountstring,mountstring_len,"%s:%s", | ^~ In file included from /usr/include/stdio.h:867, from commands.c:8: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 2 and 288 bytes into a destination of size 68 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o mount_afp-client.o `test -f 'client.c' || echo './'`client.c client.c: In function 'start_afpfsd': client.c:64:24: warning: passing argument 2 of 'snprintf' makes integer from pointer without a cast [-Wint-conversion] 64 | snprintf(filename, "/usr/bin/%s", | ^~~~~~~~~~~~~ | | | char * In file included from /usr/include/features.h:465, from /usr/include/sys/types.h:25, from client.c:1: /usr/include/bits/stdio2.h:64:1: note: expected 'size_t' {aka 'long unsigned int'} but argument is of type 'char *' 64 | __NTH (snprintf (char *__restrict __s, size_t __n, | ^~~~~ client.c:79:6: warning: implicit declaration of function 'basename'; did you mean 'rename'? [-Wimplicit-function-declaration] 79 | basename(thisbin),AFPFSD_FILENAME); | ^~~~~~~~ | rename client.c:78:33: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] 78 | snprintf(newpath,PATH_MAX,"%s/%s", | ~^ | | | char * | %d 79 | basename(thisbin),AFPFSD_FILENAME); | ~~~~~~~~~~~~~~~~~ | | | int make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -export-dynamic -lfuse -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o afpfsd afpfsd-commands.o afpfsd-daemon.o afpfsd-fuse_int.o afpfsd-fuse_error.o ../lib/libafpclient.la -lfuse -lfuse -lgcrypt -lpthread -lreadline -lncurses libtool: link: x86_64-mageia-linux-gnu-gcc -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o .libs/afpfsd afpfsd-commands.o afpfsd-daemon.o afpfsd-fuse_int.o afpfsd-fuse_error.o -Wl,--export-dynamic ../lib/.libs/libafpclient.so -lfuse -lgcrypt -lpthread -lreadline -lncurses make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o mount_afp mount_afp-client.o ../lib/libafpclient.la -lfuse -lgcrypt -lpthread -lreadline -lncurses libtool: link: x86_64-mageia-linux-gnu-gcc -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o .libs/mount_afp mount_afp-client.o ../lib/.libs/libafpclient.so -lfuse -lgcrypt -lpthread -lreadline -lncurses make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/fuse' Making all in cmdline make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o afpcmd-cmdline_testafp.o `test -f 'cmdline_testafp.c' || echo './'`cmdline_testafp.c cmdline_testafp.c:17:7: warning: anonymous enum declared inside parameter list will not be visible outside of this definition or declaration 17 | enum {TCPIP,AT} protocol, | ^ cmdline_testafp.c: In function 'test_one_url': cmdline_testafp.c:29:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 29 | strcpy(valid_url.servername,servername); | ^~~~~~ cmdline_testafp.c:29:2: warning: incompatible implicit declaration of built-in function 'strcpy' cmdline_testafp.c:13:1: note: include '' or provide a declaration of 'strcpy' 12 | #include +++ |+#include 13 | make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o afpgetstatus-getstatus.o `test -f 'getstatus.c' || echo './'`getstatus.c getstatus.c: In function 'getstatus': getstatus.c:59:9: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 59 | free(server); | ^~~~ getstatus.c:59:9: warning: incompatible implicit declaration of built-in function 'free' getstatus.c:6:1: note: include '' or provide a declaration of 'free' 5 | #include "afp.h" +++ |+#include 6 | getstatus.c: In function 'main': getstatus.c:90:14: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 90 | if ((port=atoi(p))<=0) { | ^~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o afpcmd-cmdline_main.o `test -f 'cmdline_main.c' || echo './'`cmdline_main.c cmdline_main.c:181:12: warning: initialization of 'int (*)(char *)' from incompatible pointer type 'int (*)(void)' [-Wincompatible-pointer-types] 181 | { "test",test_urls,"URL parsing test",1}, | ^~~~~~~~~ cmdline_main.c:181:12: note: (near initialization for 'commands[27].func') cmdline_main.c: In function 'main': cmdline_main.c:416:2: warning: implicit declaration of function 'cmdline_afp_setup_client'; did you mean 'cmdline_afp_setup'? [-Wimplicit-function-declaration] 416 | cmdline_afp_setup_client(); | ^~~~~~~~~~~~~~~~~~~~~~~~ | cmdline_afp_setup cmdline_main.c:418:2: warning: implicit declaration of function 'afp_main_quick_startup' [-Wimplicit-function-declaration] 418 | afp_main_quick_startup(NULL); | ^~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o afpgetstatus afpgetstatus-getstatus.o ../lib/libafpclient.la -lfuse -lgcrypt -lpthread -lreadline -lncurses libtool: link: x86_64-mageia-linux-gnu-gcc -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o .libs/afpgetstatus afpgetstatus-getstatus.o ../lib/.libs/libafpclient.so -lfuse -lgcrypt -lpthread -lreadline -lncurses make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' x86_64-mageia-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -c -o afpcmd-cmdline_afp.o `test -f 'cmdline_afp.c' || echo './'`cmdline_afp.c cmdline_afp.c: In function 'com_chmod': cmdline_afp.c:420:20: warning: format '%s' expects a matching 'char *' argument [-Wformat=] 420 | printf("Mode of %s isn't octal\n"); | ~^ | | | char * cmdline_afp.c: In function 'get_dir': cmdline_afp.c:1083:2: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 1083 | chdir(path); | ^~~~~~~~~~~ cmdline_afp.c:1102:2: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 1102 | chdir(".."); | ^~~~~~~~~~~ cmdline_afp.c:1106:2: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 1106 | chdir(".."); | ^~~~~~~~~~~ cmdline_afp.c: In function 'com_get_file': cmdline_afp.c:640:2: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result] 640 | chown(localfilename,stat.st_uid,stat.st_gid); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmdline_afp.c: In function 'com_lcd': cmdline_afp.c:934:3: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 934 | getcwd(curpath,PATH_MAX); | ^~~~~~~~~~~~~~~~~~~~~~~~ cmdline_afp.c: In function 'com_lpwd': cmdline_afp.c:1049:2: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1049 | getcwd(dir,255); | ^~~~~~~~~~~~~~~ cmdline_afp.c: In function 'com_get': cmdline_afp.c:661:25: warning: '%s' directive output may be truncated writing up to 767 bytes into a region of size 255 [-Wformat-truncation=] 661 | snprintf(newpath,255,"%s/%s",curdir,arg); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:867, from cmdline_afp.c:11: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 769) into a destination of size 255 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'cmdline_afp_setup' at cmdline_afp.c:1220:2: /usr/include/bits/stdio2.h:67:10: warning: '__builtin___snprintf_chk' specified bound 4096 exceeds destination size 768 [-Wstringop-overflow=] 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' /bin/sh ../libtool --tag=CC --mode=link x86_64-mageia-linux-gnu-gcc -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o afpcmd afpcmd-cmdline_afp.o afpcmd-cmdline_main.o afpcmd-cmdline_testafp.o -lreadline -lncurses ../lib/libafpclient.la -lfuse -lgcrypt -lpthread -lreadline -lncurses libtool: link: x86_64-mageia-linux-gnu-gcc -I../include -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o .libs/afpcmd afpcmd-cmdline_afp.o afpcmd-cmdline_main.o afpcmd-cmdline_testafp.o ../lib/.libs/libafpclient.so -lfuse -lgcrypt -lpthread -lreadline -lncurses /usr/bin/ld: afpcmd-cmdline_main.o:/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline/cmdline_afp.h:4: multiple definition of `full_url'; afpcmd-cmdline_afp.o:/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline/cmdline_afp.c:27: first defined here collect2: error: ld returned 1 exit status make[2]: *** [Makefile:396: afpcmd] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/afpfs-ng-0.8.1/cmdline' make[1]: *** [Makefile:394: all-recursive] Error 1 make: *** [Makefile:326: all] Error 2 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.sjznWl (%build) RPM build errors: %make is deprecated, use %make_build instead Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.sjznWl (%build) I: [iurt_root_command] ERROR: chroot