読者です 読者をやめる 読者になる 読者になる

@テク野路ジーロード

配信タグシェアリングシステムpickvyを開発、運営開始。最近は、Googleアナリティクスを研究中

mod_log_sqlをmakeしたら出たエラー

何の役にたつのかわからないが、取り敢えずのせておく。

情報元は、ここ

アクセス解析を自前で作成するまでの記録 - 渋谷で働く「ソリューション営業」の徒然 〜sunday150’s blog@渋谷

 

■エラーログ情報

  • [xxxxx@localhost mod_log_sql-1.101]# make
    /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -Wall -fno-strict-aliasing -DHAVE_CONFIG_H -DWITH_APACHE20  -c -o mod_log_sql.lo mod_log_sql.c && touch mod_log_sql.slo
    In file included from mod_log_sql.c:146:0:
    functions.h: In function 'extract_remote_address':
    functions.h:17:25: error: 'conn_rec' has no member named 'remote_ip'
         return r->connection->remote_ip;
                             ^
    mod_log_sql.c: In function 'log_sql_post_config':
    mod_log_sql.c:507:37: warning: comparison with string literal results in unspecified behavior [-Waddress]
                  if (cls->preserve_file == DEFAULT_PRESERVE_FILE)
                                         ^
    mod_log_sql.c: In function 'safe_sql_insert':
    mod_log_sql.c:594:17: warning: comparison between 'logsql_query_ret' and 'enum <anonymous>' [-Wenum-compare]
         table_name))!=LOGSQL_TABLE_SUCCESS) {
                     ^
    mod_log_sql.c: In function 'log_sql_merge_state':
    mod_log_sql.c:737:33: warning: comparison with string literal results in unspecified behavior [-Waddress]
      if (child->transfer_log_format == DEFAULT_TRANSFER_LOG_FMT) {
                                     ^
    mod_log_sql.c:744:27: warning: comparison with string literal results in unspecified behavior [-Waddress]
      if (child->preserve_file == DEFAULT_PRESERVE_FILE)
                               ^
    mod_log_sql.c:747:27: warning: comparison with string literal results in unspecified behavior [-Waddress]
      if (child->preserve_file == DEFAULT_PRESERVE_FILE)
                               ^
    mod_log_sql.c:750:30: warning: comparison with string literal results in unspecified behavior [-Waddress]
      if (child->notes_table_name == DEFAULT_NOTES_TABLE_NAME)
                                  ^
    mod_log_sql.c:753:28: warning: comparison with string literal results in unspecified behavior [-Waddress]
      if (child->hin_table_name == DEFAULT_HIN_TABLE_NAME)
                                ^
    mod_log_sql.c:756:29: warning: comparison with string literal results in unspecified behavior [-Waddress]
      if (child->hout_table_name == DEFAULT_HOUT_TABLE_NAME)
                                 ^
    mod_log_sql.c:759:31: warning: comparison with string literal results in unspecified behavior [-Waddress]
      if (child->cookie_table_name == DEFAULT_COOKIE_TABLE_NAME)
                                   ^
    apxs:Error: Command failed with rc=65536
    .
    make: *** [mod_log_sql.la] エラー 1