D: [iurt_root_command] chroot RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Installing /home/pterjan/rpmbuild/SRPMS/c-icap-modules-classify-20151104-4.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.YUK687 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf C-ICAP-Classify-20151104 + /usr/bin/unzip -qq /home/pterjan/rpmbuild/SOURCES/C-ICAP-Classify-20151104.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd C-ICAP-Classify-20151104 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + chmod 700 RECONF + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jbuMao + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd C-ICAP-Classify-20151104 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ./RECONF configure.ac:11: installing './compile' configure.ac:16: installing './config.guess' configure.ac:16: installing './config.sub' configure.ac:9: installing './install-sh' configure.ac:9: installing './missing' services/classify/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') services/classify/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 + 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 . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=x86_64-mageia-linux-gnu --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 --x-includes=/usr/include --x-libraries=/usr/lib64 checking whether to enable maintainer-specific portions of Makefiles... no 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 gcc... 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 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 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/nm -B checking the name lister (/usr/bin/nm -B) 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 objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from 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 mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... 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 gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the 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 for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes 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 inflate in -lz... yes checking for endianness... little-endian checking for OpenCV older than 2.2.x... checking for cvCreateImage in -lcxcore... no checking for OpenCV 2.2.x or newer... checking for cvCreateImage in -lopencv_core... yes checking for OpenCV 2.3.x or newer... checking for cvResize in -lopencv_imgproc... yes checking for TRE regex header (tre/tre.h)... checking tre/tre.h usability... yes checking tre/tre.h presence... yes checking for tre/tre.h... yes checking for TRE regex library... checking for tre_regwncomp in -ltre... yes checking for scandir... yes checking for libicu... checking for icu-config... /usr/bin/icu-config checking for ICU >= 50.1.2... yes checking ICU_CFLAGS... checking ICU_CXXFLAGS... -std=c++11 checking ICU_LIBS... -L/usr/lib64 -licui18n -licuuc -licudata checking whether ln -s works... yes checking for ln... /usr/bin/ln checking for rm... /usr/bin/rm checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating services/Makefile config.status: creating services/classify/Makefile config.status: creating docs/Makefile config.status: creating docs/man/Makefile config.status: creating autoconf.h config.status: executing depfiles commands config.status: executing libtool commands + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 /usr/bin/make all-recursive Making all in . Making all in services Making all in classify make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_judge-train_common.o -MD -MP -MF .deps/fhs_judge-train_common.Tpo -c -o fhs_judge-train_common.o `test -f 'train_common.c' || echo './'`train_common.c mv -f .deps/fhs_judge-train_common.Tpo .deps/fhs_judge-train_common.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_learn-train_common.o -MD -MP -MF .deps/fhs_learn-train_common.Tpo -c -o fhs_learn-train_common.o `test -f 'train_common.c' || echo './'`train_common.c mv -f .deps/fhs_learn-train_common.Tpo .deps/fhs_learn-train_common.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_judge-fhs_judge.o -MD -MP -MF .deps/fhs_judge-fhs_judge.Tpo -c -o fhs_judge-fhs_judge.o `test -f 'fhs_judge.c' || echo './'`fhs_judge.c fhs_judge.c:31:0: warning: "NOT_CICAP" redefined #define NOT_CICAP :0:0: note: this is the location of the previous definition In file included from fhs_judge.c:50:0: hyperspace.c: In function 'openFHS': hyperspace.c:214:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ hyperspace.c:217:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' return -1; ^~~~~~ hyperspace.c: In function 'writeFHSHashesPreload': hyperspace.c:286:2: warning: ignoring return value of 'ftruncate64', declared with attribute warn_unused_result [-Wunused-result] ftruncate64(file, 11); ^~~~~~~~~~~~~~~~~~~~~ In file included from fhs_judge.c:50:0: hyperspace.c: In function 'loadMassHSCategories': hyperspace.c:599:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ hyperspace.c:600:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:602:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ hyperspace.c:610:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:631:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ mv -f .deps/fhs_judge-fhs_judge.Tpo .deps/fhs_judge-fhs_judge.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_learn-fhs_learn.o -MD -MP -MF .deps/fhs_learn-fhs_learn.Tpo -c -o fhs_learn-fhs_learn.o `test -f 'fhs_learn.c' || echo './'`fhs_learn.c fhs_learn.c:31:0: warning: "NOT_CICAP" redefined #define NOT_CICAP :0:0: note: this is the location of the previous definition In file included from fhs_learn.c:48:0: hyperspace.c: In function 'openFHS': hyperspace.c:214:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ hyperspace.c:217:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' return -1; ^~~~~~ hyperspace.c: In function 'writeFHSHashesPreload': hyperspace.c:286:2: warning: ignoring return value of 'ftruncate64', declared with attribute warn_unused_result [-Wunused-result] ftruncate64(file, 11); ^~~~~~~~~~~~~~~~~~~~~ In file included from fhs_learn.c:48:0: hyperspace.c: In function 'loadMassHSCategories': hyperspace.c:599:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ hyperspace.c:600:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:602:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ hyperspace.c:610:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:631:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ mv -f .deps/fhs_learn-fhs_learn.Tpo .deps/fhs_learn-fhs_learn.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_judge-train_common.o -MD -MP -MF .deps/fnb_judge-train_common.Tpo -c -o fnb_judge-train_common.o `test -f 'train_common.c' || echo './'`train_common.c mv -f .deps/fnb_judge-train_common.Tpo .deps/fnb_judge-train_common.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_makepreload-fhs_makepreload.o -MD -MP -MF .deps/fhs_makepreload-fhs_makepreload.Tpo -c -o fhs_makepreload-fhs_makepreload.o `test -f 'fhs_makepreload.c' || echo './'`fhs_makepreload.c fhs_makepreload.c:31:0: warning: "NOT_CICAP" redefined #define NOT_CICAP :0:0: note: this is the location of the previous definition In file included from fhs_makepreload.c:51:0: hyperspace.c: In function 'openFHS': hyperspace.c:214:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ hyperspace.c:217:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' return -1; ^~~~~~ hyperspace.c: In function 'writeFHSHashesPreload': hyperspace.c:286:2: warning: ignoring return value of 'ftruncate64', declared with attribute warn_unused_result [-Wunused-result] ftruncate64(file, 11); ^~~~~~~~~~~~~~~~~~~~~ In file included from fhs_makepreload.c:51:0: hyperspace.c: In function 'loadMassHSCategories': hyperspace.c:599:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ hyperspace.c:600:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:602:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ hyperspace.c:610:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:631:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ fhs_makepreload.c: In function 'loadMassCategories': fhs_makepreload.c:94:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ mv -f .deps/fhs_makepreload-fhs_makepreload.Tpo .deps/fhs_makepreload-fhs_makepreload.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_learn-train_common.o -MD -MP -MF .deps/fnb_learn-train_common.Tpo -c -o fnb_learn-train_common.o `test -f 'train_common.c' || echo './'`train_common.c mv -f .deps/fnb_learn-train_common.Tpo .deps/fnb_learn-train_common.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_learn-train_common_threads.o -MD -MP -MF .deps/fnb_learn-train_common_threads.Tpo -c -o fnb_learn-train_common_threads.o `test -f 'train_common_threads.c' || echo './'`train_common_threads.c mv -f .deps/fnb_learn-train_common_threads.Tpo .deps/fnb_learn-train_common_threads.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_makepreload-html.o -MD -MP -MF .deps/fhs_makepreload-html.Tpo -c -o fhs_makepreload-html.o `test -f 'html.c' || echo './'`html.c mv -f .deps/fhs_makepreload-html.Tpo .deps/fhs_makepreload-html.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_judge-fnb_judge.o -MD -MP -MF .deps/fnb_judge-fnb_judge.Tpo -c -o fnb_judge-fnb_judge.o `test -f 'fnb_judge.c' || echo './'`fnb_judge.c fnb_judge.c:31:0: warning: "NOT_CICAP" redefined #define NOT_CICAP :0:0: note: this is the location of the previous definition In file included from fnb_judge.c:50:0: bayes.c: In function 'loadMassBayesCategories': bayes.c:1145:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ bayes.c:1146:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1148:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ bayes.c:1156:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1177:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ mv -f .deps/fnb_judge-fnb_judge.Tpo .deps/fnb_judge-fnb_judge.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_judge-html.o -MD -MP -MF .deps/fhs_judge-html.Tpo -c -o fhs_judge-html.o `test -f 'html.c' || echo './'`html.c mv -f .deps/fhs_judge-html.Tpo .deps/fhs_judge-html.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_learn-html.o -MD -MP -MF .deps/fhs_learn-html.Tpo -c -o fhs_learn-html.o `test -f 'html.c' || echo './'`html.c mv -f .deps/fhs_learn-html.Tpo .deps/fhs_learn-html.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_findtolearn-train_common.o -MD -MP -MF .deps/fhs_findtolearn-train_common.Tpo -c -o fhs_findtolearn-train_common.o `test -f 'train_common.c' || echo './'`train_common.c mv -f .deps/fhs_findtolearn-train_common.Tpo .deps/fhs_findtolearn-train_common.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_learn-fnb_learn.o -MD -MP -MF .deps/fnb_learn-fnb_learn.Tpo -c -o fnb_learn-fnb_learn.o `test -f 'fnb_learn.c' || echo './'`fnb_learn.c fnb_learn.c:35:0: warning: "NOT_CICAP" redefined #define NOT_CICAP :0:0: note: this is the location of the previous definition In file included from /usr/include/sys/types.h:25:0, from fnb_learn.c:37: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ fnb_learn.c: In function 'doLearn': fnb_learn.c:170:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if((prehash_data_file = open(prehash_file, O_RDONLY, S_IRUSR | S_IWUSR | S_IWOTH | S_IWGRP)) > 0); ^~ fnb_learn.c:171:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' { ^ In file included from fnb_learn.c:56:0: bayes.c: In function 'loadMassBayesCategories': bayes.c:1145:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ bayes.c:1146:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1148:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ bayes.c:1156:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1177:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ mv -f .deps/fnb_learn-fnb_learn.Tpo .deps/fnb_learn-fnb_learn.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_findtolearn-train_common_threads.o -MD -MP -MF .deps/fhs_findtolearn-train_common_threads.Tpo -c -o fhs_findtolearn-train_common_threads.o `test -f 'train_common_threads.c' || echo './'`train_common_threads.c mv -f .deps/fhs_findtolearn-train_common_threads.Tpo .deps/fhs_findtolearn-train_common_threads.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_judge-html.o -MD -MP -MF .deps/fnb_judge-html.Tpo -c -o fnb_judge-html.o `test -f 'html.c' || echo './'`html.c mv -f .deps/fnb_judge-html.Tpo .deps/fnb_judge-html.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_findtolearn-train_common.o -MD -MP -MF .deps/fnb_findtolearn-train_common.Tpo -c -o fnb_findtolearn-train_common.o `test -f 'train_common.c' || echo './'`train_common.c mv -f .deps/fnb_findtolearn-train_common.Tpo .deps/fnb_findtolearn-train_common.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_learn-html.o -MD -MP -MF .deps/fnb_learn-html.Tpo -c -o fnb_learn-html.o `test -f 'html.c' || echo './'`html.c mv -f .deps/fnb_learn-html.Tpo .deps/fnb_learn-html.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_makepreload-fnb_makepreload.o -MD -MP -MF .deps/fnb_makepreload-fnb_makepreload.Tpo -c -o fnb_makepreload-fnb_makepreload.o `test -f 'fnb_makepreload.c' || echo './'`fnb_makepreload.c fnb_makepreload.c:31:0: warning: "NOT_CICAP" redefined #define NOT_CICAP :0:0: note: this is the location of the previous definition In file included from fnb_makepreload.c:51:0: bayes.c: In function 'loadMassBayesCategories': bayes.c:1145:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ bayes.c:1146:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1148:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ bayes.c:1156:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1177:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ fnb_makepreload.c: In function 'loadMassCategories': fnb_makepreload.c:97:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ mv -f .deps/fnb_makepreload-fnb_makepreload.Tpo .deps/fnb_makepreload-fnb_makepreload.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_findtolearn-train_common_threads.o -MD -MP -MF .deps/fnb_findtolearn-train_common_threads.Tpo -c -o fnb_findtolearn-train_common_threads.o `test -f 'train_common_threads.c' || echo './'`train_common_threads.c mv -f .deps/fnb_findtolearn-train_common_threads.Tpo .deps/fnb_findtolearn-train_common_threads.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_findtolearn-fhs_findtolearn.o -MD -MP -MF .deps/fhs_findtolearn-fhs_findtolearn.Tpo -c -o fhs_findtolearn-fhs_findtolearn.o `test -f 'fhs_findtolearn.c' || echo './'`fhs_findtolearn.c fhs_findtolearn.c:31:0: warning: "NOT_CICAP" redefined #define NOT_CICAP :0:0: note: this is the location of the previous definition In file included from fhs_findtolearn.c:49:0: hyperspace.c: In function 'openFHS': hyperspace.c:214:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ hyperspace.c:217:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' return -1; ^~~~~~ fhs_findtolearn.c: In function 'judgeFile': fhs_findtolearn.c:160:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if((prehash_data_file = open(prehash_file, O_RDONLY, S_IRUSR | S_IWUSR | S_IWOTH | S_IWGRP)) > 0); ^~ fhs_findtolearn.c:161:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' { ^ In file included from fhs_findtolearn.c:49:0: hyperspace.c: In function 'writeFHSHashesPreload': hyperspace.c:286:2: warning: ignoring return value of 'ftruncate64', declared with attribute warn_unused_result [-Wunused-result] ftruncate64(file, 11); ^~~~~~~~~~~~~~~~~~~~~ In file included from fhs_findtolearn.c:49:0: hyperspace.c: In function 'loadMassHSCategories': hyperspace.c:599:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ hyperspace.c:600:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:602:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ hyperspace.c:610:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:631:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ mv -f .deps/fhs_findtolearn-fhs_findtolearn.Tpo .deps/fhs_findtolearn-fhs_findtolearn.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fhs_findtolearn-html.o -MD -MP -MF .deps/fhs_findtolearn-html.Tpo -c -o fhs_findtolearn-html.o `test -f 'html.c' || echo './'`html.c mv -f .deps/fhs_findtolearn-html.Tpo .deps/fhs_findtolearn-html.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_makepreload-html.o -MD -MP -MF .deps/fnb_makepreload-html.Tpo -c -o fnb_makepreload-html.o `test -f 'html.c' || echo './'`html.c mv -f .deps/fnb_makepreload-html.Tpo .deps/fnb_makepreload-html.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_findtolearn-html.o -MD -MP -MF .deps/fnb_findtolearn-html.Tpo -c -o fnb_findtolearn-html.o `test -f 'html.c' || echo './'`html.c mv -f .deps/fnb_findtolearn-html.Tpo .deps/fnb_findtolearn-html.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-hyperspace.lo -MD -MP -MF .deps/srv_classify_la-hyperspace.Tpo -c -o srv_classify_la-hyperspace.lo `test -f 'hyperspace.c' || echo './'`hyperspace.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-hyperspace.lo -MD -MP -MF .deps/srv_classify_la-hyperspace.Tpo -c hyperspace.c -fPIC -DPIC -o .libs/srv_classify_la-hyperspace.o hyperspace.c: In function 'loadMassHSCategories': hyperspace.c:599:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ hyperspace.c:600:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:602:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ hyperspace.c:610:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fhs_dir); ^~~~~~~~~~~~~~ hyperspace.c:631:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ mv -f .deps/srv_classify_la-hyperspace.Tpo .deps/srv_classify_la-hyperspace.Plo make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-hash.lo -MD -MP -MF .deps/srv_classify_la-hash.Tpo -c -o srv_classify_la-hash.lo `test -f 'hash.c' || echo './'`hash.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-hash.lo -MD -MP -MF .deps/srv_classify_la-hash.Tpo -c hash.c -fPIC -DPIC -o .libs/srv_classify_la-hash.o mv -f .deps/srv_classify_la-hash.Tpo .deps/srv_classify_la-hash.Plo make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-srv_classify_image.lo -MD -MP -MF .deps/srv_classify_la-srv_classify_image.Tpo -c -o srv_classify_la-srv_classify_image.lo `test -f 'srv_classify_image.c' || echo './'`srv_classify_image.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-srv_classify_image.lo -MD -MP -MF .deps/srv_classify_la-srv_classify_image.Tpo -c srv_classify_image.c -fPIC -DPIC -o .libs/srv_classify_la-srv_classify_image.o In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdio.h:27, from srv_classify_image.c:31: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ srv_classify_image.c:98:16: error: 'CV_IMWRITE_PNG_COMPRESSION' undeclared here (not in a function) int png_p[] = {CV_IMWRITE_PNG_COMPRESSION, 9, 0}; ^~~~~~~~~~~~~~~~~~~~~~~~~~ srv_classify_image.c:99:17: error: 'CV_IMWRITE_JPEG_QUALITY' undeclared here (not in a function); did you mean 'CV_WRITE_SEQ_ELEM'? int jpeg_p[] = {CV_IMWRITE_JPEG_QUALITY, 100, 0}; ^~~~~~~~~~~~~~~~~~~~~~~ CV_WRITE_SEQ_ELEM srv_classify_image.c:99:17: warning: initialization makes integer from pointer without a cast [-Wint-conversion] srv_classify_image.c:99:17: note: (near initialization for 'jpeg_p[0]') srv_classify_image.c:99:17: error: initializer element is not constant srv_classify_image.c:99:17: note: (near initialization for 'jpeg_p[0]') srv_classify_image.c: In function 'saveDetectedParts': srv_classify_image.c:421:4: warning: implicit declaration of function 'cvSaveImage'; did you mean 'cvShowImage'? [-Wimplicit-function-declaration] cvSaveImage(fname, mySession->origImage, png_p); ^~~~~~~~~~~ cvShowImage srv_classify_image.c: In function 'categorize_image': srv_classify_image.c:863:31: warning: implicit declaration of function 'cvDecodeImage'; did you mean 'cvCloneImage'? [-Wimplicit-function-declaration] mySession.origImage = cvDecodeImage(&myCvMat, CV_LOAD_IMAGE_COLOR); ^~~~~~~~~~~~~ cvCloneImage srv_classify_image.c:863:55: error: 'CV_LOAD_IMAGE_COLOR' undeclared (first use in this function); did you mean 'CV_IS_IMAGE_HDR'? mySession.origImage = cvDecodeImage(&myCvMat, CV_LOAD_IMAGE_COLOR); ^~~~~~~~~~~~~~~~~~~ CV_IS_IMAGE_HDR srv_classify_image.c:863:55: note: each undeclared identifier is reported only once for each function it appears in srv_classify_image.c:863:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion] mySession.origImage = cvDecodeImage(&myCvMat, CV_LOAD_IMAGE_COLOR); ^ srv_classify_image.c:867:24: warning: implicit declaration of function 'cvLoadImage'; did you mean 'cvShowImage'? [-Wimplicit-function-declaration] mySession.origImage = cvLoadImage(data->disk_body->filename, CV_LOAD_IMAGE_COLOR); ^~~~~~~~~~~ cvShowImage srv_classify_image.c:867:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion] mySession.origImage = cvLoadImage(data->disk_body->filename, CV_LOAD_IMAGE_COLOR); ^ srv_classify_image.c: In function 'categorize_external_image': srv_classify_image.c:1052:53: error: 'CV_LOAD_IMAGE_COLOR' undeclared (first use in this function); did you mean 'CV_IS_IMAGE_HDR'? mySession.origImage = cvLoadImage( dp->d_name, CV_LOAD_IMAGE_COLOR ); ^~~~~~~~~~~~~~~~~~~ CV_IS_IMAGE_HDR srv_classify_image.c:1052:26: warning: assignment makes pointer from integer without a cast [-Wint-conversion] mySession.origImage = cvLoadImage( dp->d_name, CV_LOAD_IMAGE_COLOR ); ^ srv_classify_image.c:1004:3: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ srv_classify_image.c:1005:3: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(data->external_body->filename); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ srv_classify_image.c:1099:3: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ srv_classify_image.c: In function 'unlink_directory': srv_classify_image.c:170:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ srv_classify_image.c:171:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(directory); ^~~~~~~~~~~~~~~~ srv_classify_image.c:194:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ make[3]: *** [Makefile:757: srv_classify_la-srv_classify_image.lo] Error 1 make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: *** Waiting for unfinished jobs.... make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT fnb_findtolearn-fnb_findtolearn.o -MD -MP -MF .deps/fnb_findtolearn-fnb_findtolearn.Tpo -c -o fnb_findtolearn-fnb_findtolearn.o `test -f 'fnb_findtolearn.c' || echo './'`fnb_findtolearn.c fnb_findtolearn.c:31:0: warning: "NOT_CICAP" redefined #define NOT_CICAP :0:0: note: this is the location of the previous definition fnb_findtolearn.c: In function 'judgeFile': fnb_findtolearn.c:160:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if((prehash_data_file = open(prehash_file, O_RDONLY, S_IRUSR | S_IWUSR | S_IWOTH | S_IWGRP)) > 0); ^~ fnb_findtolearn.c:161:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' { ^ In file included from fnb_findtolearn.c:49:0: bayes.c: In function 'loadMassBayesCategories': bayes.c:1145:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ bayes.c:1146:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1148:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ bayes.c:1156:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1177:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ mv -f .deps/fnb_findtolearn-fnb_findtolearn.Tpo .deps/fnb_findtolearn-fnb_findtolearn.Po make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-bayes.lo -MD -MP -MF .deps/srv_classify_la-bayes.Tpo -c -o srv_classify_la-bayes.lo `test -f 'bayes.c' || echo './'`bayes.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-bayes.lo -MD -MP -MF .deps/srv_classify_la-bayes.Tpo -c bayes.c -fPIC -DPIC -o .libs/srv_classify_la-bayes.o bayes.c: In function 'loadMassBayesCategories': bayes.c:1145:2: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(old_dir, PATH_MAX); ^~~~~~~~~~~~~~~~~~~~~~~~~ bayes.c:1146:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1148:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ bayes.c:1156:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(fbc_dir); ^~~~~~~~~~~~~~ bayes.c:1177:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(old_dir); ^~~~~~~~~~~~~~ mv -f .deps/srv_classify_la-bayes.Tpo .deps/srv_classify_la-bayes.Plo make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=link gcc -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -ltre -lm -L/usr/lib64 -licui18n -licuuc -licudata -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o fhs_judge fhs_judge-fhs_judge.o fhs_judge-html.o fhs_judge-train_common.o libtool: link: gcc -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o fhs_judge fhs_judge-fhs_judge.o fhs_judge-html.o fhs_judge-train_common.o -ltre -lm -L/usr/lib64 -licui18n -licuuc -licudata make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=link gcc -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -ltre -lm -L/usr/lib64 -licui18n -licuuc -licudata -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o fhs_makepreload fhs_makepreload-fhs_makepreload.o fhs_makepreload-html.o libtool: link: gcc -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o fhs_makepreload fhs_makepreload-fhs_makepreload.o fhs_makepreload-html.o -ltre -lm -L/usr/lib64 -licui18n -licuuc -licudata make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=link gcc -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -ltre -lm -L/usr/lib64 -licui18n -licuuc -licudata -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o fhs_learn fhs_learn-fhs_learn.o fhs_learn-html.o fhs_learn-train_common.o libtool: link: gcc -DTRAINER -DNOT_CICAP -std=gnu99 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -Wl,--as-needed -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o fhs_learn fhs_learn-fhs_learn.o fhs_learn-html.o fhs_learn-train_common.o -ltre -lm -L/usr/lib64 -licui18n -licuuc -licudata make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-html.lo -MD -MP -MF .deps/srv_classify_la-html.Tpo -c -o srv_classify_la-html.lo `test -f 'html.c' || echo './'`html.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-html.lo -MD -MP -MF .deps/srv_classify_la-html.Tpo -c html.c -fPIC -DPIC -o .libs/srv_classify_la-html.o mv -f .deps/srv_classify_la-html.Tpo .deps/srv_classify_la-html.Plo make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-srv_classify.lo -MD -MP -MF .deps/srv_classify_la-srv_classify.Tpo -c -o srv_classify_la-srv_classify.lo `test -f 'srv_classify.c' || echo './'`srv_classify.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include/ -std=gnu99 -I -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wall -fvisibility=hidden -DCI_BUILD_MODULE -D_REENTRANT -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wall -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include/c_icap -DLITTLE_ENDIAN -MT srv_classify_la-srv_classify.lo -MD -MP -MF .deps/srv_classify_la-srv_classify.Tpo -c srv_classify.c -fPIC -DPIC -o .libs/srv_classify_la-srv_classify.o In file included from /usr/include/sys/types.h:25:0, from srv_classify.c:22: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ srv_classify.c: In function 'srvclassify_check_preview_handler': srv_classify.c:612:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if((content_type = ci_http_response_get_header(req, "Content-Type")) != NULL) { ^ srv_classify.c:624:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if((content_type = ci_http_response_get_header(req, "Content-Encoding")) != NULL) { ^ In file included from srv_classify.c:50:0: srv_classify.c:634:27: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'ci_off_t {aka long int}' [-Wformat=] "srv_classify: Object size is %" PRINTF_OFF_T "." ^ /usr/include/c_icap/debug.h:44:130: note: in definition of macro 'ci_debug_printf' #define ci_debug_printf(i, args...) if(i<=CI_DEBUG_LEVEL){ if(__log_error) (*__log_error)(NULL,args); if(CI_DEBUG_STDOUT) printf(args);} ^~~~ In file included from srv_classify.c:45:0: /usr/include/c_icap/c-icap.h:113:28: note: format string is defined here # define PRINTF_OFF_T "lld" In file included from srv_classify.c:50:0: srv_classify.c:634:27: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'ci_off_t {aka long int}' [-Wformat=] "srv_classify: Object size is %" PRINTF_OFF_T "." ^ /usr/include/c_icap/debug.h:44:130: note: in definition of macro 'ci_debug_printf' #define ci_debug_printf(i, args...) if(i<=CI_DEBUG_LEVEL){ if(__log_error) (*__log_error)(NULL,args); if(CI_DEBUG_STDOUT) printf(args);} ^~~~ In file included from srv_classify.c:45:0: /usr/include/c_icap/c-icap.h:113:28: note: format string is defined here # define PRINTF_OFF_T "lld" In file included from srv_classify.c:50:0: srv_classify.c: In function 'srvclassify_end_of_data_handler': srv_classify.c:839:30: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'ci_off_t {aka long int}' [-Wformat=] ci_debug_printf(7, "file unlocked, flags :%d (unlocked:%" PRINTF_OFF_T ")\n", ^ disk_body->flags, disk_body->unlocked); ~~~~~~~~~~~~ /usr/include/c_icap/debug.h:44:130: note: in definition of macro 'ci_debug_printf' #define ci_debug_printf(i, args...) if(i<=CI_DEBUG_LEVEL){ if(__log_error) (*__log_error)(NULL,args); if(CI_DEBUG_STDOUT) printf(args);} ^~~~ In file included from srv_classify.c:45:0: /usr/include/c_icap/c-icap.h:113:28: note: format string is defined here # define PRINTF_OFF_T "lld" srv_classify.c: In function 'make_pics_header': srv_classify.c:1085:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] orig_header = ci_http_response_get_header(req, "PICS-Label"); ^ srv_classify.c: In function 'make_wchar': srv_classify.c:1124:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if((charSet = ci_http_response_get_header(req, "Content-Type")) != NULL) ^ srv_classify.c: In function 'set_istag': srv_classify.c:1406:51: warning: '%s' directive output truncated writing 19 bytes into a region of size 2 [-Wformat-truncation=] srv_classify.c:1402:26: char *image_cat_ver="image_categorize1.0"; ~~~~~~~~~~~~~~~~~~~~~ srv_classify.c:1406:51: snprintf(istag, SERVICE_ISTAG_SIZE, "-T:%s-I:%s", ^~ In file included from /usr/include/stdio.h:862:0, from srv_classify.c:28: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output 44 bytes into a destination of size 26 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mv -f .deps/srv_classify_la-srv_classify.Tpo .deps/srv_classify_la-srv_classify.Plo make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/C-ICAP-Classify-20151104/services/classify' make[2]: *** [Makefile:365: all-recursive] Error 1 make[1]: *** [Makefile:412: all-recursive] Error 1 make: *** [Makefile:344: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.jbuMao (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.jbuMao (%build) I: [iurt_root_command] ERROR: chroot