=>> Building japanese/namazu build started at Tue Apr 2 23:01:02 BST 2024 port directory: /usr/ports/japanese/namazu package name: ja-namazu-1.3.0.11_1 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: ports@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 703 Mar 8 2023 /usr/ports/japanese/namazu/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: c014f9c79a Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 11 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/11/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ---End OPTIONS List--- --MAINTAINER-- ports@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --prefix=/usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/japanese/namazu/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/japanese/namazu/work XDG_CACHE_HOME=/wrkdirs/usr/ports/japanese/namazu/work/.cache HOME=/wrkdirs/usr/ports/japanese/namazu/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/japanese/namazu/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/japanese/namazu/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288 --End CONFIGURE_ENV-- --MAKE_ENV-- PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/wrkdirs/usr/ports/japanese/namazu/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/japanese/namazu/work XDG_CACHE_HOME=/wrkdirs/usr/ports/japanese/namazu/work/.cache HOME=/wrkdirs/usr/ports/japanese/namazu/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/japanese/namazu/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/japanese/namazu/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.36.3 PERL_VER=5.36 PERL5_MAN1=lib/perl5/site_perl/man/man1 PERL5_MAN3=lib/perl5/site_perl/man/man3 SITE_PERL=lib/perl5/site_perl SITE_ARCH=lib/perl5/site_perl/mach/5.36 DOCSDIR="share/doc/namazu" EXAMPLESDIR="share/examples/namazu" DATADIR="share/namazu" WWWDIR="www/namazu" ETCDIR="etc/namazu" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/namazu DOCSDIR=/usr/local/share/doc/namazu EXAMPLESDIR=/usr/local/share/examples/namazu WWWDIR=/usr/local/www/namazu ETCDIR=/usr/local/etc/namazu --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The namazu port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ja-namazu-1.3.0.11_1 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> ja-namazu-1.3.0.11_1 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of ja-namazu-1.3.0.11_1 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The namazu port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by ja-namazu-1.3.0.11_1 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The namazu port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by ja-namazu-1.3.0.11_1 for building => SHA256 Checksum OK for namazu-1.3.0.11.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> NOTICE: The namazu port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by ja-namazu-1.3.0.11_1 for building ===> Extracting for ja-namazu-1.3.0.11_1 ===> NOTICE: The namazu port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===> Fetching all distfiles required by ja-namazu-1.3.0.11_1 for building => SHA256 Checksum OK for namazu-1.3.0.11.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for ja-namazu-1.3.0.11_1 ===> Applying FreeBSD patches for ja-namazu-1.3.0.11_1 from /usr/ports/japanese/namazu/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ja-namazu-1.3.0.11_1 depends on executable: kakasi - not found ===> Installing existing package /packages/All/ja-kakasi-2.3.5_3.pkg [pkg-builder.dan.net.uk] Installing ja-kakasi-2.3.5_3... [pkg-builder.dan.net.uk] Extracting ja-kakasi-2.3.5_3: .......... done ===> ja-namazu-1.3.0.11_1 depends on executable: kakasi - found ===> Returning to build of ja-namazu-1.3.0.11_1 ===> ja-namazu-1.3.0.11_1 depends on executable: nkf - not found ===> Installing existing package /packages/All/ja-nkf-2.1.5_1,1.pkg [pkg-builder.dan.net.uk] Installing ja-nkf-2.1.5_1,1... [pkg-builder.dan.net.uk] Extracting ja-nkf-2.1.5_1,1: ... done ===> ja-namazu-1.3.0.11_1 depends on executable: nkf - found ===> Returning to build of ja-namazu-1.3.0.11_1 ===> ja-namazu-1.3.0.11_1 depends on package: perl5>=5.36<5.37 - not found ===> Installing existing package /packages/All/perl5-5.36.3_1.pkg [pkg-builder.dan.net.uk] Installing perl5-5.36.3_1... [pkg-builder.dan.net.uk] Extracting perl5-5.36.3_1: .......... done ===> ja-namazu-1.3.0.11_1 depends on package: perl5>=5.36<5.37 - found ===> Returning to build of ja-namazu-1.3.0.11_1 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for ja-namazu-1.3.0.11_1 loading site script /usr/ports/Templates/config.site creating cache ./config.cache checking for gcc... cc checking whether the C compiler (cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong ) works... yes checking whether the C compiler (cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fstack-protector-strong ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking for main in -lm... yes checking how to run the C preprocessor... cpp checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for fcntl.h... (cached) yes checking for unistd.h... (cached) yes checking for working const... yes checking for pid_t... (cached) yes checking for size_t... (cached) yes checking for working alloca.h... (cached) no checking for alloca... yes checking for 8-bit clean memcmp... yes checking for re_comp... no checking for memmove... (cached) yes checking for perl5... (cached) /usr/local/bin/perl checking for nkf... /usr/local/bin/nkf checking for kakasi... /usr/local/bin/kakasi checking for chasen... not_found checking for zcat... /usr/bin/zcat checking for jgroff... no checking for groff... no checking for nroff... no configure: warning: jgroff(, groff and nroff) not found updating cache ./config.cache creating ./config.status creating Makefile =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for ja-namazu-1.3.0.11_1 rm -f mknmz sed -e 's!%OPT_PATH_PERL%!/usr/local/bin/perl!g' -e 's!%OPT_SYSTEM%!UNIX!g' -e 's!%OPT_PATH_NKF%!/usr/local/bin/nkf!g' -e 's!%OPT_PATH_KAKASI%!/usr/local/bin/kakasi!g' -e 's!%OPT_PATH_CHASEN%!/usr/local/bin/chasen!g' -e 's!%OPT_HELPER_ZCAT%!/usr/bin/zcat!g' -e 's!%OPT_HELPER_MAN%!not_found -man -Tnippon!g' -e 's!%OPT_WAKATI_DEFAULT%!KAKASI!g' -e 's!%OPT_ADMIN_EMAIL%!webmaster@foobar.jp!g' -e 's!%OPT_ADMIN_NAME%!!g' -e 's!%OPT_URL_CGIBIN%!/cgi-bin!g' -e 's!%OPT_TARGET_FILE%!.*\\.html?|.*\\.txt|.*_default!g' -e 's!%OPT_DENY_FILE%!.*\\.gif|.*\\.(jpg|jpeg)|.*\\.tar\\.gz|core|.*\\.bak|.*~|\\..*|\\x23.*|NMZ\\..*!g' -e 's!%OPT_DEFAULT_FILE%!_default!g' -e 's!%OPT_ON_MEMORY_MAX%!5000000!g' -e 's!%OPT_FILE_SIZE_LIMIT%!600000!g' -e 's!%OPT_LIBDIR%!/usr/local/namazu/lib!g' -e 's!%OPT_LANGUAGE%!ja!g' -e 's!%OPT_HTDOCUMENT_ROOT%!/usr/local/apache/share/htdocs!g' -e 's!%OPT_HTDOCUMENT_ROOT_URL_PREFIX%!http://www.foo.domain.jp/!g' -e 's!%OPT_ROBOTS_EXCLUDE_URLS%!''!g' mknmz.pl > mknmz chmod +x mknmz rm -f wdnmz sed -e 's!%OPT_PATH_PERL%!/usr/local/bin/perl!g' -e 's!%OPT_SYSTEM%!UNIX!g' -e 's!%OPT_PATH_NKF%!/usr/local/bin/nkf!g' -e 's!%OPT_LANGUAGE%!ja!g' wdnmz.pl > wdnmz chmod +x wdnmz rm -f rvnmz sed -e 's!%OPT_PATH_PERL%!/usr/local/bin/perl!g' -e 's!%OPT_SYSTEM%!UNIX!g' -e 's!%OPT_PATH_NKF%!/usr/local/bin/nkf!g' rvnmz.pl > rvnmz chmod +x rvnmz rm -f clnmz sed -e 's!%OPT_PATH_PERL%!/usr/local/bin/perl!g' -e 's!%OPT_SYSTEM%!UNIX!g' -e 's!%OPT_PATH_NKF%!/usr/local/bin/nkf!g' clnmz.pl > clnmz chmod +x clnmz rm -f vfnmz sed -e 's!%OPT_PATH_PERL%!/usr/local/bin/perl!g' -e 's!%OPT_SYSTEM%!UNIX!g' -e 's!%OPT_PATH_NKF%!/usr/local/bin/nkf!g' vfnmz.pl > vfnmz chmod +x vfnmz rm -f mailutime sed -e 's!%OPT_PATH_PERL%!/usr/local/bin/perl!g' mailutime.pl > mailutime chmod +x mailutime rm -f gcnmz sed -e 's!%OPT_PATH_PERL%!/usr/local/bin/perl!g' gcnmz.pl > gcnmz chmod +x gcnmz rm -f gtnmz sed -e 's!%OPT_PATH_PERL%!/usr/local/bin/perl!g' gtnmz.pl > gtnmz chmod +x gtnmz cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c namazu.c namazu.c:49:8: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, output); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ namazu.c:61:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((fp = fopen(fname, "rb"))) { ^~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ namazu.c:62:15: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] while (fgets(buf, BUFSIZE, fp)) ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ namazu.c:63:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(buf, stdout); ^~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ namazu.c:73:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(buf, MSG_USAGE); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:73:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(buf, MSG_USAGE); ^~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:77:21: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fprintf(stderr, buf, COPYRIGHT, VERSION); ^~~ /usr/include/stdio.h:260:56: note: passing argument to parameter here int fprintf(FILE * __restrict, const char * __restrict, ...); ^ namazu.c:87:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (-1 == (fd = open(fname, O_CREAT | O_TRUNC | O_WRONLY, 00600))) ^~~~~ /usr/include/fcntl.h:360:22: note: passing argument to parameter here int open(const char *, int, ...); ^ namazu.c:107:41: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] HListMax = atoi(av[++i]); ^~~~~~~ /usr/include/stdlib.h:94:23: note: passing argument to parameter here int atoi(const char *); ^ namazu.c:113:44: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] HListWhence = atoi(av[++i]); ^~~~~~~ /usr/include/stdlib.h:94:23: note: passing argument to parameter here int atoi(const char *); ^ namazu.c:165:32: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(NAMAZURC, av[++i]); ^~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:165:42: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(NAMAZURC, av[++i]); ^~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:170:33: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Lang, av[i + 1], 2); ^~~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ namazu.c:170:39: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Lang, av[i + 1], 2); ^~~~~~~~~ /usr/include/string.h:107:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ namazu.c:181:37: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(av[i + 1], "SIMPLE")) ^~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ namazu.c:183:37: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(av[i + 1], "TFIDF")) ^~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ namazu.c:215:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for (i = strlen(name) - 1; i >= 0; i--) { ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ namazu.c:217:20: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, name + i + 1); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:217:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, name + i + 1); ^~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:221:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(work, base); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:221:18: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(work, base); ^~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:222:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(work, "/"); ^~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ namazu.c:223:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(work, name); ^~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ namazu.c:223:18: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(work, name); ^~~~ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ namazu.c:224:12: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, work); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:224:18: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, work); ^~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:253:12: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(query_with_subquery, query); ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:253:33: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(query_with_subquery, query); ^~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:254:12: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(query_with_subquery, " "); ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ namazu.c:255:12: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(query_with_subquery, subquery); ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ namazu.c:255:33: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(query_with_subquery, subquery); ^~~~~~~~ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ namazu.c:260:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, stdout); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ namazu.c:275:8: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, stdout); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ namazu.c:299:16: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(NAMAZURC, env_namazu_conf); ^~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:299:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(NAMAZURC, env_namazu_conf); ^~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:308:25: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(DbNames[i], DbNames[j])) { ^~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ namazu.c:308:37: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(DbNames[i], DbNames[j])) { ^~~~~~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ namazu.c:344:32: warning: incompatible pointer types passing 'char **' to parameter of type 'uchar **' (aka 'unsigned char **') [-Wincompatible-pointer-types] i = get_commandline_opt(argc, argv); ^~~~ namazu.c:97:41: note: passing argument to parameter 'av' here int get_commandline_opt(int ac, uchar * av[]) ^ namazu.c:351:16: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(query, argv[i++]); ^~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:360:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], argv[i]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:368:41: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (uchar *) malloc(strlen(DEFAULT_DIR) + 1); ^~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ namazu.c:372:20: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], DEFAULT_DIR); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:372:39: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], DEFAULT_DIR); ^~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ namazu.c:386:34: warning: passing 'char *' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] namazu_core(query, subquery, argv[0]); ^~~~~~~ namazu.c:245:57: note: passing argument to parameter 'av0' here void namazu_core(uchar * query, uchar *subquery, uchar *av0) ^ 44 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c codeconv.c codeconv.c:153:11: warning: result of comparison of constant 159 with boolean expression is always true [-Wtautological-constant-out-of-range-compare] else if (iskanji1st(c)) { ^~~~~~~~~~~~~ codeconv.c:40:45: note: expanded from macro 'iskanji1st' #define iskanji1st(c) (((c) >= 0x81 && (c)) <= 0x9f ||\ ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~ codeconv.c:229:21: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!is_lang_ja(Lang)) { /* Lang != ja */ ^~~~ ./namazu.h:27:32: note: expanded from macro 'is_lang_ja' #define is_lang_ja(a) (!strcmp(a,"ja")) ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ 2 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c messages.c messages.c:40:8: warning: initializing 'uchar *' (aka 'unsigned char *') with an expression of type 'char[9]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] uchar *VERSION = "1.3.0.11"; ^ ~~~~~~~~~~ messages.c:41:8: warning: initializing 'uchar *' (aka 'unsigned char *') with an expression of type 'char[66]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] uchar *COPYRIGHT = ^ messages.c:60:20: warning: passing 'uchar[3]' (aka 'unsigned char[3]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (is_lang_ja(Lang)) { ^~~~ ./namazu.h:27:32: note: expanded from macro 'is_lang_ja' #define is_lang_ja(a) (!strcmp(a,"ja")) ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ messages.c:64:25: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[49]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_MIME_HEADER = "Content-type: text/html; charset=ISO-2022-JP\r\n\r\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:68:3: warning: illegal character encoding in string literal [-Winvalid-source-encoding] ʸƥ Namazu θץ v%s\n\n\ ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:70:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -n (num) : ٤ɽ\n\ ^~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:71:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -w (num) : ɽȤƬֹ\n\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~~~ messages.c:72:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -s : ûեޥåȤǽ\n\ ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:73:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -S : äûեޥå (ɽ) ǽ\n\ ^~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~ messages.c:74:24: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -v : usage ɽ (ɽ)\n\ ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ messages.c:75:30: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -f (file) : namazu.conf \n\ ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ messages.c:76:23: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -h : HTML ǽϤ\n\ ^~~~ ~~~~~~~~ ~~~~~~~~~~~~ messages.c:77:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -l : ˥Ȥ\n\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:78:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -e : Ť˥Ȥ\n\ ^~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:79:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -a : ̤٤ɽ\n\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:80:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -c : ҥåȿΤߤɽ\n\ ^~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:81:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -r : ͥҥåȿɽʤ\n\ ^~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~ messages.c:82:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -o (file) : ե˸̤Ϥ\n\ ^~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:83:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -C : եƤɽ\n\ ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:84:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -H : θ̤ؤΥɽ (̵̣ۤ) \n\ ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ messages.c:85:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -F :
...
ʬŪɽ\n\ ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:86:22: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -R : URL ֤Ԥʤ\n\ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ messages.c:87:29: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -U : plain text ǽϤ URL encode Ԥʤ\n\ ^~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ messages.c:88:18: warning: illegal character encoding in string literal [-Winvalid-source-encoding] -L (lang) : åθ ja ޤ en\n"; ^~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~ messages.c:67:17: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[999]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_USAGE = "%s\n\ ^ ~~~~~~ messages.c:93:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\t

顼!

\n

Ĺޤ

\n"; ^~~~~~~~~~~~ messages.c:93:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\t

顼!

\n

Ĺޤ

\n"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:92:26: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[47]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_TOO_LONG_KEY = ^ messages.c:95:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\t

顼!

\n

ιܤ¿ޤ

\n"; ^~~~~~~~~~~~ messages.c:95:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\t

顼!

\n

ιܤ¿ޤ

\n"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:94:30: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[53]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_TOO_MANY_KEYITEM = ^ messages.c:96:41: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_QUERY_STRING_TOO_LONG = "CGIΥĹޤ"; ^~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~ messages.c:96:35: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[26]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_QUERY_STRING_TOO_LONG = "CGIΥĹޤ"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:98:20: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\t

顼!

\n

Ǥ

\n"; ^~~~~~~~~~~~ messages.c:98:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding] "\t

顼!

\n

Ǥ

\n"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:97:27: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[45]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_INVALID_QUERY = ^ messages.c:99:36: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_RESULT_HEADER = "\t

\n"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:99:27: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[20]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_RESULT_HEADER = "\t

\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:100:28: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_NO_HIT = "\t

˥ޥåʸϤޤǤ

\n"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ messages.c:100:20: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[52]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_NO_HIT = "\t

˥ޥåʸϤޤǤ

\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:101:35: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_HIT_1 = "\t

˥ޥå "; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ messages.c:101:19: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[32]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_HIT_1 = "\t

˥ޥå "; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:102:25: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_HIT_2 = "\t ĤʸĤޤ

\n\n"; ^~~~ ~~~~ ~~~~ ~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ messages.c:102:19: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[44]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_HIT_2 = "\t ĤʸĤޤ

\n\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:103:31: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_TOO_MUCH_HIT = " (ҥåȿ¿Τ̵ޤ)"; ^~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~ messages.c:103:26: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[38]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_TOO_MUCH_HIT = " (ҥåȿ¿Τ̵ޤ)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:104:33: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_TOO_MUCH_MATCH = " (ޥåñ줬¿Τ̵ޤ)"; ^~~~ ~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~ ~~~~~~~~~~~~ messages.c:104:28: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[44]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_TOO_MUCH_MATCH = " (ޥåñ줬¿Τ̵ޤ)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:105:36: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_CANNOT_OPEN_INDEX = " (ǥåޤǤ)\n"; ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:105:31: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[35]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_CANNOT_OPEN_INDEX = " (ǥåޤǤ)\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:106:42: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_CANNOT_OPEN_REGEX_INDEX = " (ɽѥǥåޤǤ)"; ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:106:37: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[44]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_CANNOT_OPEN_REGEX_INDEX = " (ɽѥǥåޤǤ)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:107:42: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_CANNOT_OPEN_FIELD_INDEX = " (եɸѥǥåޤǤ)"; ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:107:37: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[50]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_CANNOT_OPEN_FIELD_INDEX = " (եɸѥǥåޤǤ)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:108:43: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_CANNOT_OPEN_PHRASE_INDEX = " (ե졼ѥǥåޤǤ)"; ^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ messages.c:108:38: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[48]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_CANNOT_OPEN_PHRASE_INDEX = " (ե졼ѥǥåޤǤ)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:109:40: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_INDEXDIR_ERROR = "INDEXDIR ǧƤ\n"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:109:28: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[35]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_INDEXDIR_ERROR = "INDEXDIR ǧƤ\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:110:43: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_REFERENCE_HEADER = "\tͥҥåȿ: "; ^~~~~~~~~~~~ ~~~~ messages.c:110:30: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[33]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_REFERENCE_HEADER = "\tͥҥåȿ: "; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:111:32: warning: illegal character encoding in string literal [-Winvalid-source-encoding] MSG_INVALID_DB_NAME = " dbname λǤ"; ^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~ ~~~~~~~~~~~~~~~~ ~~~~ messages.c:111:29: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[25]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_INVALID_DB_NAME = " dbname λǤ"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:116:25: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[28]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_MIME_HEADER = "Content-type: text/html\r\n\r\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:119:19: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[1032]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_USAGE = "%s\n\ ^ ~~~~~~ messages.c:142:26: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[41]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_TOO_LONG_KEY = ^ messages.c:144:30: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[43]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_TOO_MANY_KEYITEM = ^ messages.c:146:35: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[26]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_QUERY_STRING_TOO_LONG = "Too long CGI query length"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:147:27: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[40]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_INVALID_QUERY = ^ messages.c:149:27: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[20]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_RESULT_HEADER = "\t

Results:

\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~ messages.c:150:20: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[19]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_NO_HIT = "\t

No match.

\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~ messages.c:151:19: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[20]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_HIT_1 = "\t

Total "; ^ ~~~~~~~~~~~~~~~~~~~~~~ messages.c:152:19: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[45]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_HIT_2 = "\t documents match your query.

\n\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:153:26: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[28]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_TOO_MUCH_HIT = " (Too many pages. Ignored.)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:154:28: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[28]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_TOO_MUCH_MATCH = " (Too many words. Ignored.)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:155:31: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[22]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_CANNOT_OPEN_INDEX = " (cannot open index)\n"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:156:37: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[27]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_CANNOT_OPEN_FIELD_INDEX = " (cannot open field index)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:157:37: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[27]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_CANNOT_OPEN_REGEX_INDEX = " (cannot open regex index)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:158:38: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[28]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_CANNOT_OPEN_PHRASE_INDEX = " (cannot open phrase index)"; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ messages.c:159:28: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[53]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_INDEXDIR_ERROR = ^ messages.c:161:30: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[13]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_REFERENCE_HEADER = "Word count: "; ^ ~~~~~~~~~~~~~~ messages.c:162:29: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[16]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MSG_INVALID_DB_NAME = "Invalid dbname."; ^ ~~~~~~~~~~~~~~~~~ messages.c:164:12: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(HEADERFILE, "NMZ.head."); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ messages.c:165:12: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(FOOTERFILE, "NMZ.foot."); ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ messages.c:166:12: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(BODYMSGFILE, "NMZ.body."); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ messages.c:167:12: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(HEADERFILE, Lang); ^~~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ messages.c:167:24: warning: passing 'uchar[3]' (aka 'unsigned char[3]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(HEADERFILE, Lang); ^~~~ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ messages.c:168:12: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(FOOTERFILE, Lang); ^~~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ messages.c:168:24: warning: passing 'uchar[3]' (aka 'unsigned char[3]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(FOOTERFILE, Lang); ^~~~ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ messages.c:169:12: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(BODYMSGFILE, Lang); ^~~~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ messages.c:169:25: warning: passing 'uchar[3]' (aka 'unsigned char[3]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(BODYMSGFILE, Lang); ^~~~ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ 90 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c parser.c parser.c:57:18: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((!strcmp(c, AND_STRING)) || ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:58:11: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (!strcmp(c, AND_STRING_ALT)) || ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:59:11: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (!strcmp(c, OR_STRING)) || ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:60:11: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (!strcmp(c, OR_STRING_ALT)) || ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:61:11: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (!strcmp(c, NOT_STRING)) || ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:62:11: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (!strcmp(c, NOT_STRING_ALT)) || ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:63:11: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (!strcmp(c, LP_STRING)) || ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:64:11: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (!strcmp(c, RP_STRING))) ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:79:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(KeyItem[Cp], LP_STRING)) { ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:86:25: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(KeyItem[Cp], RP_STRING)) ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:111:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(KeyItem[Cp], AND_STRING) || ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:112:10: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] !strcmp(KeyItem[Cp], AND_STRING_ALT)) { ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:116:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(KeyItem[Cp], NOT_STRING) || ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:117:10: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] !strcmp(KeyItem[Cp], NOT_STRING_ALT)) { ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:121:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(KeyItem[Cp], LP_STRING)) ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:151:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(KeyItem[Cp], OR_STRING) || ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ parser.c:152:10: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] !strcmp(KeyItem[Cp], OR_STRING_ALT)) { ^~~~~~~~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ 17 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c cgi.c cgi.c:34:8: warning: initializing 'uchar *' (aka 'unsigned char *') with an expression of type 'char[1]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] uchar *ScriptName = "", *QueryString = "", *ContentLength = ""; ^ ~~ cgi.c:34:26: warning: initializing 'uchar *' (aka 'unsigned char *') with an expression of type 'char[1]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] uchar *ScriptName = "", *QueryString = "", *ContentLength = ""; ^ ~~ cgi.c:34:45: warning: initializing 'uchar *' (aka 'unsigned char *') with an expression of type 'char[1]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] uchar *ScriptName = "", *QueryString = "", *ContentLength = ""; ^ ~~ cgi.c:45:15: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, stdout); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ cgi.c:50:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp("../", dbname, 3) == 0 || ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:51:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcmp("..", dbname) == 0 || ^~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ cgi.c:52:39: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] (win32 && strncmp("..\\", dbname, 3) == 0)) ^~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:54:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, stdout); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ cgi.c:81:22: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((QueryString = getenv("QUERY_STRING"))) { ^ ~~~~~~~~~~~~~~~~~~~~~~ cgi.c:82:33: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] content_length = strlen(QueryString); ^~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cgi.c:84:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, stdout); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ cgi.c:88:26: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!(ScriptName = getenv("SCRIPT_NAME"))) { ^ ~~~~~~~~~~~~~~~~~~~~~ cgi.c:92:21: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((ContentLength = getenv("CONTENT_LENGTH"))) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~ cgi.c:93:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] content_length = atoi(ContentLength); ^~~~~~~~~~~~~ /usr/include/stdlib.h:94:23: note: passing argument to parameter here int atoi(const char *); ^ cgi.c:95:23: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, stdout); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ cgi.c:117:29: warning: passing 'char *' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] validate_dbname(path_info); ^~~~~~~~~ cgi.c:37:29: note: passing argument to parameter 'dbname' here int validate_dbname(uchar * dbname) ^ cgi.c:118:21: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sprintf(tmp, "%s%s", DEFAULT_DIR, path_info); ^~~ /usr/include/stdio.h:286:31: note: passing argument to parameter here int sprintf(char * __restrict, const char * __restrict, ...); ^ cgi.c:119:57: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] DbNames[DbNumber] = (uchar *) malloc(strlen(tmp) + 1); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cgi.c:123:20: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], tmp); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:123:39: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], tmp); ^~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:132:29: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "key=", 4)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:140:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strlen(query) > QUERY_MAX_LENGTH) { ^~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cgi.c:141:23: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, stdout); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ cgi.c:149:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(query, "%1B", 3)) { ^~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:155:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif MSIE4MACFIX ^ // cgi.c:157:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "subquery=", 4)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:165:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strlen(subquery) > QUERY_MAX_LENGTH) { ^~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cgi.c:166:23: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(MSG_MIME_HEADER, stdout); ^~~~~~~~~~~~~~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ cgi.c:174:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(subquery, "%1B", 3)) { ^~~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:180:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif MSIE4MACFIX ^ // cgi.c:182:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "format=short", 12)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:185:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "sort=", 5)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:187:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(qs, "score", 5)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:190:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "later", 5)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:194:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "earlier", 7)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:201:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "max=", 4)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:203:13: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sscanf(qs, "%d", &HListMax); ^~ /usr/include/stdio.h:287:36: note: passing argument to parameter here int sscanf(const char * __restrict, const char * __restrict, ...); ^ cgi.c:210:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "whence=", 7)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:212:13: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] sscanf(qs, "%d", &HListWhence); ^~ /usr/include/stdio.h:287:36: note: passing argument to parameter here int sscanf(const char * __restrict, const char * __restrict, ...); ^ cgi.c:217:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "lang=", 5)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:219:21: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Lang, qs, 2); ^~~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ cgi.c:219:27: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Lang, qs, 2); ^~ /usr/include/string.h:107:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ cgi.c:224:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "reference=off", 13)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:227:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "mode=tknamazu", 13)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:230:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(qs, "dbname=", 7)) { ^~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ cgi.c:241:33: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((x = strchr(pp, (int)','))) { ^~ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ cgi.c:241:24: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((x = strchr(pp, (int)','))) { ^ ~~~~~~~~~~~~~~~~~~~~ cgi.c:243:28: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, pp); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:243:34: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, pp); ^~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:246:28: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, pp); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:246:34: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, pp); ^~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:247:34: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] pp += strlen(pp); ^~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cgi.c:253:35: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] malloc(strlen(DEFAULT_DIR) + 1 + strlen(name) + 1); ^~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cgi.c:253:61: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] malloc(strlen(DEFAULT_DIR) + 1 + strlen(name) + 1); ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cgi.c:258:24: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], DEFAULT_DIR); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:258:43: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], DEFAULT_DIR); ^~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:259:24: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(DbNames[DbNumber], "/"); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ cgi.c:260:24: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(DbNames[DbNumber], name); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ cgi.c:260:43: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(DbNames[DbNumber], name); ^~~~ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ cgi.c:280:53: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] DbNames[DbNumber] = (uchar *) malloc(strlen(DEFAULT_DIR) + 1); ^~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ cgi.c:284:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], DEFAULT_DIR); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ cgi.c:284:35: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DbNames[DbNumber], DEFAULT_DIR); ^~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ 62 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c wakati.c wakati.c:78:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for (i = 0; i < strlen(key); ) { ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ wakati.c:93:11: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(tmp, key + i, j + 2); ^~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ wakati.c:93:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(tmp, key + i, j + 2); ^~~~~~~ /usr/include/string.h:107:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ wakati.c:102:11: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncat(buf, key + i, key_leng); ^~~ /usr/include/string.h:105:32: note: passing argument to parameter here char *strncat(char * __restrict, const char * __restrict, size_t); ^ wakati.c:102:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncat(buf, key + i, key_leng); ^~~~~~~ /usr/include/string.h:105:57: note: passing argument to parameter here char *strncat(char * __restrict, const char * __restrict, size_t); ^ wakati.c:103:24: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(buf, "\t"); ^~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ wakati.c:113:33: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncat(buf, key + i + j, 2); ^~~ /usr/include/string.h:105:32: note: passing argument to parameter here char *strncat(char * __restrict, const char * __restrict, size_t); ^ wakati.c:113:38: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncat(buf, key + i + j, 2); ^~~~~~~~~~~ /usr/include/string.h:105:57: note: passing argument to parameter here char *strncat(char * __restrict, const char * __restrict, size_t); ^ wakati.c:116:28: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(buf, "\t"); ^~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ wakati.c:118:29: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncat(buf, key + i, 2); ^~~ /usr/include/string.h:105:32: note: passing argument to parameter here char *strncat(char * __restrict, const char * __restrict, size_t); ^ wakati.c:118:34: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncat(buf, key + i, 2); ^~~~~~~ /usr/include/string.h:105:57: note: passing argument to parameter here char *strncat(char * __restrict, const char * __restrict, size_t); ^ wakati.c:119:28: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(buf, "\t"); ^~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ wakati.c:127:25: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncat(buf, key + i, 1); ^~~ /usr/include/string.h:105:32: note: passing argument to parameter here char *strncat(char * __restrict, const char * __restrict, size_t); ^ wakati.c:127:30: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncat(buf, key + i, 1); ^~~~~~~ /usr/include/string.h:105:57: note: passing argument to parameter here char *strncat(char * __restrict, const char * __restrict, size_t); ^ wakati.c:130:20: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(buf, "\t"); ^~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ wakati.c:135:16: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strlen(buf) <= BUFSIZE) { ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ wakati.c:136:9: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, buf); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ wakati.c:136:14: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, buf); ^~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ wakati.c:139:2: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); ^ wakati.c:139:2: note: include the header or explicitly provide a declaration for 'exit' wakati.c:228:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strlen(qs) >= BUFSIZE - 1) { ^~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ wakati.c:233:12: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(KeyTable, qs); ^~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ wakati.c:233:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(KeyTable, qs); ^~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ wakati.c:282:20: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (is_lang_ja(Lang)) { ^~~~ ./namazu.h:27:32: note: expanded from macro 'is_lang_ja' #define is_lang_ja(a) (!strcmp(a,"ja")) ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ 23 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c conf.c conf.c:82:25: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((fp = fopen(NAMAZURC, "rb"))) { ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ conf.c:83:20: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(NAMAZU_CONF, NAMAZURC); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:83:33: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(NAMAZU_CONF, NAMAZURC); ^~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:91:16: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(NAMAZU_CONF, fname); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:100:20: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(NAMAZU_CONF, fname); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:106:21: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((fp = fopen(NAMAZU_CONF, "rb"))) { ^~~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ conf.c:132:18: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] while (fgets(buf, BUFSIZE, fp)) { ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ conf.c:134:15: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(buf, "INDEX\t", 6)) { ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:136:13: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DEFAULT_DIR, buf + n); ^~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:136:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(DEFAULT_DIR, buf + n); ^~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:137:22: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(buf, "BASE\t", 5)) { ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:139:13: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(BASE_URL, buf + n); ^~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:139:23: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(BASE_URL, buf + n); ^~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:140:22: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(buf, "REPLACE\t", 8)) { ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:146:13: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(URL_REPLACE_TO[url_no], buf + n); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:146:37: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(URL_REPLACE_TO[url_no], buf + n); ^~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ conf.c:148:22: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(buf, "LOGGING\t", 8)) { ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:150:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(&buf[n], "OFF", 3)) ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:152:22: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(buf, "SCORING\t", 8)) { ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:154:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(&buf[n], "TFIDF", 5)) ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:156:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(&buf[n], "SIMPLE", 6)) ^~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:158:22: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(buf, "LANG\t", 5)) { ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ conf.c:160:14: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Lang, &buf[n], 2); ^~~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ conf.c:160:20: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(Lang, &buf[n], 2); ^~~~~~~ /usr/include/string.h:107:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ 24 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c hlist.c hlist.c:283:24: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] date_index = fopen(DATEINDEX, "rb"); ^~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ hlist.c:327:11: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(tmp, BUFSIZE, Index); /* read and dispose */ ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ hlist.c:436:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tmp, s); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:436:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tmp, s); ^ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:438:36: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp("
"); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:443:33: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp("", &tmp[i], 4)) ^~~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ hlist.c:458:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tmp, s); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:458:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tmp, s); ^ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:461:21: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] n_from = strlen(URL_REPLACE_FROM[n]); ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ hlist.c:462:19: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] n_to = strlen(URL_REPLACE_TO[n]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ hlist.c:464:18: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(URL_REPLACE_FROM[n], tmp, n_from)) { ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ hlist.c:464:39: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(URL_REPLACE_FROM[n], tmp, n_from)) { ^~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ hlist.c:465:9: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(s, URL_REPLACE_TO[n]); ^ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:465:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(s, URL_REPLACE_TO[n]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:469:22: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (opt && !strncmp(URL_REPLACE_FROM[n], tmp + i, n_from)) { ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ hlist.c:469:43: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (opt && !strncmp(URL_REPLACE_FROM[n], tmp + i, n_from)) { ^~~~~~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ hlist.c:470:13: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(s + j, URL_REPLACE_TO[n]); ^~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:470:20: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(s + j, URL_REPLACE_TO[n]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ hlist.c:495:19: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Flist = fopen(FLIST, "rb"); ^~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ hlist.c:499:24: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] FlistIndex = fopen(FLISTINDEX, "rb"); ^~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ hlist.c:514:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for (i = strlen(s) -1; i > 0; i--) { ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ hlist.c:515:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(s + i, "size", 4)) { ^~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ hlist.c:551:17: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!fgets(buf, BUFSIZE, Flist) || *buf == '\n') { ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ hlist.c:568:48: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp("
", 4)) { ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ output.c:116:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(s, "<", 4)) { ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ output.c:119:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(s, ">", 4)) { ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ output.c:122:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(s, "&", 5)) { ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ output.c:139:22: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (! is_lang_ja(Lang)) { /* Lang != ja */ ^~~~ ./namazu.h:27:32: note: expanded from macro 'is_lang_ja' #define is_lang_ja(a) (!strcmp(a,"ja")) ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ output.c:209:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(buf, str + is_html); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ output.c:209:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(buf, str + is_html); ^~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ 12 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c search.c search.c:47:11: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] c = (char *)(p + i); ^ ~~~~~~~~~~~~~~~ search.c:72:11: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(buf, BUFSIZE, Index); ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ search.c:75:11: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(buf, BUFSIZE, Index); ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ search.c:104:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, orig_key); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:104:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, orig_key); ^~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:117:8: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(buf, BUFSIZE, Index); ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ search.c:158:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, orig_key); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:158:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, orig_key); ^~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:160:16: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] n = strlen(key); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ search.c:164:8: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(buf, BUFSIZE, Index); ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ search.c:165:14: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp(key, buf, n)) ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ search.c:165:19: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strncmp(key, buf, n)) ^~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ search.c:181:8: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(buf, BUFSIZE, Index); ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ search.c:183:15: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(key, buf, n)) { ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ search.c:183:20: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(key, buf, n)) { ^~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ search.c:243:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strlen(key) <= 1) ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ search.c:256:34: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] && *(key + strlen(key) - 2) != '\\' ) ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ search.c:262:27: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] && *(key + strlen(key) - 2) != '\\') ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ search.c:275:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, key + 1); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:275:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, key + 1); ^~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:282:20: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (is_lang_ja(Lang)) { ^~~~ ./namazu.h:27:32: note: expanded from macro 'is_lang_ja' #define is_lang_ja(a) (!strcmp(a,"ja")) ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ search.c:286:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strchr(key, '\t')) { ^~~ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ search.c:305:20: warning: initializing 'uchar *' (aka 'unsigned char *') with an expression of type 'char[1]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] uchar *msg = ""; ^ ~~ search.c:307:21: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[5]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] msg = ": 0 "; ^ ~~~~~~ search.c:317:7: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char[14]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] msg = "unknown error"; ^ ~~~~~~~~~~~~~~~ search.c:414:21: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *phrase = fopen(PHRASE, "rb"); ^~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:419:27: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] *phrase_index = fopen(PHRASEINDEX, "rb"); ^~~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:435:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strchr(p, '\t') == NULL) { /* if only one word */ ^ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ search.c:452:20: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] q = strchr(p, '\t'); ^ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ search.c:452:11: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] q = strchr(p, '\t'); ^ ~~~~~~~~~~~~~~~ search.c:455:20: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strlen(p) > 0) { ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ search.c:468:14: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(word_mix, word_b); ^~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:468:24: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(word_mix, word_b); ^~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:469:14: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(word_mix, p); ^~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ search.c:469:24: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(word_mix, p); ^ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ search.c:500:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, expr + 1); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:500:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, expr + 1); ^~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:501:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(expr, "$"); ^~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ search.c:505:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(expr, "*"); ^~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ search.c:508:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, expr + 1); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:508:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, expr + 1); ^~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:513:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, expr + 1); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:513:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, expr + 1); ^~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:522:20: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, expr + 1); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:522:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, expr + 1); ^~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:538:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, buf); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:538:22: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, buf); ^~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:547:12: warning: passing 'uchar[2048]' (aka 'unsigned char[2048]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, orig_expr); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:547:18: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, orig_expr); ^~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:550:16: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fp = fopen(WORDLIST, "rb"); ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:577:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strcmp(field, "title") == 0) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ search.c:578:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(field, "subject"); ^~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:579:23: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (strcmp(field, "author") == 0) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ search.c:580:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(field, "from"); ^~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:581:23: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (strcmp(field, "path") == 0) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ search.c:582:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(field, "url"); ^~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:588:18: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] str = strchr(str, (int)':') + 1; ^~~ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ search.c:588:9: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] str = strchr(str, (int)':') + 1; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ search.c:589:12: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, str); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:589:18: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, str); ^~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:602:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(file_name, FIELDINFO); /* make pathname */ ^~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:602:23: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(file_name, FIELDINFO); /* make pathname */ ^~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:603:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(file_name, field_name); ^~~~~~~~~ /usr/include/string.h:80:31: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ search.c:603:23: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcat(file_name, field_name); ^~~~~~~~~~ /usr/include/string.h:80:56: note: passing argument to parameter here char *strcat(char * __restrict, const char * __restrict); ^ search.c:605:16: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fp = fopen(file_name, "rb"); ^~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:619:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(str, str + 1); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:619:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(str, str + 1); ^~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:628:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, orig_key); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:628:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(key, orig_key); ^~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:657:23: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((lock = fopen(LOCKFILE, "rb"))) { ^~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:676:25: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((fp = fopen(BIGENDIAN, "rb"))) { ^~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:681:25: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((fp = fopen(LITTLEENDIAN, "rb"))) { ^~~~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:696:19: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Index = fopen(INDEX, "rb"); ^~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:700:24: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] IndexIndex = fopen(INDEXINDEX, "rb"); ^~~~~~~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:704:18: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] Hash = fopen(HASH, "rb"); ^~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:781:10: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] stat(FLISTINDEX, &st); ^~~~~~~~~~ /usr/include/sys/stat.h:395:33: note: passing argument to parameter here int stat(const char * __restrict, struct stat * __restrict); ^ search.c:807:18: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] slog = fopen(SLOG, "a"); ^~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ search.c:842:66: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] printf("
  • %s: ", get_dir_name(DbNames[n])); ^~~~~~~~~~ search.c:824:26: note: passing argument to parameter 'path' here char *get_dir_name(char *path) ^ search.c:856:38: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (KeyItem[1] == NULL && strchr(KeyItem[0], '\t') == NULL) ^~~~~~~~~~ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ search.c:911:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(query_orig, query); /* save */ ^~~~~~~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ search.c:911:24: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(query_orig, query); /* save */ ^~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ 81 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c values.c cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c form.c form.c:46:10: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] stat(fname, &fstatus); ^~~~~ /usr/include/sys/stat.h:395:33: note: passing argument to parameter here int stat(const char * __restrict, struct stat * __restrict); ^ form.c:47:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fp = fopen(fname, "rb"); ^~~~~ /usr/include/stdio.h:259:36: note: passing argument to parameter here FILE *fopen(const char * __restrict, const char * __restrict); ^ form.c:95:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(query, orig_query); ^~~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ form.c:95:19: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(query, orig_query); ^~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ form.c:97:25: warning: passing 'char[29]' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!cmp_element(p, "INPUT TYPE=\"TEXT\" NAME=\"key\"")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ form.c:68:35: note: passing argument to parameter 's2' here int cmp_element(uchar *s1, uchar *s2) ^ form.c:111:25: warning: passing 'char[18]' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!cmp_element(p, "FORM METHOD=\"GET\"")) { ^~~~~~~~~~~~~~~~~~~~~ form.c:68:35: note: passing argument to parameter 's2' here int cmp_element(uchar *s1, uchar *s2) ^ form.c:129:16: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] l = strlen(d); ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ form.c:131:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(tmp, d, l)) { ^~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ form.c:131:27: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(tmp, d, l)) { ^ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ form.c:132:20: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tmp, tmp + l); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ form.c:132:25: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tmp, tmp + l); ^~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ form.c:143:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(s, "VALUE=\"", 7)) { ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ form.c:157:29: warning: passing 'char[14]' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!cmp_element(s, "SELECT NAME=\"")) { ^~~~~~~~~~~~~~~~ form.c:68:35: note: passing argument to parameter 's2' here int cmp_element(uchar *s1, uchar *s2) ^ form.c:158:24: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] s = strchr(s, '"') + 1; ^ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ form.c:158:15: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] s = strchr(s, '"') + 1; ^ ~~~~~~~~~~~~~~~~~~ form.c:172:23: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] p = str1 + strlen(str1) -1; ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ form.c:173:23: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] q = str2 + strlen(str2) -1; ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ form.c:195:25: warning: passing 'char[7]' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!cmp_element(s, "OPTION")) { ^~~~~~~~ form.c:68:35: note: passing argument to parameter 's2' here int cmp_element(uchar *s1, uchar *s2) ^ form.c:196:22: warning: passing 'char[10]' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] delete_str(s,"SELECTED "); ^~~~~~~~~~~ form.c:124:34: note: passing argument to parameter 'd' here void delete_str(uchar *s, uchar *d) ^ form.c:197:15: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(s, stdout); ^ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ form.c:199:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(name, "format")) { ^~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:200:25: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(value, "short") && ShortFormat) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:202:32: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strcmp(value, "long") && (!ShortFormat)) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:205:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strcmp(name, "sort")) { ^~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:206:25: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(value, "later") && LaterOrder && !ScoreSort) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:208:32: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strcmp(value, "earlier") && !LaterOrder && !ScoreSort) ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:211:32: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strcmp(value, "score") && ScoreSort) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:214:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strcmp(name, "lang")) { ^~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:215:25: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(value, Lang)) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:215:32: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(value, Lang)) { ^~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:218:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strcmp(name, "dbname")) { ^~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:222:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strcmp(name, "subquery")) { ^~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:223:25: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(value, subquery)) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:223:32: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(value, subquery)) { ^~~~~~~~ /usr/include/string.h:86:39: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:226:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strcmp(name, "max")) { ^~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ form.c:227:22: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (atoi(value) == HListMax) { ^~~~~ /usr/include/stdlib.h:94:23: note: passing argument to parameter here int atoi(const char *); ^ form.c:242:25: warning: passing 'char[36]' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!cmp_element(s, "INPUT TYPE=\"CHECKBOX\" NAME=\"dbname\"")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ form.c:68:35: note: passing argument to parameter 's2' here int cmp_element(uchar *s1, uchar *s2) ^ form.c:246:22: warning: passing 'char[8]' to parameter of type 'uchar *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] delete_str(s,"CHECKED"); ^~~~~~~~~ form.c:124:34: note: passing argument to parameter 'd' here void delete_str(uchar *s, uchar *d) ^ form.c:247:15: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(s, stdout); ^ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ form.c:251:29: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((x = strchr(pp, (int)','))) { ^~ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ form.c:251:20: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if ((x = strchr(pp, (int)','))) { ^ ~~~~~~~~~~~~~~~~~~~~ form.c:253:24: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, pp); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ form.c:253:30: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, pp); ^~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ form.c:256:24: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, pp); ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ form.c:256:30: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(name, pp); ^~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ form.c:257:30: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] pp += strlen(pp); ^~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ form.c:283:17: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(tmp, p, l); ^~~ /usr/include/string.h:107:32: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ form.c:283:22: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strncpy(tmp, p, l); ^ /usr/include/string.h:107:57: note: passing argument to parameter here char *strncpy(char * __restrict, const char * __restrict, size_t); ^ form.c:295:11: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fputs(tmp, stdout); ^~~ /usr/include/stdio.h:262:35: note: passing argument to parameter here int fputs(const char * __restrict, FILE * __restrict); ^ form.c:311:37: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (BASE_URL[0] && !strncmp(p, "\n", 8)) { ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ form.c:316:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(p, "", 8)) { ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ form.c:323:28: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] p = strchr(p, '>'); ^ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ form.c:323:19: warning: assigning to 'uchar *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] p = strchr(p, '>'); ^ ~~~~~~~~~~~~~~ form.c:327:55: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!IsCGI && !ForcePrintForm && !strncmp(p, "
    ", 7)) ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ form.c:333:33: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] q = (uchar *)strchr(p, (int)'>'); ^ /usr/include/string.h:81:26: note: passing argument to parameter here char *strchr(const char *, int) __pure; ^ form.c:339:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(p, "\x1b$", 2) ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ form.c:343:33: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] } else if (!strncmp(p, "\x1b(", 2) && ^ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ 58 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c re_match.c re_match.c:47:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tmp, s); ^~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ re_match.c:47:17: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(tmp, s); ^ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ re_match.c:49:21: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] n_from = strlen(URL_REPLACE_FROM[n]); ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ re_match.c:50:19: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] n_to = strlen(URL_REPLACE_TO[n]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ re_match.c:52:18: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(URL_REPLACE_FROM[n], tmp, n_from)) { ^~~~~~~~~~~~~~~~~~~ /usr/include/string.h:106:26: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ re_match.c:52:39: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strncmp(URL_REPLACE_FROM[n], tmp, n_from)) { ^~~ /usr/include/string.h:106:40: note: passing argument to parameter here int strncmp(const char *, const char *, size_t) __pure; ^ re_match.c:53:9: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(s, URL_REPLACE_TO[n]); ^ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ re_match.c:53:12: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(s, URL_REPLACE_TO[n]); ^~~~~~~~~~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ re_match.c:70:20: warning: passing 'uchar[]' (aka 'unsigned char[]') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (is_lang_ja(Lang)) { ^~~~ ./namazu.h:27:32: note: expanded from macro 'is_lang_ja' #define is_lang_ja(a) (!strcmp(a,"ja")) ^ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ re_match.c:82:12: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, orig_expr); /* save orig_expr */ ^~~~ /usr/include/string.h:88:31: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ re_match.c:82:18: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] strcpy(expr, orig_expr); /* save orig_expr */ ^~~~~~~~~ /usr/include/string.h:88:56: note: passing argument to parameter here char *strcpy(char * __restrict, const char * __restrict); ^ re_match.c:90:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!strcmp(field, "url")) { ^~~~~ /usr/include/string.h:86:25: note: passing argument to parameter here int strcmp(const char *, const char *) __pure; ^ re_match.c:97:37: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] re_compile_pattern(expr, strlen(expr), rp); ^~~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ re_match.c:97:24: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] re_compile_pattern(expr, strlen(expr), rp); ^~~~ ./regex.h:247:40: note: passing argument to parameter here extern char *re_compile_pattern (char *, size_t, struct re_pattern_buffer *); ^ re_match.c:99:27: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for (i = n = 0; fgets(buf, BUFSIZE, fp); i++) { ^~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ re_match.c:105:20: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (strlen(buf) == 0) { ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ re_match.c:112:45: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (-1 != re_search(rp, buf, strlen(buf), 0, strlen(buf), 0)) { ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ re_match.c:112:61: warning: passing 'unsigned char[1024]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (-1 != re_search(rp, buf, strlen(buf), 0, strlen(buf), 0)) { ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ re_match.c:112:33: warning: passing 'unsigned char[1024]' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (-1 != re_search(rp, buf, strlen(buf), 0, strlen(buf), 0)) { ^~~ ./regex.h:251:56: note: passing argument to parameter here extern int re_search (struct re_pattern_buffer *, char*, int, int, int, ^ re_match.c:152:27: warning: passing 'uchar[1024]' (aka 'unsigned char[1024]') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] fgets(buf2, BUFSIZE, Index); /* read and dispose */ ^~~~ /usr/include/stdio.h:258:30: note: passing argument to parameter here char *fgets(char * __restrict, int, FILE * __restrict); ^ 20 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c regex.c regex.c:177:4: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration] memset(re_syntax_table, 0, sizeof re_syntax_table); ^ regex.c:177:4: note: include the header or explicitly provide a declaration for 'memset' regex.c:541:7: warning: implicitly declaring library function 'memmove' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] memmove(&b[(1 << BYTEWIDTH) / BYTEWIDTH], &b[sbc_size], 2 + mbc_size*4); ^ regex.c:541:7: note: include the header or explicitly provide a declaration for 'memmove' regex.c:1402:25: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration] char is_alnum = STREQ (str, "alnum"); ^ regex.c:481:25: note: expanded from macro 'STREQ' #define STREQ(s1, s2) ((strcmp (s1, s2) == 0)) ^ regex.c:1402:25: note: include the header or explicitly provide a declaration for 'strcmp' regex.c:481:25: note: expanded from macro 'STREQ' #define STREQ(s1, s2) ((strcmp (s1, s2) == 0)) ^ regex.c:1464:16: warning: array subscript is of type 'char' [-Wchar-subscripts] memmove(&b[b[-1]], &b[(1 << BYTEWIDTH) / BYTEWIDTH], ^~~~~~ regex.c:1466:41: warning: array subscript is of type 'char' [-Wchar-subscripts] b += b[-1] + 2 + EXTRACT_UNSIGNED (&b[b[-1]])*4; ^~~~~~ regex.c:504:20: note: expanded from macro 'EXTRACT_UNSIGNED' ((unsigned char)(p)[0] | (unsigned char)(p)[1] << 8) ^ regex.c:1466:41: warning: array subscript is of type 'char' [-Wchar-subscripts] b += b[-1] + 2 + EXTRACT_UNSIGNED (&b[b[-1]])*4; ^~~~~~ regex.c:504:44: note: expanded from macro 'EXTRACT_UNSIGNED' ((unsigned char)(p)[0] | (unsigned char)(p)[1] << 8) ^ regex.c:1543:15: warning: implicitly declaring library function 'memcpy' with type 'void *(void *, const void *, unsigned long)' [-Wimplicit-function-declaration] stackx = DOUBLE_STACK(stackx,stackb,len,int); ^ regex.c:96:17: note: expanded from macro 'DOUBLE_STACK' (type*) memcpy(stackx, stackb, len * sizeof (type))) ^ regex.c:1543:15: note: include the header or explicitly provide a declaration for 'memcpy' regex.c:96:17: note: expanded from macro 'DOUBLE_STACK' (type*) memcpy(stackx, stackb, len * sizeof (type))) ^ regex.c:1875:13: warning: array subscript is of type 'char' [-Wchar-subscripts] memmove(&b[b[-1]], &b[(1 << BYTEWIDTH) / BYTEWIDTH], ^~~~~~ regex.c:1877:44: warning: array subscript is of type 'char' [-Wchar-subscripts] b += b[-1] + 2 + EXTRACT_UNSIGNED(&b[b[-1]])*4; ^~~~~~ regex.c:504:20: note: expanded from macro 'EXTRACT_UNSIGNED' ((unsigned char)(p)[0] | (unsigned char)(p)[1] << 8) ^ regex.c:1877:44: warning: array subscript is of type 'char' [-Wchar-subscripts] b += b[-1] + 2 + EXTRACT_UNSIGNED(&b[b[-1]])*4; ^~~~~~ regex.c:504:44: note: expanded from macro 'EXTRACT_UNSIGNED' ((unsigned char)(p)[0] | (unsigned char)(p)[1] << 8) ^ regex.c:2083:37: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] bm_init_skip(bufp->must_skip, bufp->must+1, ^~~~~~~~~~~~ regex.c:162:50: note: passing argument to parameter here static void bm_init_skip P((int *, unsigned char*, int, char *)); ^ regex.c:2085:6: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MAY_TRANSLATE()?translate:0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ regex.c:397:25: note: expanded from macro 'MAY_TRANSLATE' #define MAY_TRANSLATE() ((bufp->options&(RE_OPTION_IGNORECASE|RE_MAY_IGNORECASE)) && translate) ^ regex.c:162:63: note: passing argument to parameter here static void bm_init_skip P((int *, unsigned char*, int, char *)); ^ regex.c:2305:52: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (slow_match(little, little+llen, big, bend, translate)) ^~~~~~~~~ regex.c:2328:6: warning: array subscript is of type 'char' [-Wchar-subscripts] skip[translate[pat[j]]] = m-1-j; ^~~~~~~~~~~~~~~~~~ regex.c:2763:25: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] pos = slow_search(bufp->must+1, len, ^~~~~~~~~~~~ regex.c:2764:4: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] string+pbeg, pend-pbeg, ^~~~~~~~~~~ regex.c:2765:4: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] MAY_TRANSLATE()?translate:0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ regex.c:397:25: note: expanded from macro 'MAY_TRANSLATE' #define MAY_TRANSLATE() ((bufp->options&(RE_OPTION_IGNORECASE|RE_MAY_IGNORECASE)) && translate) ^ regex.c:2768:23: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] pos = bm_search(bufp->must+1, len, ^~~~~~~~~~~~ regex.c:2769:9: warning: passing 'char *' to parameter of type 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] string+pbeg, pend-pbeg, ^~~~~~~~~~~ regex.c:2865:27: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (!is_in_list(c, bufp->stclass+1)) break; ^~~~~~~~~~~~~~~ regex.c:2868:26: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (is_in_list(c, bufp->stclass+1)) break; ^~~~~~~~~~~~~~~ regex.c:3228:35: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] while (stackp != stackb && (int)stackp[-1] == 1) ^~~~~~~~~~~~~~~ regex.c:3229:3: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] POP_FAILURE_POINT(); ^~~~~~~~~~~~~~~~~~~ regex.c:3015:12: note: expanded from macro 'POP_FAILURE_POINT' temp = (int) *--stackp; /* How many regs pushed. */ \ ^~~~~~~~~~~~~~~ regex.c:3385:31: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] if ((int) old_regend[r] >= (int) regstart[r]) ^~~~~~~~~~~~~~~~~~~ regex.c:3385:54: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] if ((int) old_regend[r] >= (int) regstart[r]) ^~~~~~~~~~~~~~~~~ regex.c:3438:23: warning: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Wimplicit-function-declaration] : memcmp((char *)d, (char *)d2, mcnt)) ^ regex.c:3438:23: note: include the header or explicitly provide a declaration for 'memcmp' regex.c:3455:4: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] POP_FAILURE_POINT(); ^~~~~~~~~~~~~~~~~~~ regex.c:3015:12: note: expanded from macro 'POP_FAILURE_POINT' temp = (int) *--stackp; /* How many regs pushed. */ \ ^~~~~~~~~~~~~~~ regex.c:3461:4: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] POP_FAILURE_POINT(); ^~~~~~~~~~~~~~~~~~~ regex.c:3015:12: note: expanded from macro 'POP_FAILURE_POINT' temp = (int) *--stackp; /* How many regs pushed. */ \ ^~~~~~~~~~~~~~~ regex.c:3638:11: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] POP_FAILURE_POINT(); ^~~~~~~~~~~~~~~~~~~ regex.c:3015:12: note: expanded from macro 'POP_FAILURE_POINT' temp = (int) *--stackp; /* How many regs pushed. */ \ ^~~~~~~~~~~~~~~ regex.c:3729:11: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] POP_FAILURE_POINT(); ^~~~~~~~~~~~~~~~~~~ regex.c:3015:12: note: expanded from macro 'POP_FAILURE_POINT' temp = (int) *--stackp; /* How many regs pushed. */ \ ^~~~~~~~~~~~~~~ regex.c:3746:6: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] POP_FAILURE_POINT(); ^~~~~~~~~~~~~~~~~~~ regex.c:3015:12: note: expanded from macro 'POP_FAILURE_POINT' temp = (int) *--stackp; /* How many regs pushed. */ \ ^~~~~~~~~~~~~~~ regex.c:3876:34: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] while (stackp != stackb && (int)stackp[-1] == 1) ^~~~~~~~~~~~~~~ regex.c:3877:2: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] POP_FAILURE_POINT(); ^~~~~~~~~~~~~~~~~~~ regex.c:3015:12: note: expanded from macro 'POP_FAILURE_POINT' temp = (int) *--stackp; /* How many regs pushed. */ \ ^~~~~~~~~~~~~~~ regex.c:3890:6: warning: cast to smaller integer type 'int' from 'unsigned char *' [-Wpointer-to-int-cast] POP_FAILURE_POINT(); ^~~~~~~~~~~~~~~~~~~ regex.c:3015:12: note: expanded from macro 'POP_FAILURE_POINT' temp = (int) *--stackp; /* How many regs pushed. */ \ ^~~~~~~~~~~~~~~ 34 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c util.c util.c:93:21: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] for (i = strlen(s) - 1; i >= 0; i--) { ^ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ util.c:175:26: warning: passing 'uchar *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] return (str + strlen(str) - 1); ^~~ /usr/include/string.h:101:28: note: passing argument to parameter here size_t strlen(const char *) __pure; ^ 2 warnings generated. cc -O2 -DINDEXDIR=\"/usr/local/namazu/index\" -DSCORING=TFIDF -DUNIX -DOPT_NAMAZU_CONF=\"/usr/local/namazu/lib/namazu.conf\" -DLANGUAGE=\"ja\" -DMSIE4MACFIX -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA=1 -DHAVE_MEMMOVE=1 -Wall -c seed.c cc namazu.o codeconv.o messages.o parser.o cgi.o wakati.o conf.o hlist.o output.o search.o values.o form.o re_match.o regex.o util.o seed.o -lm -o namazu cp namazu namazu.cgi =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> ja-namazu-1.3.0.11_1 depends on executable: kakasi - found ===> ja-namazu-1.3.0.11_1 depends on executable: nkf - found ===> ja-namazu-1.3.0.11_1 depends on package: perl5>=5.36<5.37 - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for ja-namazu-1.3.0.11_1 ===> Generating temporary packing list if [ ! -d /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/bin ]; then mkdir -p /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/bin; fi if [ ! -d /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/index ]; then mkdir -p /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/index; fi if [ ! -d "/wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/doc/ja" ]; then mkdir -p "/wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/doc/ja"; fi if [ ! -d "/wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/doc/en" ]; then mkdir -p "/wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/doc/en"; fi if [ ! -d /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/lib ]; then mkdir -p /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/lib; fi if [ ! -d /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/contrib ]; then mkdir -p /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/contrib; fi if [ ! -d /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/bin ]; then mkdir -p /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/bin; fi cp mknmz wdnmz rvnmz clnmz namazu vfnmz mailutime gcnmz gtnmz /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/bin cp ../COPYING ../ToDo ../ChangeLog /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/doc cp ../README.ja ../doc/ja/* "/wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/doc/ja" cp ../README.en ../doc/en/* "/wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/doc/en" cp ../lib/* /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/lib cp ../contrib/* /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/contrib cp namazu mknmz /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/bin /usr/bin/strip /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/bin/namazu /wrkdirs/usr/ports/japanese/namazu/work/stage/usr/local/namazu/bin/namazu ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2024-04-02T22:01:02+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=c014f9c79a' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for ja-namazu-1.3.0.11_1 ===> Building ja-namazu-1.3.0.11_1 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for ja-namazu-1.3.0.11_1 build of japanese/namazu | ja-namazu-1.3.0.11_1 ended at Tue Apr 2 23:01:22 BST 2024 build time: 00:00:22