From https://github.com/archlinux/svntogit-packages * branch packages/libots -> FETCH_HEAD * [new branch] packages/libots -> packages/packages/libots Cloning into 'libots'... done. :: Synchronizing package databases... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 132k 100 132k 0 0 371k 0 --:--:-- --:--:-- --:--:-- 370k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 8546k 100 8546k 0 0 20.6M 0 --:--:-- --:--:-- --:--:-- 20.6M % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 143k 100 143k 0 0 414k 0 --:--:-- --:--:-- --:--:-- 414k 100 143k 100 143k 0 0 412k 0 --:--:-- --:--:-- --:--:-- 412k :: Starting full system upgrade... there is nothing to do PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp/archlinux-ci/ SOURCE_DATE_EPOCH=1690716673 SHELL=/bin/bash SCHROOT_CHROOT_NAME=jenkins-reproducible-archlinux no_proxy=localhost,127.0.0.1 SCHROOT_COMMAND=bash -l -c SOURCE_DATE_EPOCH='1690716673' PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' TMPDIR='/tmp/archlinux-ci/' printenv 2>&1 SCHROOT_SESSION_ID=archlinux-libots-archlinuxrb-build-lxGHXcvY PWD=/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk LOGNAME=jenkins SCHROOT_ALIAS_NAME=jenkins-reproducible-archlinux SCHROOT_GROUP=jenkins SCHROOT_USER=jenkins ftp_proxy=http://127.0.0.1:3128 HOME=/var/lib/jenkins LANG=C https_proxy=http://127.0.0.1:3128 USER=jenkins FTP_PROXY=http://127.0.0.1:3128 SHLVL=1 HTTPS_PROXY=http://127.0.0.1:3128 HTTP_PROXY=http://127.0.0.1:3128 SCHROOT_GID=116 http_proxy=http://127.0.0.1:3128 DEBUGINFOD_URLS=https://debuginfod.archlinux.org SCHROOT_UID=108 HG=/usr/bin/hg _=/usr/sbin/printenv ==> Making package: libots 0.5.0-6 (Sun Jul 30 11:31:39 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Downloading ots-0.5.0.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 57 362k 57 207k 0 0 134k 0 0:00:02 0:00:01 0:00:01 134k 100 362k 100 362k 0 0 226k 0 0:00:01 0:00:01 --:--:-- 226k -> Found libots-fix-build.patch ==> Validating source files with sha256sums... ots-0.5.0.tar.gz ... Passed libots-fix-build.patch ... Passed ==> Extracting sources... -> Extracting ots-0.5.0.tar.gz with bsdtar ==> Starting prepare()... patching file src/Makefile.am libtoolize: putting auxiliary files in '.'. libtoolize: linking file './ltmain.sh' libtoolize: You should add the contents of the following files to 'aclocal.m4': libtoolize: '/usr/share/aclocal/libtool.m4' libtoolize: '/usr/share/aclocal/ltoptions.m4' libtoolize: '/usr/share/aclocal/ltsugar.m4' libtoolize: '/usr/share/aclocal/ltversion.m4' libtoolize: '/usr/share/aclocal/lt~obsolete.m4' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:38: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:38: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:43: installing './compile' configure.in:38: installing './missing' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' src/Makefile.am:19: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/Makefile.am: installing './depcomp' configure.in:37: warning: 'AM_CONFIG_HEADER': this macro is obsolete. configure.in:37: You should use the 'AC_CONFIG_HEADERS' macro instead. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:10185: AM_CONFIG_HEADER is expanded from... configure.in:37: the top level configure.in:38: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:9833: AM_INIT_AUTOMAKE is expanded from... configure.in:38: the top level configure.in:55: warning: The macro `AC_LIBTOOL_WIN32_DLL' is obsolete. configure.in:55: You should run autoupdate. aclocal.m4:8545: AC_LIBTOOL_WIN32_DLL is expanded from... configure.in:55: the top level configure.in:55: warning: AC_LIBTOOL_WIN32_DLL: Remove this warning and the call to _LT_SET_OPTION when you configure.in:55: put the 'win32-dll' option into LT_INIT's first parameter. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:8545: AC_LIBTOOL_WIN32_DLL is expanded from... configure.in:55: the top level configure.in:56: warning: The macro `AM_PROG_LIBTOOL' is obsolete. configure.in:56: You should run autoupdate. aclocal.m4:123: AM_PROG_LIBTOOL is expanded from... configure.in:56: the top level configure.in:60: warning: The macro `AC_HEADER_STDC' is obsolete. configure.in:60: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.in:60: the top level ==> Starting build()... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/sbin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no 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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... 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 whether make sets $(MAKE)... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/sbin/sed checking for grep that handles long lines and -e... /usr/sbin/grep checking for egrep... /usr/sbin/grep -E checking for fgrep... /usr/sbin/grep -F checking for ld used by gcc... /usr/sbin/ld checking if the linker (/usr/sbin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/sbin/nm -B checking the name lister (/usr/sbin/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-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/sbin/ld option to reload object files... -r checking for file... file 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/sbin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/sbin/dd checking how to truncate binary pipes... /usr/sbin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.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... yes 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/sbin/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... yes checking for egrep... (cached) /usr/sbin/grep -E checking for an ANSI C-conforming const... yes checking for pkg-config... /usr/sbin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for OTS... yes checking for poptParseArgvString in -lpopt... yes checking for native Win32... no checking for Win32 platform in general... no checking for gtkdoc-mkdb... false checking for db2html... false checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libots-1.pc config.status: creating ots.spec config.status: creating src/Makefile config.status: creating dic/Makefile config.status: creating doc/Makefile config.status: creating articles/Makefile config.status: creating ots-config.h config.status: executing depfiles commands config.status: executing libtool commands ots-0.5.0 prefix: /usr compiler: gcc make all-recursive make[1]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0' Making all in src make[2]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/src' gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT ots.o -MD -MP -MF .deps/ots.Tpo -c -o ots.o ots.c ots.c: In function 'main': ots.c:130:38: warning: pointer targets in passing argument 2 of 'ots_load_xml_dictionary' differ in signedness [-Wpointer-sign] 130 | if (!ots_load_xml_dictionary (Art, dictionary_file)) | ^~~~~~~~~~~~~~~ | | | char * In file included from ots.c:28: libots.h:101:73: note: expected 'const unsigned char *' but argument is of type 'char *' 101 | gboolean ots_load_xml_dictionary (OtsArticle * Doc,unsigned const char *name); | ~~~~~~~~~~~~~~~~~~~~~^~~~ ots.c:46:7: warning: unused variable 'c' [-Wunused-variable] 46 | int c,n_args=0; | ^ mv -f .deps/ots.Tpo .deps/ots.Po /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT article.lo -MD -MP -MF .deps/article.Tpo -c -o article.lo article.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT article.lo -MD -MP -MF .deps/article.Tpo -c article.c -fPIC -DPIC -o .libs/article.o article.c: In function 'ots_append_word': article.c:107:37: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 107 | if ((aWord == NULL) || (0==strlen(aWord)) ||(NULL==aLine)) return; | ^~~~~ | | | const unsigned char * In file included from article.c:23: /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ In file included from /usr/include/glib-2.0/glib/gstring.h:37, from /usr/include/glib-2.0/glib/giochannel.h:36, from /usr/include/glib-2.0/glib.h:56, from libots.h:24, from article.c:25: article.c:109:68: warning: pointer targets in passing argument 1 of 'g_strdup_inline' differ in signedness [-Wpointer-sign] 109 | aLine->words = g_list_append (aLine->words, (gpointer) g_strdup (aWord)); | ^~~~~ | | | const unsigned char * /usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro 'g_strdup' 324 | #define g_strdup(x) g_strdup_inline (x) | ^ /usr/include/glib-2.0/glib/gstrfuncs.h:309:30: note: expected 'const char *' but argument is of type 'const unsigned char *' 309 | g_strdup_inline (const char *str) | ~~~~~~~~~~~~^~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT article.lo -MD -MP -MF .deps/article.Tpo -c article.c -o article.o >/dev/null 2>&1 mv -f .deps/article.Tpo .deps/article.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c -o dictionary.lo dictionary.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.c -fPIC -DPIC -o .libs/dictionary.o dictionary.c: In function 'ots_load_xml_dictionary': dictionary.c:321:40: warning: pointer targets in passing argument 2 of 'xmlGetProp' differ in signedness [-Wpointer-sign] 321 | idf_key=xmlGetProp(tf_words,"idf"); | ^~~~~ | | | char * In file included from /usr/include/libxml2/libxml/parser.h:14, from /usr/include/libxml2/libxml/globals.h:18, from /usr/include/libxml2/libxml/threads.h:35, from /usr/include/libxml2/libxml/xmlmemory.h:222, from dictionary.c:28: /usr/include/libxml2/libxml/tree.h:1033:57: note: expected 'const xmlChar *' {aka 'const unsigned char *'} but argument is of type 'char *' 1033 | const xmlChar *name); | ~~~~~~~~~~~~~~~^~~~ dictionary.c:322:84: warning: pointer targets in passing argument 1 of 'atof' differ in signedness [-Wpointer-sign] 322 | Doc->tf_terms = g_list_append (Doc->tf_terms,ots_new_OtsWordTF(key,atof(idf_key))); | ^~~~~~~ | | | xmlChar * {aka unsigned char *} In file included from /usr/include/features.h:491, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from dictionary.c:21: /usr/include/bits/stdlib-float.h:25:1: note: expected 'const char *' but argument is of type 'xmlChar *' {aka 'unsigned char *'} 25 | __NTH (atof (const char *__nptr)) | ^~~~~ dictionary.c:322:75: warning: pointer targets in passing argument 1 of 'ots_new_OtsWordTF' differ in signedness [-Wpointer-sign] 322 | Doc->tf_terms = g_list_append (Doc->tf_terms,ots_new_OtsWordTF(key,atof(idf_key))); | ^~~ | | | xmlChar * {aka unsigned char *} In file included from dictionary.c:25: libots.h:114:43: note: expected 'const char *' but argument is of type 'xmlChar *' {aka 'unsigned char *'} 114 | OtsWordTF* ots_new_OtsWordTF(const char* word,const double idf); | ~~~~~~~~~~~~^~~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT dictionary.lo -MD -MP -MF .deps/dictionary.Tpo -c dictionary.c -o dictionary.o >/dev/null 2>&1 mv -f .deps/dictionary.Tpo .deps/dictionary.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader.lo -MD -MP -MF .deps/grader.Tpo -c -o grader.lo grader.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader.lo -MD -MP -MF .deps/grader.Tpo -c grader.c -fPIC -DPIC -o .libs/grader.o grader.c: In function 'ots_grade_structure': grader.c:45:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 45 | if (Doc->lines!=NULL) | ^~ grader.c:47:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 47 | if (NULL!=first_line) first_line->score *= 2; /*first line/title is very important so we increase its score */ | ^~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader.lo -MD -MP -MF .deps/grader.Tpo -c grader.c -o grader.o >/dev/null 2>&1 mv -f .deps/grader.Tpo .deps/grader.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader-tf.lo -MD -MP -MF .deps/grader-tf.Tpo -c -o grader-tf.lo grader-tf.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader-tf.lo -MD -MP -MF .deps/grader-tf.Tpo -c grader-tf.c -fPIC -DPIC -o .libs/grader-tf.o grader-tf.c: In function 'ots_calc_idf': grader-tf.c:108:9: warning: implicit declaration of function 'log' [-Wimplicit-function-declaration] 108 | return -log(doc_word_count/term_count); | ^~~ grader-tf.c:25:1: note: include '' or provide a declaration of 'log' 24 | #include "libots.h" +++ |+#include 25 | grader-tf.c:108:9: warning: incompatible implicit declaration of built-in function 'log' [-Wbuiltin-declaration-mismatch] 108 | return -log(doc_word_count/term_count); | ^~~ grader-tf.c:108:9: note: include '' or provide a declaration of 'log' libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader-tf.lo -MD -MP -MF .deps/grader-tf.Tpo -c grader-tf.c -o grader-tf.o >/dev/null 2>&1 mv -f .deps/grader-tf.Tpo .deps/grader-tf.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader-tc.lo -MD -MP -MF .deps/grader-tc.Tpo -c -o grader-tc.lo grader-tc.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader-tc.lo -MD -MP -MF .deps/grader-tc.Tpo -c grader-tc.c -fPIC -DPIC -o .libs/grader-tc.o grader-tc.c: In function 'ots_line_add_wordlist': grader-tc.c:65:83: warning: pointer targets in passing argument 2 of 'ots_add_wordstat' differ in signedness [-Wpointer-sign] 65 | if (li->data && strlen (li->data)) ots_add_wordstat (Doc, (char *)li->data); | ^~~~~~~~~~~~~~~~ | | | char * In file included from grader-tc.c:24: libots.h:97:62: note: expected 'const unsigned char *' but argument is of type 'char *' 97 | void ots_add_wordstat (OtsArticle * Doc,unsigned const char *wordString); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ grader-tc.c: In function 'ots_grade_line': grader-tc.c:112:16: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 112 | tmp_stem = ots_stem_strip ((unsigned char *) li->data, rule); | ^ In file included from /usr/include/glib-2.0/glib/giochannel.h:36, from /usr/include/glib-2.0/glib.h:56, from libots.h:24: grader-tc.c: In function 'ots_create_title_tc': /usr/include/glib-2.0/glib/gstring.h:72:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | (__builtin_constant_p (free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | ((free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | (g_string_free) ((str), (free_segment)) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | g_string_free_and_steal (str)) \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | : \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | (g_string_free) ((str), (free_segment))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ grader-tc.c:156:26: note: in expansion of macro 'g_string_free' 156 | if (NULL!=title) g_string_free(title,FALSE); | ^~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT grader-tc.lo -MD -MP -MF .deps/grader-tc.Tpo -c grader-tc.c -o grader-tc.o >/dev/null 2>&1 mv -f .deps/grader-tc.Tpo .deps/grader-tc.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT html.lo -MD -MP -MF .deps/html.Tpo -c -o html.lo html.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT html.lo -MD -MP -MF .deps/html.Tpo -c html.c -fPIC -DPIC -o .libs/html.o html.c: In function 'ots_get_line_HTML': html.c:62:13: warning: pointer targets in assignment from 'gchar *' {aka 'char *'} to 'unsigned char *' differ in signedness [-Wpointer-sign] 62 | utf8_data = text->str; | ^ In file included from /usr/include/glib-2.0/glib/giochannel.h:36, from /usr/include/glib-2.0/glib.h:56, from libots.h:24, from html.c:24: html.c: In function 'ots_get_doc_HTML': html.c:105:34: warning: pointer targets in passing argument 2 of 'g_string_append_len_inline' differ in signedness [-Wpointer-sign] 105 | g_string_append_len (text, utf8_data, line_len); | ^~~~~~~~~ | | | unsigned char * /usr/include/glib-2.0/glib/gstring.h:245:37: note: in definition of macro 'g_string_append_len' 245 | g_string_append_len_inline (gstr, val, len) | ^~~ /usr/include/glib-2.0/glib/gstring.h:213:41: note: expected 'const char *' but argument is of type 'unsigned char *' 213 | const char *val, | ~~~~~~~~~~~~^~~ html.c:112:13: warning: pointer targets in assignment from 'gchar *' {aka 'char *'} to 'unsigned char *' differ in signedness [-Wpointer-sign] 112 | utf8_data = text->str; | ^ /usr/include/glib-2.0/glib/gstring.h:72:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | (__builtin_constant_p (free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | ((free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | (g_string_free) ((str), (free_segment)) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | g_string_free_and_steal (str)) \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | : \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | (g_string_free) ((str), (free_segment))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ html.c:114:3: note: in expansion of macro 'g_string_free' 114 | g_string_free (text, FALSE); | ^~~~~~~~~~~~~ html.c: In function 'ots_get_line_HTML': /usr/include/glib-2.0/glib/gstring.h:72:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | (__builtin_constant_p (free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | ((free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | (g_string_free) ((str), (free_segment)) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | g_string_free_and_steal (str)) \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | : \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | (g_string_free) ((str), (free_segment))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ html.c:63:3: note: in expansion of macro 'g_string_free' 63 | g_string_free (text, FALSE); | ^~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT html.lo -MD -MP -MF .deps/html.Tpo -c html.c -o html.o >/dev/null 2>&1 mv -f .deps/html.Tpo .deps/html.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c -o parser.lo parser.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c parser.c -fPIC -DPIC -o .libs/parser.o parser.c: In function 'ots_parse_file': parser.c:68:23: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 68 | strncpy (buffer + total_read, fread_buffer, nread); | ~~~~~~~^~~~~~~~~~~~ | | | unsigned char * In file included from /usr/include/features.h:491, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from parser.c:21: /usr/include/bits/string_fortified.h:92:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ parser.c:68:37: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] 68 | strncpy (buffer + total_read, fread_buffer, nread); | ^~~~~~~~~~~~ | | | unsigned char * /usr/include/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, | ^~~~~ parser.c: In function 'ots_parse_stream': parser.c:141:70: warning: pointer targets in passing argument 2 of 'ots_append_word' differ in signedness [-Wpointer-sign] 141 | ots_append_word (tmpLine, word_buffer->str); | ~~~~~~~~~~~^~~~~ | | | gchar * {aka char *} In file included from parser.c:25: libots.h:96:64: note: expected 'const unsigned char *' but argument is of type 'gchar *' {aka 'char *'} 96 | void ots_append_word (OtsSentence * aLine,unsigned const char *aWord); | ~~~~~~~~~~~~~~~~~~~~~^~~~~ parser.c:151:57: warning: pointer targets in passing argument 2 of 'ots_append_word' differ in signedness [-Wpointer-sign] 151 | if (uc=='\n') {ots_append_word (tmpLine,"\n");} | ^~~~ | | | char * libots.h:96:64: note: expected 'const unsigned char *' but argument is of type 'char *' 96 | void ots_append_word (OtsSentence * aLine,unsigned const char *aWord); | ~~~~~~~~~~~~~~~~~~~~~^~~~~ parser.c:153:43: warning: pointer targets in passing argument 2 of 'ots_append_word' differ in signedness [-Wpointer-sign] 153 | {ots_append_word (tmpLine," ");} | ^~~ | | | char * libots.h:96:64: note: expected 'const unsigned char *' but argument is of type 'char *' 96 | void ots_append_word (OtsSentence * aLine,unsigned const char *aWord); | ~~~~~~~~~~~~~~~~~~~~~^~~~~ parser.c:166:70: warning: pointer targets in passing argument 2 of 'ots_append_word' differ in signedness [-Wpointer-sign] 166 | ots_append_word (tmpLine, word_buffer->str); | ~~~~~~~~~~~^~~~~ | | | gchar * {aka char *} libots.h:96:64: note: expected 'const unsigned char *' but argument is of type 'gchar *' {aka 'char *'} 96 | void ots_append_word (OtsSentence * aLine,unsigned const char *aWord); | ~~~~~~~~~~~~~~~~~~~~~^~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT parser.lo -MD -MP -MF .deps/parser.Tpo -c parser.c -o parser.o >/dev/null 2>&1 mv -f .deps/parser.Tpo .deps/parser.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT text.lo -MD -MP -MF .deps/text.Tpo -c -o text.lo text.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT text.lo -MD -MP -MF .deps/text.Tpo -c text.c -fPIC -DPIC -o .libs/text.o text.c: In function 'ots_get_line_text': text.c:50:13: warning: pointer targets in assignment from 'gchar *' {aka 'char *'} to 'unsigned char *' differ in signedness [-Wpointer-sign] 50 | utf8_data = text->str; | ^ In file included from /usr/include/glib-2.0/glib/giochannel.h:36, from /usr/include/glib-2.0/glib.h:56, from libots.h:24, from text.c:25: text.c: In function 'ots_get_doc_text': text.c:79:34: warning: pointer targets in passing argument 2 of 'g_string_append_len_inline' differ in signedness [-Wpointer-sign] 79 | g_string_append_len (text, utf8_data, line_len); | ^~~~~~~~~ | | | unsigned char * /usr/include/glib-2.0/glib/gstring.h:245:37: note: in definition of macro 'g_string_append_len' 245 | g_string_append_len_inline (gstr, val, len) | ^~~ /usr/include/glib-2.0/glib/gstring.h:213:41: note: expected 'const char *' but argument is of type 'unsigned char *' 213 | const char *val, | ~~~~~~~~~~~~^~~ text.c:85:13: warning: pointer targets in assignment from 'gchar *' {aka 'char *'} to 'unsigned char *' differ in signedness [-Wpointer-sign] 85 | utf8_data = text->str; | ^ text.c: In function 'ots_get_line_text': /usr/include/glib-2.0/glib/gstring.h:72:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | (__builtin_constant_p (free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | ((free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | (g_string_free) ((str), (free_segment)) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | g_string_free_and_steal (str)) \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | : \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | (g_string_free) ((str), (free_segment))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ text.c:51:3: note: in expansion of macro 'g_string_free' 51 | g_string_free (text, FALSE); | ^~~~~~~~~~~~~ text.c: In function 'ots_get_doc_text': /usr/include/glib-2.0/glib/gstring.h:72:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | (__builtin_constant_p (free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | ((free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | (g_string_free) ((str), (free_segment)) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | g_string_free_and_steal (str)) \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | : \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | (g_string_free) ((str), (free_segment))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ text.c:87:3: note: in expansion of macro 'g_string_free' 87 | g_string_free (text, FALSE); | ^~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT text.lo -MD -MP -MF .deps/text.Tpo -c text.c -o text.o >/dev/null 2>&1 mv -f .deps/text.Tpo .deps/text.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT stemmer.lo -MD -MP -MF .deps/stemmer.Tpo -c -o stemmer.lo stemmer.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT stemmer.lo -MD -MP -MF .deps/stemmer.Tpo -c stemmer.c -fPIC -DPIC -o .libs/stemmer.o stemmer.c: In function 'ots_stem_break': stemmer.c:81:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 81 | clen = strlen (comp); | ^~~~ | | | const unsigned char * In file included from stemmer.c:24: /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ stemmer.c: In function 'ots_stem_remove_pre': stemmer.c:114:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 114 | plen = strlen (pre); | ^~~ | | | const unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ stemmer.c:115:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 115 | wlen = strlen (aWord); | ^~~~~ | | | const unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ stemmer.c:116:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 116 | nlen = strlen (new); | ^~~ | | | const unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ stemmer.c:122:11: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 122 | new_str = g_new0 (char, wlen + nlen +5); | ^ stemmer.c: In function 'ots_stem_remove_post': stemmer.c:143:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 143 | wlen = strlen (aWord); | ^~~~~ | | | const unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ stemmer.c:144:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 144 | plen = strlen (post); | ^~~~ | | | const unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ stemmer.c:145:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 145 | nlen = strlen (new); | ^~~ | | | const unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ stemmer.c:154:11: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 154 | new_str = g_new0 (char, wlen + nlen +5); | ^ stemmer.c: In function 'ots_stem_replace_word': stemmer.c:173:28: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] 173 | if ((aWord)&&(0 == strcmp (aWord, old))) | ^~~~~ | | | const unsigned char * /usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'const unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ stemmer.c:173:35: warning: pointer targets in passing argument 2 of 'strcmp' differ in signedness [-Wpointer-sign] 173 | if ((aWord)&&(0 == strcmp (aWord, old))) | ^~~ | | | const unsigned char * /usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'const unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ In file included from /usr/include/glib-2.0/glib/gstring.h:37, from /usr/include/glib-2.0/glib/giochannel.h:36, from /usr/include/glib-2.0/glib.h:56, from libots.h:24, from stemmer.c:25: stemmer.c:175:24: warning: pointer targets in passing argument 1 of 'g_strdup_inline' differ in signedness [-Wpointer-sign] 175 | return g_strdup (new); | ^~~ | | | const unsigned char * /usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro 'g_strdup' 324 | #define g_strdup(x) g_strdup_inline (x) | ^ /usr/include/glib-2.0/glib/gstrfuncs.h:309:30: note: expected 'const char *' but argument is of type 'const unsigned char *' 309 | g_strdup_inline (const char *str) | ~~~~~~~~~~~~^~~ /usr/include/glib-2.0/glib/gstrfuncs.h:324:21: warning: pointer targets in returning 'char *' from a function with return type 'unsigned char *' differ in signedness [-Wpointer-sign] 324 | #define g_strdup(x) g_strdup_inline (x) | ^~~~~~~~~~~~~~~~~~~ stemmer.c:175:14: note: in expansion of macro 'g_strdup' 175 | return g_strdup (new); | ^~~~~~~~ stemmer.c: In function 'ots_stem_format': stemmer.c:197:30: warning: pointer targets in passing argument 1 of 'g_utf8_strdown' differ in signedness [-Wpointer-sign] 197 | normWord = g_utf8_strdown (aWord, -1); /*lowercase the word */ | ^~~~~ | | | const unsigned char * In file included from /usr/include/glib-2.0/glib/gstring.h:35: /usr/include/glib-2.0/glib/gunicode.h:908:37: note: expected 'const gchar *' {aka 'const char *'} but argument is of type 'const unsigned char *' 908 | gchar *g_utf8_strdown (const gchar *str, | ~~~~~~~~~~~~~^~~ stemmer.c:197:12: warning: pointer targets in assignment from 'gchar *' {aka 'char *'} to 'unsigned char *' differ in signedness [-Wpointer-sign] 197 | normWord = g_utf8_strdown (aWord, -1); /*lowercase the word */ | ^ stemmer.c:207:33: warning: pointer targets in passing argument 2 of 'ots_stem_break' differ in signedness [-Wpointer-sign] 207 | ots_stem_break (li->data, prefix, newfix); | ^~~~~~ | | | char * stemmer.c:71:58: note: expected 'unsigned char *' but argument is of type 'char *' 71 | ots_stem_break (unsigned const char *comp,unsigned char *part_a,unsigned char *part_b) /*given already alocated part_a and b */ | ~~~~~~~~~~~~~~~^~~~~~ stemmer.c:207:41: warning: pointer targets in passing argument 3 of 'ots_stem_break' differ in signedness [-Wpointer-sign] 207 | ots_stem_break (li->data, prefix, newfix); | ^~~~~~ | | | char * stemmer.c:71:80: note: expected 'unsigned char *' but argument is of type 'char *' 71 | ots_stem_break (unsigned const char *comp,unsigned char *part_a,unsigned char *part_b) /*given already alocated part_a and b */ | ~~~~~~~~~~~~~~~^~~~~~ stemmer.c:208:44: warning: pointer targets in passing argument 2 of 'ots_stem_remove_pre' differ in signedness [-Wpointer-sign] 208 | rep = ots_stem_remove_pre (normWord, prefix, newfix); | ^~~~~~ | | | char * stemmer.c:107:70: note: expected 'const unsigned char *' but argument is of type 'char *' 107 | ots_stem_remove_pre (unsigned const char *aWord,unsigned const char *pre,unsigned const char *new) | ~~~~~~~~~~~~~~~~~~~~~^~~ stemmer.c:208:52: warning: pointer targets in passing argument 3 of 'ots_stem_remove_pre' differ in signedness [-Wpointer-sign] 208 | rep = ots_stem_remove_pre (normWord, prefix, newfix); | ^~~~~~ | | | char * stemmer.c:107:95: note: expected 'const unsigned char *' but argument is of type 'char *' 107 | ots_stem_remove_pre (unsigned const char *aWord,unsigned const char *pre,unsigned const char *new) | ~~~~~~~~~~~~~~~~~~~~~^~~ stemmer.c:220:33: warning: pointer targets in passing argument 2 of 'ots_stem_break' differ in signedness [-Wpointer-sign] 220 | ots_stem_break (li->data, prefix, newfix); | ^~~~~~ | | | char * stemmer.c:71:58: note: expected 'unsigned char *' but argument is of type 'char *' 71 | ots_stem_break (unsigned const char *comp,unsigned char *part_a,unsigned char *part_b) /*given already alocated part_a and b */ | ~~~~~~~~~~~~~~~^~~~~~ stemmer.c:220:41: warning: pointer targets in passing argument 3 of 'ots_stem_break' differ in signedness [-Wpointer-sign] 220 | ots_stem_break (li->data, prefix, newfix); | ^~~~~~ | | | char * stemmer.c:71:80: note: expected 'unsigned char *' but argument is of type 'char *' 71 | ots_stem_break (unsigned const char *comp,unsigned char *part_a,unsigned char *part_b) /*given already alocated part_a and b */ | ~~~~~~~~~~~~~~~^~~~~~ stemmer.c:221:44: warning: pointer targets in passing argument 2 of 'ots_stem_remove_post' differ in signedness [-Wpointer-sign] 221 | rep = ots_stem_remove_post(normWord, prefix, newfix); | ^~~~~~ | | | char * stemmer.c:136:71: note: expected 'const unsigned char *' but argument is of type 'char *' 136 | ots_stem_remove_post (unsigned const char *aWord,unsigned const char *post,unsigned const char *new) | ~~~~~~~~~~~~~~~~~~~~~^~~~ stemmer.c:221:52: warning: pointer targets in passing argument 3 of 'ots_stem_remove_post' differ in signedness [-Wpointer-sign] 221 | rep = ots_stem_remove_post(normWord, prefix, newfix); | ^~~~~~ | | | char * stemmer.c:136:97: note: expected 'const unsigned char *' but argument is of type 'char *' 136 | ots_stem_remove_post (unsigned const char *aWord,unsigned const char *post,unsigned const char *new) | ~~~~~~~~~~~~~~~~~~~~~^~~ stemmer.c: In function 'ots_stem_strip': stemmer.c:253:10: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 253 | prefix = g_new0 (char, MAX_PREFIX_SIZE); | ^ stemmer.c:254:10: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 254 | newfix = g_new0 (char, MAX_PREFIX_SIZE); | ^ stemmer.c:324:14: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 324 | if (strlen(normWord)<3) /*stem is two letter long. thats not right. N(eed)==N(ation) ?*/ | ^~~~~~~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT stemmer.lo -MD -MP -MF .deps/stemmer.Tpo -c stemmer.c -o stemmer.o >/dev/null 2>&1 mv -f .deps/stemmer.Tpo .deps/stemmer.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT highlighter.lo -MD -MP -MF .deps/highlighter.Tpo -c -o highlighter.lo highlighter.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT highlighter.lo -MD -MP -MF .deps/highlighter.Tpo -c highlighter.c -fPIC -DPIC -o .libs/highlighter.o highlighter.c: In function 'ots_highlight_doc_lines': highlighter.c:100:7: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] 100 | int tmp; | ^~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT highlighter.lo -MD -MP -MF .deps/highlighter.Tpo -c highlighter.c -o highlighter.o >/dev/null 2>&1 mv -f .deps/highlighter.Tpo .deps/highlighter.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT wordlist.lo -MD -MP -MF .deps/wordlist.Tpo -c -o wordlist.lo wordlist.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT wordlist.lo -MD -MP -MF .deps/wordlist.Tpo -c wordlist.c -fPIC -DPIC -o .libs/wordlist.o wordlist.c: In function 'ots_new_wordEntery_strip': wordlist.c:35:15: warning: pointer targets in assignment from 'unsigned char *' to 'gchar *' {aka 'char *'} differ in signedness [-Wpointer-sign] 35 | aWord->word = ots_stem_format(wordString,rule); | ^ wordlist.c:36:15: warning: pointer targets in assignment from 'unsigned char *' to 'gchar *' {aka 'char *'} differ in signedness [-Wpointer-sign] 36 | aWord->stem = ots_stem_strip(wordString,rule); | ^ In file included from /usr/include/glib-2.0/glib/gstring.h:37, from /usr/include/glib-2.0/glib/giochannel.h:36, from /usr/include/glib-2.0/glib.h:56, from libots.h:24, from wordlist.c:25: wordlist.c: In function 'ots_new_wordEntery': wordlist.c:45:27: warning: pointer targets in passing argument 1 of 'g_strdup_inline' differ in signedness [-Wpointer-sign] 45 | aWord->word = g_strdup (wordString); | ^~~~~~~~~~ | | | const unsigned char * /usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro 'g_strdup' 324 | #define g_strdup(x) g_strdup_inline (x) | ^ /usr/include/glib-2.0/glib/gstrfuncs.h:309:30: note: expected 'const char *' but argument is of type 'const unsigned char *' 309 | g_strdup_inline (const char *str) | ~~~~~~~~~~~~^~~ wordlist.c:46:27: warning: pointer targets in passing argument 1 of 'g_strdup_inline' differ in signedness [-Wpointer-sign] 46 | aWord->stem = g_strdup (wordString); | ^~~~~~~~~~ | | | const unsigned char * /usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro 'g_strdup' 324 | #define g_strdup(x) g_strdup_inline (x) | ^ /usr/include/glib-2.0/glib/gstrfuncs.h:309:30: note: expected 'const char *' but argument is of type 'const unsigned char *' 309 | g_strdup_inline (const char *str) | ~~~~~~~~~~~~^~~ wordlist.c: In function 'ots_union_list': wordlist.c:117:13: warning: 'g_strncasecmp' is deprecated [-Wdeprecated-declarations] 117 | if (0 == g_strncasecmp ((((OtsWordEntery *) li->data)->word), /*fix me: unicode issue?*/ | ^~ /usr/include/glib-2.0/glib/gstrfuncs.h:271:23: note: declared here 271 | gint g_strncasecmp (const gchar *s1, | ^~~~~~~~~~~~~ wordlist.c: In function 'ots_add_wordstat': wordlist.c:174:17: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 174 | if (0==strlen(wordString)) return; | ^~~~~~~~~~ | | | const unsigned char * In file included from wordlist.c:23: /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ wordlist.c:175:17: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] 175 | if (0==strcmp(wordString," ")) return; | ^~~~~~~~~~ | | | const unsigned char * /usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'const unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ wordlist.c:176:17: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] 176 | if (0==strcmp(wordString,"\n")) return; | ^~~~~~~~~~ | | | const unsigned char * /usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'const unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ wordlist.c:177:17: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] 177 | if (0==strcmp(wordString,"\t")) return; | ^~~~~~~~~~ | | | const unsigned char * /usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'const unsigned char *' 156 | extern int strcmp (const char *__s1, const char *__s2) | ~~~~~~~~~~~~^~~~ wordlist.c:180:7: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] 180 | tmp = ots_stem_strip (wordString, rule); | ^ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT wordlist.lo -MD -MP -MF .deps/wordlist.Tpo -c wordlist.c -o wordlist.o >/dev/null 2>&1 mv -f .deps/wordlist.Tpo .deps/wordlist.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT relations.lo -MD -MP -MF .deps/relations.Tpo -c -o relations.lo relations.c libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT relations.lo -MD -MP -MF .deps/relations.Tpo -c relations.c -fPIC -DPIC -o .libs/relations.o relations.c: In function 'ots_text_topics': relations.c:83:47: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 83 | if (text!=NULL) ots_parse_stream (text,strlen(text), Art); /* read text , put it in struct Article */ | ^~~~ | | | const unsigned char * In file included from relations.c:23: /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ relations.c:89:4: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 89 | tmp=ots_word_in_list(Art->ImpWords,i); | ^ relations.c:90:26: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 90 | if ((tmp!=NULL)&&(strlen(tmp)>0)) {g_string_append(word,tmp); | ^~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ In file included from /usr/include/glib-2.0/glib/giochannel.h:36, from /usr/include/glib-2.0/glib.h:56, from grader-tc.h:25, from relations.c:24: /usr/include/glib-2.0/glib/gstring.h:265:34: warning: pointer targets in initialization of 'const char * const' from 'unsigned char *' differ in signedness [-Wpointer-sign] 265 | const char * const __val = (val); \ | ^ relations.c:90:36: note: in expansion of macro 'g_string_append' 90 | if ((tmp!=NULL)&&(strlen(tmp)>0)) {g_string_append(word,tmp); | ^~~~~~~~~~~~~~~ relations.c:90:57: warning: pointer targets in passing argument 2 of 'g_string_append_len_inline' differ in signedness [-Wpointer-sign] 90 | if ((tmp!=NULL)&&(strlen(tmp)>0)) {g_string_append(word,tmp); | ^~~ | | | unsigned char * /usr/include/glib-2.0/glib/gstring.h:245:37: note: in definition of macro 'g_string_append_len' 245 | g_string_append_len_inline (gstr, val, len) | ^~~ relations.c:90:36: note: in expansion of macro 'g_string_append' 90 | if ((tmp!=NULL)&&(strlen(tmp)>0)) {g_string_append(word,tmp); | ^~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/gstring.h:213:41: note: expected 'const char *' but argument is of type 'unsigned char *' 213 | const char *val, | ~~~~~~~~~~~~^~~ relations.c:95:4: warning: pointer targets in assignment from 'gchar *' {aka 'char *'} to 'unsigned char *' differ in signedness [-Wpointer-sign] 95 | str=word->str; | ^ relations.c:99:8: warning: pointer targets in returning 'unsigned char *' from a function with return type 'char *' differ in signedness [-Wpointer-sign] 99 | return str; | ^~~ relations.c: In function 'ots_text_stem_list': relations.c:117:47: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 117 | if (text!=NULL) ots_parse_stream (text,strlen(text), Art); | ^~~~ | | | const unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ relations.c:123:4: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] 123 | tmp=ots_stem_in_list(Art->ImpWords,i); | ^ relations.c:124:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 124 | if ((tmp)&&(strlen(tmp)>0)) | ^~~ | | | unsigned char * /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ In file included from /usr/include/glib-2.0/glib/gstring.h:37: relations.c:125:38: warning: pointer targets in passing argument 1 of 'g_strdup_inline' differ in signedness [-Wpointer-sign] 125 | topics=g_list_append(topics,g_strdup(tmp)); | ^~~ | | | unsigned char * /usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro 'g_strdup' 324 | #define g_strdup(x) g_strdup_inline (x) | ^ /usr/include/glib-2.0/glib/gstrfuncs.h:309:30: note: expected 'const char *' but argument is of type 'unsigned char *' 309 | g_strdup_inline (const char *str) | ~~~~~~~~~~~~^~~ relations.c: In function 'ots_topic_list_score': relations.c:145:33: warning: passing argument 1 of 'g_list_first' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 145 | tmplist1 = g_list_first(topic_list1); | ^~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/ghash.h:36, from /usr/include/glib-2.0/glib.h:52: /usr/include/glib-2.0/glib/glist.h:134:60: note: expected 'GList *' {aka 'struct _GList *'} but argument is of type 'const GList *' {aka 'const struct _GList *'} 134 | GList* g_list_first (GList *list); | ~~~~~~~~~~~~~~~~~~^~~~ relations.c:148:33: warning: passing argument 1 of 'g_list_first' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 148 | tmplist2 = g_list_first(topic_list2); | ^~~~~~~~~~~ /usr/include/glib-2.0/glib/glist.h:134:60: note: expected 'GList *' {aka 'struct _GList *'} but argument is of type 'const GList *' {aka 'const struct _GList *'} 134 | GList* g_list_first (GList *list); | ~~~~~~~~~~~~~~~~~~^~~~ relations.c: In function 'ots_text_topics': /usr/include/glib-2.0/glib/gstring.h:72:5: warning: ignoring return value of 'g_string_free_and_steal' declared with attribute 'warn_unused_result' [-Wunused-result] 68 | (__builtin_constant_p (free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | ((free_segment) ? \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | (g_string_free) ((str), (free_segment)) : \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | g_string_free_and_steal (str)) \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | : \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | (g_string_free) ((str), (free_segment))) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ relations.c:96:1: note: in expansion of macro 'g_string_free' 96 | g_string_free (word, FALSE); | ^~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -DVERSION=\"0.5.0\" -DDICTIONARY_DIR=\"/usr/share/ots/\" -I. -I.. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread -I/usr/include/libxml2 -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -MT relations.lo -MD -MP -MF .deps/relations.Tpo -c relations.c -o relations.o >/dev/null 2>&1 mv -f .deps/relations.Tpo .deps/relations.Plo /bin/sh ../libtool --tag=CC --mode=link gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -version-info 5:0:5 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o libots-1.la -rpath /usr/lib article.lo dictionary.lo grader.lo grader-tf.lo grader-tc.lo html.lo parser.lo text.lo stemmer.lo highlighter.lo wordlist.lo relations.lo -lglib-2.0 -lxml2 libtool: link: gcc -shared -fPIC -DPIC .libs/article.o .libs/dictionary.o .libs/grader.o .libs/grader-tf.o .libs/grader-tc.o .libs/html.o .libs/parser.o .libs/text.o .libs/stemmer.o .libs/highlighter.o .libs/wordlist.o .libs/relations.o -lglib-2.0 -lxml2 -march=x86-64 -mtune=generic -O2 -Werror=format-security -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libots-1.so.0 -o .libs/libots-1.so.0.5.0 libtool: link: (cd ".libs" && rm -f "libots-1.so.0" && ln -s "libots-1.so.0.5.0" "libots-1.so.0") libtool: link: (cd ".libs" && rm -f "libots-1.so" && ln -s "libots-1.so.0.5.0" "libots-1.so") libtool: link: ar cr .libs/libots-1.a article.o dictionary.o grader.o grader-tf.o grader-tc.o html.o parser.o text.o stemmer.o highlighter.o wordlist.o relations.o libtool: link: ranlib .libs/libots-1.a libtool: link: ( cd ".libs" && rm -f "libots-1.la" && ln -s "../libots-1.la" "libots-1.la" ) /bin/sh ../libtool --tag=CC --mode=link gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o ots ots.o libots-1.la -lglib-2.0 -lxml2 -lpopt libtool: link: gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/ots ots.o ./.libs/libots-1.so -lglib-2.0 -lxml2 -lpopt make[2]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/src' Making all in dic make[2]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/dic' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/dic' Making all in doc make[2]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/doc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/doc' make[2]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0' make[2]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0' make[1]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0' ==> Entering fakeroot environment... ==> Starting package()... Making install in src make[1]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/src' make[2]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/src' /usr/sbin/mkdir -p '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib' /bin/sh ../libtool --mode=install /usr/bin/install -c libots-1.la '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib' /usr/sbin/mkdir -p '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/include/libots-1/ots' /usr/bin/install -c -m 644 libots.h '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/include/libots-1/ots' libtool: install: /usr/bin/install -c .libs/libots-1.so.0.5.0 /tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib/libots-1.so.0.5.0 libtool: install: (cd /tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib && { ln -s -f libots-1.so.0.5.0 libots-1.so.0 || { rm -f libots-1.so.0 && ln -s libots-1.so.0.5.0 libots-1.so.0; }; }) libtool: install: (cd /tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib && { ln -s -f libots-1.so.0.5.0 libots-1.so || { rm -f libots-1.so && ln -s libots-1.so.0.5.0 libots-1.so; }; }) libtool: install: /usr/bin/install -c .libs/libots-1.lai /tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib/libots-1.la libtool: install: /usr/bin/install -c .libs/libots-1.a /tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib/libots-1.a libtool: install: chmod 644 /tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib/libots-1.a libtool: install: ranlib /tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib/libots-1.a libtool: warning: remember to run 'libtool --finish /usr/lib' /usr/sbin/mkdir -p '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/bin' /bin/sh ../libtool --mode=install /usr/bin/install -c ots '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/bin' libtool: warning: 'libots-1.la' has not been installed in '/usr/lib' libtool: install: /usr/bin/install -c .libs/ots /tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/bin/ots make[2]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/src' make[1]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/src' Making install in dic make[1]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/dic' make[2]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/dic' make[2]: Nothing to be done for 'install-exec-am'. /usr/sbin/mkdir -p '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/share/ots' /usr/bin/install -c -m 644 bg.xml ca.xml cs.xml cy.xml da.xml de.xml el.xml en.xml eo.xml es.xml et.xml eu.xml fi.xml fr.xml ga.xml gl.xml he.xml hu.xml ia.xml id.xml is.xml it.xml lv.xml mi.xml ms.xml mt.xml nl.xml nn.xml pl.xml pt.xml ro.xml ru.xml sv.xml tl.xml tr.xml uk.xml yi.xml '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/share/ots' make[2]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/dic' make[1]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/dic' Making install in doc make[1]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/doc' make[2]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/doc' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/doc' make[1]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0/doc' make[1]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0' make[2]: Entering directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0' make[2]: Nothing to be done for 'install-exec-am'. /usr/sbin/mkdir -p '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib/pkgconfig' /usr/bin/install -c -m 644 libots-1.pc '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/pkg/libots/usr/lib/pkgconfig' make[2]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0' make[1]: Leaving directory '/tmp/archlinux-ci/libots-archlinuxrb-build-lxGHXcvY/libots/trunk/src/ots-0.5.0' ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> Creating package "libots"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: libots 0.5.0-6 (Sun Jul 30 11:32:15 2023)