Не компилится mod_accounting под FreeBSD

Вопросы по UTM 3.0 и UTM 4.0 (поддержка прекращена)
Закрыто
Sergey
Сообщения: 4
Зарегистрирован: Пн фев 28, 2005 21:49
Откуда: Санкт-Петербург
Контактная информация:

Не компилится mod_accounting под FreeBSD

Сообщение Sergey »

На сколько я понял, для учета хостинга в UTM4 (NetUP UTM 4.0 [1 +update 07 july 2003] на freebsd 5.2.1) для апача2 надо установить mod_accounting. Правлю пути в makefile, но при компиляции выдает ошибку. Кто может подсказать, в чем беда?

bash-2.05b# make
/usr/local/apache2/bin/apxs -c -DNEED_MYSQL -I/usr/local/include/mysql/ -L/usr/local/lib/mysql/ -lmysqlclient mod_accounting.c mysql.c
/usr/local/apache2/build/libtool --silent --mode=compile cc -prefer-pic -O -pipe -mcpu=pentiumpro -DAP_HAVE_DESIGNATED_INITIALIZER -D_REENTRANT -D_THREAD_SAFE -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/apache2/include -I/usr/local/include -I/usr/local/include/mysql/ -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: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 arg 1 of `strlen' makes pointer from integer without a cast
mod_accounting.c:129: error: structure 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: structure 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: `accounting_module' undeclared (first use in this function)
mod_accounting.c: In function `set_driver':
mod_accounting.c:216: error: `accounting_module' undeclared (first use in this function)
mod_accounting.c: In function `set_db_host':
mod_accounting.c:236: error: `accounting_module' undeclared (first use in this function)
mod_accounting.c: In function `set_login_info':
mod_accounting.c:246: error: `accounting_module' undeclared (first use in this function)
mod_accounting.c: In function `set_query_fmt':
mod_accounting.c:256: error: `accounting_module' undeclared (first use in this function)
mod_accounting.c: In function `set_timed_updates':
mod_accounting.c:269: error: `accounting_module' undeclared (first use in this function)
mod_accounting.c: In function `add_ignored_hosts':
mod_accounting.c:282: error: `accounting_module' undeclared (first use in this function)
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 arg 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: `accounting_module' undeclared (first use in this function)
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: `accounting_module' undeclared (first use in this function)
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 arg 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: `accounting_module' used prior to declaration
mod_accounting.c:536: error: `this_module_needs_to_be_ported_to_apache_2_0' undeclared here (not in a function)
mod_accounting.c:536: error: initializer element is not constant
mod_accounting.c:536: error: (near initialization for `accounting_module.version')
mod_accounting.c:537: 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
.
*** Error code 1

Stop in /tmp/mod_accounting-0.5.

mikryashov
Сообщения: 13
Зарегистрирован: Вт фев 01, 2005 15:31
Откуда: г. Москва
Контактная информация:

Сообщение mikryashov »

Apach2 не работает с mod_accounting

Sergey
Сообщения: 4
Зарегистрирован: Пн фев 28, 2005 21:49
Откуда: Санкт-Петербург
Контактная информация:

Сообщение Sergey »

mikryashov писал(а):Apach2 не работает с mod_accounting
спасибо!
актуально!
=)))





P/S см даты писем =)))

Закрыто