cd scws-1.2.2 ; ./configure ; make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i386-apple-darwin13.4.0
checking host system type... i386-apple-darwin13.4.0
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for logf in -lm... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking size of int... 4
checking size of float... 4
checking for struct flock...
checking whether lstat correctly handles trailing slash... no
checking whether lstat accepts an empty string... no
checking whether lstat correctly handles trailing slash... (cached) no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working memcmp... yes
checking for flock... yes
checking for gettimeofday... yes
checking for malloc... yes
checking for memset... yes
checking for munmap... yes
checking for pow... yes
checking for realpath... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strrchr... yes
checking for strndup... yes
checking for strtok_r... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cli/Makefile
config.status: creating etc/Makefile
config.status: creating libscws/Makefile
config.status: creating libscws/version.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Making install in .
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in libscws
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT charset.lo -MD -MP -MF .deps/charset.Tpo -c -o charset.lo charset.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT charset.lo -MD -MP -MF .deps/charset.Tpo -c charset.c -fno-common -DPIC -o .libs/charset.o
mv -f .deps/charset.Tpo .deps/charset.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT crc32.lo -MD -MP -MF .deps/crc32.Tpo -c -o crc32.lo crc32.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT crc32.lo -MD -MP -MF .deps/crc32.Tpo -c crc32.c -fno-common -DPIC -o .libs/crc32.o
mv -f .deps/crc32.Tpo .deps/crc32.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT pool.lo -MD -MP -MF .deps/pool.Tpo -c -o pool.lo pool.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT pool.lo -MD -MP -MF .deps/pool.Tpo -c pool.c -fno-common -DPIC -o .libs/pool.o
mv -f .deps/pool.Tpo .deps/pool.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT scws.lo -MD -MP -MF .deps/scws.Tpo -c -o scws.lo scws.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT scws.lo -MD -MP -MF .deps/scws.Tpo -c scws.c -fno-common -DPIC -o .libs/scws.o
scws.c:349:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
txt = (char *) _mem_ndup(s->txt + start, wlen);
^~~~~~~~~~~~~~
/usr/include/string.h:132:27: note: passing argument to parameter here
char *strndup(const char *, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
^
scws.c:349:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
txt = (char *) _mem_ndup(s->txt + start, wlen);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scws.c:350:16: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
_str_toupper(txt, txt);
^~~
scws.c:208:32: note: passing argument to parameter 'src' here
static void _str_toupper(char *src, char *dst)
^
scws.c:350:21: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
_str_toupper(txt, txt);
^~~
scws.c:208:43: note: passing argument to parameter 'dst' here
static void _str_toupper(char *src, char *dst)
^
scws.c:351:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (SCWS_IS_SPECIAL(txt, wlen))
^~~
scws.c:28:54: note: expanded from macro 'SCWS_IS_SPECIAL'
#define SCWS_IS_SPECIAL(x,l) scws_rule_checkbit(s->r,x,l,SCWS_RULE_SPECIAL)
^
./rule.h:75:46: note: passing argument to parameter 'str' here
int scws_rule_checkbit(rule_t r, const char *str, int len, unsigned int bit);
^
scws.c:794:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
query = xdict_query(s->d, txt + start, clen);
^~~~~~~~~~~
./xdict.h:67:44: note: passing argument to parameter 'key' here
word_t xdict_query(xdict_t xd, const char *key, int len);
^
scws.c:830:30: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
query = xdict_query(s->d, txt + zmap[i].start, zmap[j].end - zmap[i].start);
^~~~~~~~~~~~~~~~~~~
./xdict.h:67:44: note: passing argument to parameter 'key' here
word_t xdict_query(xdict_t xd, const char *key, int len);
^
scws.c:855:11: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if ((k == (i+1)))
~~^~~~~~~~
scws.c:855:11: note: remove extraneous parentheses around the comparison to silence this warning
if ((k == (i+1)))
~ ^ ~
scws.c:855:11: note: use '=' to turn this equality comparison into an assignment
if ((k == (i+1)))
^~
=
scws.c:880:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
r1 = scws_rule_get(s->r, txt + zmap[i].start, zmap[i].end - zmap[i].start);
^~~~~~~~~~~~~~~~~~~
./rule.h:72:49: note: passing argument to parameter 'str' here
rule_item_t scws_rule_get(rule_t r, const char *str, int len);
^
scws.c:895:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
___ZRULE_CHECKER3___
^~~~~~~~~~~~~~~~~~~~
scws.c:752:32: note: expanded from macro '___ZRULE_CHECKER3___'
if (!scws_rule_check(s->r, r1, txt + zmap[j].start, zmap[j].end - zmap[j].start)) \
^~~~~~~~~~~~~~~~~~~
./rule.h:81:59: note: passing argument to parameter 'str' here
int scws_rule_check(rule_t r, rule_item_t cr, const char *str, int len);
^
scws.c:908:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
___ZRULE_CHECKER3___
^~~~~~~~~~~~~~~~~~~~
scws.c:752:32: note: expanded from macro '___ZRULE_CHECKER3___'
if (!scws_rule_check(s->r, r1, txt + zmap[j].start, zmap[j].end - zmap[j].start)) \
^~~~~~~~~~~~~~~~~~~
./rule.h:81:59: note: passing argument to parameter 'str' here
int scws_rule_check(rule_t r, rule_item_t cr, const char *str, int len);
^
scws.c:946:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
___ZRULE_CHECKER3___
^~~~~~~~~~~~~~~~~~~~
scws.c:752:32: note: expanded from macro '___ZRULE_CHECKER3___'
if (!scws_rule_check(s->r, r1, txt + zmap[j].start, zmap[j].end - zmap[j].start)) \
^~~~~~~~~~~~~~~~~~~
./rule.h:81:59: note: passing argument to parameter 'str' here
int scws_rule_check(rule_t r, rule_item_t cr, const char *str, int len);
^
scws.c:959:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
___ZRULE_CHECKER3___
^~~~~~~~~~~~~~~~~~~~
scws.c:752:32: note: expanded from macro '___ZRULE_CHECKER3___'
if (!scws_rule_check(s->r, r1, txt + zmap[j].start, zmap[j].end - zmap[j].start)) \
^~~~~~~~~~~~~~~~~~~
./rule.h:81:59: note: passing argument to parameter 'str' here
int scws_rule_check(rule_t r, rule_item_t cr, const char *str, int len);
^
scws.c:994:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
r1 = scws_rule_get(s->r, txt + zmap[i].start, zmap[k].end - zmap[i].start);
^~~~~~~~~~~~~~~~~~~
./rule.h:72:49: note: passing argument to parameter 'str' here
rule_item_t scws_rule_get(rule_t r, const char *str, int len);
^
scws.c:1005:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
___ZRULE_CHECKER3___
^~~~~~~~~~~~~~~~~~~~
scws.c:752:32: note: expanded from macro '___ZRULE_CHECKER3___'
if (!scws_rule_check(s->r, r1, txt + zmap[j].start, zmap[j].end - zmap[j].start)) \
^~~~~~~~~~~~~~~~~~~
./rule.h:81:59: note: passing argument to parameter 'str' here
int scws_rule_check(rule_t r, rule_item_t cr, const char *str, int len);
^
scws.c:1018:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
___ZRULE_CHECKER3___
^~~~~~~~~~~~~~~~~~~~
scws.c:752:32: note: expanded from macro '___ZRULE_CHECKER3___'
if (!scws_rule_check(s->r, r1, txt + zmap[j].start, zmap[j].end - zmap[j].start)) \
^~~~~~~~~~~~~~~~~~~
./rule.h:81:59: note: passing argument to parameter 'str' here
int scws_rule_check(rule_t r, rule_item_t cr, const char *str, int len);
^
scws.c:1046:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
___ZRULE_CHECKER3___
^~~~~~~~~~~~~~~~~~~~
scws.c:752:32: note: expanded from macro '___ZRULE_CHECKER3___'
if (!scws_rule_check(s->r, r1, txt + zmap[j].start, zmap[j].end - zmap[j].start)) \
^~~~~~~~~~~~~~~~~~~
./rule.h:81:59: note: passing argument to parameter 'str' here
int scws_rule_check(rule_t r, rule_item_t cr, const char *str, int len);
^
scws.c:1059:5: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
___ZRULE_CHECKER3___
^~~~~~~~~~~~~~~~~~~~
scws.c:752:32: note: expanded from macro '___ZRULE_CHECKER3___'
if (!scws_rule_check(s->r, r1, txt + zmap[j].start, zmap[j].end - zmap[j].start)) \
^~~~~~~~~~~~~~~~~~~
./rule.h:81:59: note: passing argument to parameter 'str' here
int scws_rule_check(rule_t r, rule_item_t cr, const char *str, int len);
^
scws.c:1375:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
word = _mem_ndup(s->txt + cur->off, cur->len);
^~~~~~~~~~~~~~~~~
/usr/include/string.h:132:27: note: passing argument to parameter here
char *strndup(const char *, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
^
scws.c:1386:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!(top = xtree_nget(xt, s->txt + cur->off, cur->len, NULL)))
^~~~~~~~~~~~~~~~~
./xtree.h:47:42: note: passing argument to parameter 'key' here
void *xtree_nget(xtree_t xt, const char *key, int len, int *vlen);
^
scws.c:1392:54: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
xtree_nput(xt, top, sizeof(struct scws_topword), s->txt + cur->off, cur->len);
^~~~~~~~~~~~~~~~~
./xtree.h:44:64: note: passing argument to parameter 'key' here
void xtree_nput(xtree_t xt, void *value, int vlen, const char *key, int len);
^
scws.c:1517:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!(top = xtree_nget(xt, s->txt + cur->off, cur->len, NULL)))
^~~~~~~~~~~~~~~~~
./xtree.h:47:42: note: passing argument to parameter 'key' here
void *xtree_nget(xtree_t xt, const char *key, int len, int *vlen);
^
scws.c:1523:35: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
top->word = (char *)_mem_ndup(s->txt + cur->off, cur->len);
^~~~~~~~~~~~~~~~~
/usr/include/string.h:132:27: note: passing argument to parameter here
char *strndup(const char *, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
^
scws.c:1533:54: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
xtree_nput(xt, top, sizeof(struct scws_topword), s->txt + cur->off, cur->len);
^~~~~~~~~~~~~~~~~
./xtree.h:44:64: note: passing argument to parameter 'key' here
void xtree_nput(xtree_t xt, void *value, int vlen, const char *key, int len);
^
24 warnings generated.
mv -f .deps/scws.Tpo .deps/scws.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT xdict.lo -MD -MP -MF .deps/xdict.Tpo -c -o xdict.lo xdict.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT xdict.lo -MD -MP -MF .deps/xdict.Tpo -c xdict.c -fno-common -DPIC -o .libs/xdict.o
xdict.c:200:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (part = _strtok_r(NULL, delim, &last))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xdict.c:200:14: note: place parentheses around the assignment to silence this warning
if (part = _strtok_r(NULL, delim, &last))
^
( )
xdict.c:200:14: note: use '==' to turn this assignment into an equality comparison
if (part = _strtok_r(NULL, delim, &last))
^
==
xdict.c:244:3: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration]
unlink(tmpfile);
^
2 warnings generated.
mv -f .deps/xdict.Tpo .deps/xdict.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT darray.lo -MD -MP -MF .deps/darray.Tpo -c -o darray.lo darray.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT darray.lo -MD -MP -MF .deps/darray.Tpo -c darray.c -fno-common -DPIC -o .libs/darray.o
mv -f .deps/darray.Tpo .deps/darray.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT rule.lo -MD -MP -MF .deps/rule.Tpo -c -o rule.lo rule.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT rule.lo -MD -MP -MF .deps/rule.Tpo -c rule.c -fno-common -DPIC -o .libs/rule.o
rule.c:55:15: warning: passing 'unsigned char [512]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
while (fgets(buf, sizeof(buf) - 1, fp))
^~~
/usr/include/stdio.h:236:30: note: passing argument to parameter here
char *fgets(char * __restrict, int, FILE *);
^
rule.c:57:39: warning: passing 'unsigned char [512]' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (buf[0] != '[' || !(ptr = strchr(buf, ']')))
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:57:30: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (buf[0] != '[' || !(ptr = strchr(buf, ']')))
^ ~~~~~~~~~~~~~~~~
rule.c:62:53: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (ptr == str || (ptr - str) > 15 || !strcasecmp(str, "attrs"))
^~~
/usr/include/strings.h:78:29: note: passing argument to parameter here
int strcasecmp(const char *, const char *);
^
rule.c:65:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (_rule_index_get(r, str) >= 0)
^~~
rule.c:21:57: note: passing argument to parameter 'name' here
static inline int _rule_index_get(rule_t r, const char *name)
^
rule.c:68:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strcpy(r->items[i].name, str);
^~~
/usr/include/secure/_string.h:83:33: note: expanded from macro 'strcpy'
__builtin___strcpy_chk (dest, src, __darwin_obsz (dest))
^
rule.c:72:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcasecmp(str, "special"))
^~~
/usr/include/strings.h:78:29: note: passing argument to parameter here
int strcasecmp(const char *, const char *);
^
rule.c:74:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strcasecmp(str, "nostats"))
^~~
/usr/include/strings.h:78:29: note: passing argument to parameter here
int strcasecmp(const char *, const char *);
^
rule.c:94:15: warning: passing 'unsigned char [512]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
while (fgets(buf, sizeof(buf) - 1, fp))
^~~
/usr/include/stdio.h:236:30: note: passing argument to parameter here
char *fgets(char * __restrict, int, FILE *);
^
rule.c:104:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((ptr = strchr(str, ']')) != NULL)
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:104:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((ptr = strchr(str, ']')) != NULL)
^ ~~~~~~~~~~~~~~~~
rule.c:107:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcasecmp(str, "attrs"))
^~~
/usr/include/strings.h:78:29: note: passing argument to parameter here
int strcasecmp(const char *, const char *);
^
rule.c:111:38: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if ((i = _rule_index_get(r, str)) >= 0)
^~~
rule.c:21:57: note: passing argument to parameter 'name' here
static inline int _rule_index_get(rule_t r, const char *name)
^
rule.c:126:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((ptr = strchr(str, '+')) == NULL) continue;
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:126:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((ptr = strchr(str, '+')) == NULL) continue;
^ ~~~~~~~~~~~~~~~~
rule.c:128:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((qtr = strchr(ptr, '=')) == NULL) continue;
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:128:13: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((qtr = strchr(ptr, '=')) == NULL) continue;
^ ~~~~~~~~~~~~~~~~
rule.c:137:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
a->ratio = (short) atoi(qtr);
^~~
/usr/include/stdlib.h:132:23: note: passing argument to parameter here
int atoi(const char *);
^
rule.c:150:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((qtr = strchr(str, ')')) != NULL)
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:150:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((qtr = strchr(str, ')')) != NULL)
^ ~~~~~~~~~~~~~~~~
rule.c:153:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
a->npath[0] = (unsigned char) atoi(str);
^~~
/usr/include/stdlib.h:132:23: note: passing argument to parameter here
int atoi(const char *);
^
rule.c:171:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((qtr = strchr(str, ')')) != NULL)
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:171:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((qtr = strchr(str, ')')) != NULL)
^ ~~~~~~~~~~~~~~~~
rule.c:174:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
a->npath[1] = (unsigned char) atoi(str);
^~~
/usr/include/stdlib.h:132:23: note: passing argument to parameter here
int atoi(const char *);
^
rule.c:204:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!(ptr = strchr(str, '=')))
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:204:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!(ptr = strchr(str, '=')))
^ ~~~~~~~~~~~~~~~~
rule.c:215:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcmp(ptr, "line"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:217:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strcmp(ptr, "tf"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:218:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cr->tf = (float) atof(str);
^~~
/usr/include/stdlib.h:131:26: note: passing argument to parameter here
double atof(const char *);
^
rule.c:219:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strcmp(ptr, "idf"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:220:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cr->idf = (float) atof(str);
^~~
/usr/include/stdlib.h:131:26: note: passing argument to parameter here
double atof(const char *);
^
rule.c:221:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strcmp(ptr, "attr"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:222:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strncpy(cr->attr, str, 2);
^~~
/usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy'
__builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
^
rule.c:223:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strcmp(ptr, "znum"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:225:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((ptr = strchr(str, ',')) != NULL)
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:225:14: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((ptr = strchr(str, ',')) != NULL)
^ ~~~~~~~~~~~~~~~~
rule.c:229:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cr->zmax = atoi(ptr);
^~~
/usr/include/stdlib.h:132:23: note: passing argument to parameter here
int atoi(const char *);
^
rule.c:232:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
cr->zmin = atoi(str);
^~~
/usr/include/stdlib.h:132:23: note: passing argument to parameter here
int atoi(const char *);
^
rule.c:234:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strcmp(ptr, "type"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:236:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strncmp(str, "prefix", 6))
^~~
/usr/include/string.h:84:26: note: passing argument to parameter here
int strncmp(const char *, const char *, size_t);
^
rule.c:238:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strncmp(str, "suffix", 6))
^~~
/usr/include/string.h:84:26: note: passing argument to parameter here
int strncmp(const char *, const char *, size_t);
^
rule.c:241:21: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strcmp(ptr, "include") || !strcmp(ptr, "exclude"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:241:48: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
else if (!strcmp(ptr, "include") || !strcmp(ptr, "exclude"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:245:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcmp(ptr, "include"))
^~~
/usr/include/string.h:77:25: note: passing argument to parameter here
int strcmp(const char *, const char *);
^
rule.c:256:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
while ((ptr = strchr(str, ',')) != NULL)
^~~
/usr/include/string.h:76:26: note: passing argument to parameter here
char *strchr(const char *, int);
^
rule.c:256:17: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
while ((ptr = strchr(str, ',')) != NULL)
^ ~~~~~~~~~~~~~~~~
rule.c:260:34: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((i = _rule_index_get(r, str)) >= 0)
^~~
rule.c:21:57: note: passing argument to parameter 'name' here
static inline int _rule_index_get(rule_t r, const char *name)
^
rule.c:267:18: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
ptr = strlen(str) + str;
^~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t strlen(const char *);
^
rule.c:270:46: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (ptr > str && (i = _rule_index_get(r, str)))
^~~
rule.c:21:57: note: passing argument to parameter 'name' here
static inline int _rule_index_get(rule_t r, const char *name)
^
rule.c:279:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
ptr = str + strlen(str);
^~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t strlen(const char *);
^
rule.c:288:59: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
xtree_nput(r->tree, cr, sizeof(struct scws_rule_item), str, ptr - str);
^~~
./xtree.h:44:64: note: passing argument to parameter 'key' here
void xtree_nput(xtree_t xt, void *value, int vlen, const char *key, int len);
^
rule.c:300:60: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
xtree_nput(r->tree, cr, sizeof(struct scws_rule_item), str, j);
^~~
./xtree.h:44:64: note: passing argument to parameter 'key' here
void xtree_nput(xtree_t xt, void *value, int vlen, const char *key, int len);
^
52 warnings generated.
mv -f .deps/rule.Tpo .deps/rule.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT lock.lo -MD -MP -MF .deps/lock.Tpo -c -o lock.lo lock.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT lock.lo -MD -MP -MF .deps/lock.Tpo -c lock.c -fno-common -DPIC -o .libs/lock.o
mv -f .deps/lock.Tpo .deps/lock.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT xdb.lo -MD -MP -MF .deps/xdb.Tpo -c -o xdb.lo xdb.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT xdb.lo -MD -MP -MF .deps/xdb.Tpo -c xdb.c -fno-common -DPIC -o .libs/xdb.o
xdb.c:335:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strncpy(buf + 17, key, len);
^~~~~~~~
/usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy'
__builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
^
xdb.c:504:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
nodes[i].key = (char *) _mem_ndup(buf + 17, buf[16]);
^~~~~~~~
/usr/include/string.h:132:27: note: passing argument to parameter here
char *strndup(const char *, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
^
xdb.c:604:41: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
xtree_nput(xt, value, ptr->len - voff, buf + 17, buf[16]);
^~~~~~~~
./xtree.h:44:64: note: passing argument to parameter 'key' here
void xtree_nput(xtree_t xt, void *value, int vlen, const char *key, int len);
^
3 warnings generated.
mv -f .deps/xdb.Tpo .deps/xdb.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT xtree.lo -MD -MP -MF .deps/xtree.Tpo -c -o xtree.lo xtree.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT xtree.lo -MD -MP -MF .deps/xtree.Tpo -c xtree.c -fno-common -DPIC -o .libs/xtree.o
mv -f .deps/xtree.Tpo .deps/xtree.Plo
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -g -O2 -no-undefined -version-info 2:0:1 -o libscws.la -rpath /usr/local/lib charset.lo crc32.lo pool.lo scws.lo xdict.lo darray.lo rule.lo lock.lo xdb.lo xtree.lo -lm
libtool: link: gcc -dynamiclib -o .libs/libscws.1.dylib .libs/charset.o .libs/crc32.o .libs/pool.o .libs/scws.o .libs/xdict.o .libs/darray.o .libs/rule.o .libs/lock.o .libs/xdb.o .libs/xtree.o -lm -install_name /usr/local/lib/libscws.1.dylib -compatibility_version 3 -current_version 3.0 -Wl,-single_module
libtool: link: dsymutil .libs/libscws.1.dylib || :
libtool: link: (cd ".libs" && rm -f "libscws.dylib" && ln -s "libscws.1.dylib" "libscws.dylib")
libtool: link: (cd ".libs" && rm -f "libscws.1.1.0.dylib" && ln -s "libscws.1.dylib" "libscws.1.1.0.dylib")
libtool: link: ( cd ".libs" && rm -f "libscws.la" && ln -s "../libscws.la" "libscws.la" )
test -z "/usr/local/lib" || .././install-sh -c -d "/usr/local/lib"
/bin/sh ../libtool --preserve-dup-deps --mode=install /usr/bin/install -c 'libscws.la' '/usr/local/lib/libscws.la'
libtool: install: /usr/bin/install -c .libs/libscws.1.dylib /usr/local/lib/libscws.1.dylib
libtool: install: (cd /usr/local/lib && { ln -s -f libscws.1.dylib libscws.dylib || { rm -f libscws.dylib && ln -s libscws.1.dylib libscws.dylib; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libscws.1.dylib libscws.1.1.0.dylib || { rm -f libscws.1.1.0.dylib && ln -s libscws.1.dylib libscws.1.1.0.dylib; }; })
libtool: install: /usr/bin/install -c .libs/libscws.lai /usr/local/lib/libscws.la
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include/scws" || .././install-sh -c -d "/usr/local/include/scws"
/usr/bin/install -c -m 644 'charset.h' '/usr/local/include/scws/charset.h'
/usr/bin/install -c -m 644 'crc32.h' '/usr/local/include/scws/crc32.h'
/usr/bin/install -c -m 644 'pool.h' '/usr/local/include/scws/pool.h'
/usr/bin/install -c -m 644 'scws.h' '/usr/local/include/scws/scws.h'
/usr/bin/install -c -m 644 'xdict.h' '/usr/local/include/scws/xdict.h'
/usr/bin/install -c -m 644 'darray.h' '/usr/local/include/scws/darray.h'
/usr/bin/install -c -m 644 'rule.h' '/usr/local/include/scws/rule.h'
/usr/bin/install -c -m 644 'xdb.h' '/usr/local/include/scws/xdb.h'
/usr/bin/install -c -m 644 'xtree.h' '/usr/local/include/scws/xtree.h'
/usr/bin/install -c -m 644 'version.h' '/usr/local/include/scws/version.h'
Making install in cli
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libscws -g -O2 -MT scws_cmd.o -MD -MP -MF .deps/scws_cmd.Tpo -c -o scws_cmd.o scws_cmd.c
mv -f .deps/scws_cmd.Tpo .deps/scws_cmd.Po
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -g -O2 -o scws scws_cmd.o ../libscws/libscws.la -lm
libtool: link: gcc -g -O2 -o .libs/scws scws_cmd.o ../libscws/.libs/libscws.1.1.0.dylib -lm
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../libscws -g -O2 -MT gen_dict.o -MD -MP -MF .deps/gen_dict.Tpo -c -o gen_dict.o gen_dict.c
gen_dict.c:135:8: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
mblen = charset_table_get(charset);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
gen_dict.c:165:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (ptr = strtok(NULL, delim))
~~~~^~~~~~~~~~~~~~~~~~~~~
gen_dict.c:165:12: note: place parentheses around the assignment to silence this warning
if (ptr = strtok(NULL, delim))
^
( )
gen_dict.c:165:12: note: use '==' to turn this assignment into an equality comparison
if (ptr = strtok(NULL, delim))
^
==
2 warnings generated.
mv -f .deps/gen_dict.Tpo .deps/gen_dict.Po
/bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -g -O2 -o scws-gen-dict gen_dict.o ../libscws/libscws.la -lm
libtool: link: gcc -g -O2 -o .libs/scws-gen-dict gen_dict.o ../libscws/.libs/libscws.1.1.0.dylib -lm
test -z "/usr/local/bin" || .././install-sh -c -d "/usr/local/bin"
/bin/sh ../libtool --preserve-dup-deps --mode=install /usr/bin/install -c 'scws' '/usr/local/bin/scws'
libtool: install: /usr/bin/install -c .libs/scws /usr/local/bin/scws
/bin/sh ../libtool --preserve-dup-deps --mode=install /usr/bin/install -c 'scws-gen-dict' '/usr/local/bin/scws-gen-dict'
libtool: install: /usr/bin/install -c .libs/scws-gen-dict /usr/local/bin/scws-gen-dict
make[2]: Nothing to be done for `install-data-am'.
Making install in etc
test -z "/usr/local/etc" || .././install-sh -c -d "/usr/local/etc"
/usr/bin/install -c -m 644 'rules.ini' '/usr/local/etc/rules.ini'
/usr/bin/install -c -m 644 'rules.utf8.ini' '/usr/local/etc/rules.utf8.ini'
/usr/bin/install -c -m 644 'rules_cht.utf8.ini' '/usr/local/etc/rules_cht.utf8.ini'
make[2]: Nothing to be done for `install-data-am'.
scws-1.2.2安装过程: