apache加载mod_accounting模块的问题

cherishhu 2006-08-25 10:14:29
我在apache下面想装载mod_accounting模块,并且之前已经装好了mysql(用源码编译的)。makefile也修改过,可是编译不成功,想问问是什么问题,是不是缺少了什么东西的?
报错信息:
/usr/local/apache2/bin/apxs -c -DNEED_MYSQL -I/usr/local/mysql/include/ -L/usr/local/mysql/lib/mysql/ -lmysqlclient mod_accounting.c postgres.c mysql.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/mysql/include/ -DNEED_MYSQL -c -o mod_accounting.lo mod_accounting.c && touch mod_accounting.slo
In file included from mod_accounting.c:30:
mod_accounting.h:84: error: syntax error before 'pool'
mod_accounting.c:34: error: syntax error before 'accounting_module'
mod_accounting.c:34: warning: data definition has no type or storage class
mod_accounting.c:36: error: syntax error before 'pool'
mod_accounting.c:80: error: syntax error before 'table'
mod_accounting.c: In function 'TableLen':
mod_accounting.c:84: error: 'tab' undeclared (first use in this function)
mod_accounting.c:84: error: (Each undeclared identifier is reported only once
mod_accounting.c:84: error: for each function it appears in.)
mod_accounting.c: In function 'BytesSent':
mod_accounting.c:117: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
mod_accounting.c:129: error: 'struct conn_rec' has no member named 'client'
mod_accounting.c:129: error: 'BO_BYTECT' undeclared (first use in this function)
mod_accounting.c: In function 'BytesRecvd':
mod_accounting.c:153: warning: assignment makes pointer from integer without a cast
mod_accounting.c: In function 'get_user':
mod_accounting.c:167: error: 'struct conn_rec' has no member named 'user'
mod_accounting.c: In function 'ignore':
mod_accounting.c:180: error: request for member 'sin_addr' in something not a structure or union
mod_accounting.c: In function 'set_db':
mod_accounting.c:207: error: request for member 'module_index' in something not a structure or union
mod_accounting.c: In function 'set_driver':
mod_accounting.c:216: error: request for member 'module_index' in something not a structure or union
mod_accounting.c: In function 'set_db_host':
mod_accounting.c:236: error: request for member 'module_index' in something not a structure or union
mod_accounting.c: In function 'set_login_info':
mod_accounting.c:246: error: request for member 'module_index' in something not a structure or union
mod_accounting.c: In function 'set_query_fmt':
mod_accounting.c:256: error: request for member 'module_index' in something not a structure or union
mod_accounting.c: In function 'set_timed_updates':
mod_accounting.c:269: error: request for member 'module_index' in something not a structure or union
mod_accounting.c: In function 'add_ignored_hosts':
mod_accounting.c:282: error: request for member 'module_index' in something not a structure or union
mod_accounting.c: At top level:
mod_accounting.c:373: error: syntax error before '*' token
mod_accounting.c: In function 'acct_make_state':
mod_accounting.c:375: error: 'p' undeclared (first use in this function)
mod_accounting.c: At top level:
mod_accounting.c:385: error: syntax error before 'pool'
mod_accounting.c: In function 'do_query':
mod_accounting.c:387: error: 'cfg' undeclared (first use in this function)
mod_accounting.c:400: error: 'server' undeclared (first use in this function)
mod_accounting.c:400: warning: passing argument 5 of 'ap_log_error' from incompatible pointer type
mod_accounting.c:400: error: too few arguments to function 'ap_log_error'
mod_accounting.c:423: error: 'p' undeclared (first use in this function)
mod_accounting.c:423: warning: assignment makes pointer from integer without a cast
mod_accounting.c:427: warning: assignment makes pointer from integer without a cast
mod_accounting.c:431: warning: assignment makes pointer from integer without a cast
mod_accounting.c:435: error: 'r' undeclared (first use in this function)
mod_accounting.c:435: warning: assignment makes pointer from integer without a cast
mod_accounting.c:442: warning: assignment makes pointer from integer without a cast
mod_accounting.c:449: warning: assignment makes pointer from integer without a cast
mod_accounting.c: In function 'acct_transaction':
mod_accounting.c:462: error: request for member 'module_index' in something not a structure or union
mod_accounting.c: At top level:
mod_accounting.c:516: error: syntax error before 'pool'
mod_accounting.c: In function 'acct_child_exit':
mod_accounting.c:518: error: 's' undeclared (first use in this function)
mod_accounting.c:518: error: request for member 'module_index' in something not a structure or union
mod_accounting.c:521: error: 'p' undeclared (first use in this function)
mod_accounting.c: At top level:
mod_accounting.c:526: error: syntax error before 'pool'
mod_accounting.c: In function 'mod_acct_init':
mod_accounting.c:528: warning: passing argument 1 of 'ap_add_version_component' from incompatible pointer type
mod_accounting.c:528: error: too few arguments to function 'ap_add_version_component'
mod_accounting.c: At top level:
mod_accounting.c:534: error: conflicting types for 'accounting_module'
mod_accounting.c:34: error: previous declaration of 'accounting_module' was here
mod_accounting.c:536: error: 'this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function)
mod_accounting.c:537: warning: initialization makes integer from pointer without a cast
mod_accounting.c:538: warning: initialization makes integer from pointer without a cast
mod_accounting.c:542: warning: initialization makes integer from pointer without a cast
mod_accounting.c:550: warning: excess elements in struct initializer
mod_accounting.c:550: warning: (near initialization for 'accounting_module')
mod_accounting.c:552: warning: excess elements in struct initializer
mod_accounting.c:552: warning: (near initialization for 'accounting_module')
mod_accounting.c:555: warning: excess elements in struct initializer
mod_accounting.c:555: warning: (near initialization for 'accounting_module')
mod_accounting.c:558: warning: excess elements in struct initializer
mod_accounting.c:558: warning: (near initialization for 'accounting_module')
mod_accounting.c:563: warning: excess elements in struct initializer
mod_accounting.c:563: warning: (near initialization for 'accounting_module')
apxs:Error: Command failed with rc=65536
...全文
305 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
公亮 2006-08-27
  • 打赏
  • 举报
回复
是不是还有依存关系没有安装?

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧