Shammer's Philosophy

My private adversaria

Install skk-tools into Mavericks

I installed skk-tools into Mavericks in the same way as Shammerism, a lot of Warning messages output.

$ make
gcc -I. -I. -I. -g -O2 -o skkdic-expr ./skkdic-expr.c
./skkdic-expr.c:205:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
    fwrite(new, strlen(new)+1, 1, dbcontent);
                       ^~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t   strlen(const char *);
                            ^
./skkdic-expr.c:231:24: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
    fwrite(new, strlen(new)+1, 1, dbcontent);
                       ^~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t   strlen(const char *);
                            ^
./skkdic-expr.c:333:13: warning: passing 'unsigned char [65536]' to parameter of type 'char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
    strncpy(keybuf, key->dptr, key->dsize);
            ^~~~~~
/usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy'
  __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
                           ^
./skkdic-expr.c:481:17: warning: passing 'unsigned char [65536]' to parameter of type 'char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
    while(fgets(buffer, BLEN, fp) != NULL) {
                ^~~~~~
/usr/include/stdio.h:236:30: note: passing argument to parameter here
char    *fgets(char * __restrict, int, FILE *);
                                ^
./skkdic-expr.c:552:13: warning: passing 'unsigned char [65536]' to parameter of type 'char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
    strncpy(keybuf, key->dptr, key->dsize);
            ^~~~~~
/usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy'
  __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
                           ^
./skkdic-expr.c:579:13: warning: passing 'unsigned char [65536]' to parameter of type 'const char *' converts between pointers to integer types with different
      sign [-Wpointer-sign]
        if (strlen(new) >= 3)
                   ^~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t   strlen(const char *);
                            ^
./skkdic-expr.c:655:17: warning: passing 'unsigned char [65536]' to parameter of type 'char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
    while(fgets(buffer, BLEN, fp) != NULL) {
                ^~~~~~
/usr/include/stdio.h:236:30: note: passing argument to parameter here
char    *fgets(char * __restrict, int, FILE *);
                                ^
./skkdic-expr.c:668:15: warning: passing 'unsigned char [65536]' to parameter of type 'const char *' converts between pointers to integer types with different
      sign [-Wpointer-sign]
                        if (strlen(new) >= 3)
                                   ^~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t   strlen(const char *);
                            ^
./skkdic-expr.c:681:14: warning: passing 'unsigned char [65536]' to parameter of type 'const char *' converts between pointers to integer types with different
      sign [-Wpointer-sign]
                if (strlen(new) >= 3)
                           ^~~
/usr/include/string.h:82:28: note: passing argument to parameter here
size_t   strlen(const char *);
                            ^
./skkdic-expr.c:704:13: warning: passing 'unsigned char [65536]' to parameter of type 'char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
    strncpy(keybuf, key->dptr, key->dsize);
            ^~~~~~
/usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy'
  __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
                           ^
./skkdic-expr.c:722:14: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
            strncpy(headtop, s, e - s);
                    ^~~~~~~
/usr/include/secure/_string.h:119:28: note: expanded from macro 'strncpy'
  __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
                           ^
./skkdic-expr.c:722:23: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
            strncpy(headtop, s, e - s);
                             ^
/usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy'
  __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
                                 ^
./skkdic-expr.c:734:9: warning: passing 'unsigned char [65536]' to parameter of type 'const char *' converts between pointers to integer types with different
      sign [-Wpointer-sign]
                fputs(head_content, output);
                      ^~~~~~~~~~~~
/usr/include/stdio.h:244:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict) __DARWIN_ALIAS(fputs);
                                      ^
./skkdic-expr.c:759:8: warning: passing 'unsigned char [65536]' to parameter of type 'const char *' converts between pointers to integer types with different
      sign [-Wpointer-sign]
        fputs(kanji, output);
              ^~~~~
/usr/include/stdio.h:244:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict) __DARWIN_ALIAS(fputs);
                                      ^
14 warnings generated.
gcc -I. -I. -I. -g -O2 -o skkdic-sort ./skkdic-sort.c
gcc -I. -I. -I. -g -O2 -o skkdic-count ./skkdic-count.c
./skkdic-count.c:49:15: warning: passing 'unsigned char [65536]' to parameter of type 'char *' converts between pointers to integer types with different sign
      [-Wpointer-sign]
  while(fgets(buffer, BUFSIZE, fp) != NULL) {
              ^~~~~~
/usr/include/stdio.h:236:30: note: passing argument to parameter here
char    *fgets(char * __restrict, int, FILE *);
                                ^
1 warning generated.
gcc -I. -I. -I. -g -O2 -I/usr/local/Cellar/glib/2.40.0_1/include/glib-2.0 -I/usr/local/Cellar/glib/2.40.0_1/lib/glib-2.0/include -I/usr/local/opt/gettext/include  -o skkdic-expr2 ./skkdic-expr2.c -L/usr/local/Cellar/glib/2.40.0_1/lib -L/usr/local/opt/gettext/lib -lglib-2.0 -lintl

I could finish make install, but I have some concerns whether there is no problem or not.

$ sudo make install
Password:
./mkinstalldirs /usr/local/bin
 /usr/bin/install -c skkdic-expr /usr/local/bin/
 /usr/bin/install -c skkdic-sort /usr/local/bin/
 /usr/bin/install -c skkdic-count /usr/local/bin/
 /usr/bin/install -c skkdic-expr2 /usr/local/bin/