apxs -i -c -a mod_proxy.c錯誤

火星人 @ 2014-03-04 , reply:0


apxs -i -c -a mod_proxy.c錯誤

apache的版本是2.2.4,想在apache載入 proxy模塊,出現了以下錯誤,大家看看是什麼問題。

cd /usr/src/sh/httpd-2.2.4/modules/proxy/
/alidata/server/httpd/bin/apxs -i -c mod_proxy.c proxy_util.c proxy_util.c

httpd -l 輸入:

Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c

httpd -M 輸出:
httpd: Could not reliably determine the server's fully qualified domain name, using 10.241.220.70 for ServerName
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
auth_basic_module (shared)
auth_digest_module (shared)
authn_file_module (shared)
authn_alias_module (shared)
authn_anon_module (shared)
authn_dbm_module (shared)
authn_default_module (shared)
authz_host_module (shared)
authz_user_module (shared)
authz_owner_module (shared)
authz_groupfile_module (shared)
authz_dbm_module (shared)
authz_default_module (shared)
ldap_module (shared)
authnz_ldap_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
env_module (shared)
ext_filter_module (shared)
mime_magic_module (shared)
expires_module (shared)
deflate_module (shared)
headers_module (shared)
usertrack_module (shared)
setenvif_module (shared)
mime_module (shared)
dav_module (shared)
status_module (shared)
autoindex_module (shared)
info_module (shared)
dav_fs_module (shared)
vhost_alias_module (shared)
negotiation_module (shared)
dir_module (shared)
actions_module (shared)
speling_module (shared)
userdir_module (shared)
alias_module (shared)
rewrite_module (shared)
proxy_module (shared)
proxy_balancer_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_connect_module (shared)
cache_module (shared)
suexec_module (shared)
disk_cache_module (shared)
file_cache_module (shared)
mem_cache_module (shared)
cgi_module (shared)
version_module (shared)
proxy_ajp_module (shared)
Syntax OK

/alidata/server/httpd/modules 下面文件:

httpd.exp               mod_cache.so       mod_log_config.so
libphp5.so              mod_cern_meta.so   mod_log_forensic.so
mod_actions.so          mod_cgid.so        mod_logio.so
mod_alias.so            mod_dbd.so         mod_mem_cache.so
mod_asis.so             mod_deflate.so     mod_mime_magic.so
mod_auth_basic.so       mod_dir.so         mod_mime.so
mod_auth_digest.so      mod_disk_cache.so  mod_negotiation.so
mod_authn_anon.so       mod_dumpio.so      mod_reqtimeout.so
mod_authn_dbd.so        mod_env.so         mod_rewrite.so
mod_authn_dbm.so        mod_expires.so     mod_setenvif.so
mod_authn_default.so    mod_ext_filter.so  mod_speling.so
mod_authn_file.so       mod_fastcgi.so     mod_status.so
mod_authz_dbm.so        mod_file_cache.so  mod_substitute.so
mod_authz_default.so    mod_filter.so      mod_unique_id.so
mod_authz_groupfile.so  mod_headers.so     mod_userdir.so
mod_authz_host.so       mod_ident.so       mod_usertrack.so
mod_authz_owner.so      mod_imagemap.so    mod_version.so
mod_authz_user.so       mod_include.so     mod_vhost_alias.so
mod_autoindex.so        mod_info.so

錯誤信息:

/alidata/server/httpd/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/alidata/server/httpd/include  -I/alidata/server/httpd/include   -I/alidata/server/httpd/include   -c -o mod_proxy.lo mod_proxy.c && touch mod_proxy.slo
mod_proxy.c: In function ?.p_proxy_trans_match?.
mod_proxy.c:591: error: expected ?.?.before string constant
mod_proxy.c:591: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c:636: error: expected ?.?.before string constant
mod_proxy.c:636: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c: In function ?.roxy_walk?.
mod_proxy.c:739: warning: assignment makes pointer from integer without a cast
mod_proxy.c:838:57: error: invalid digit "8" in octal constant
mod_proxy.c: In function ?.roxy_needsdomain?.
mod_proxy.c:839: error: expected ?.?.before string constant
mod_proxy.c:842: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c: In function ?.roxy_handler?.
mod_proxy.c:913: error: ?.ore_server_config?.undeclared (first use in this function)
mod_proxy.c:913: error: (Each undeclared identifier is reported only once
mod_proxy.c:913: error: for each function it appears in.)
mod_proxy.c:913: error: ?.oreconf?.undeclared (first use in this function)
mod_proxy.c:913: error: expected expression before ?.?.token
mod_proxy.c:916: error: ?.P_TRACE_DISABLE?.undeclared (first use in this function)
mod_proxy.c:924:64: error: invalid digit "9" in octal constant
mod_proxy.c:925: error: expected ?.?.before string constant
mod_proxy.c:925: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c:933: error: ?.P_TRACE_EXTENDED?.undeclared (first use in this function)
mod_proxy.c:943: error: expected ?.?.before string constant
mod_proxy.c:943: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c:952: error: expected ?.?.before string constant
mod_proxy.c:952: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c:1018: error: expected ?.?.before string constant
mod_proxy.c:1018: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c:1070: error: expected ?.?.before string constant
mod_proxy.c:1071: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c:1112: error: expected ?.?.before string constant
mod_proxy.c:1112: warning: passing argument 6 of ?.p_log_rerror?.makes pointer from integer without a cast
mod_proxy.c: In function ?.dd_pass?.
mod_proxy.c:1501: error: expected ?.?.before string constant
mod_proxy.c:1502: warning: passing argument 6 of ?.p_log_error?.makes pointer from integer without a cast
mod_proxy.c:1508: error: expected ?.?.before string constant
mod_proxy.c:1509: warning: passing argument 6 of ?.p_log_error?.makes pointer from integer without a cast
mod_proxy.c: In function ?.dd_member?.
mod_proxy.c:1892: error: ?.OT_IN_HTACCESS?.undeclared (first use in this function)
mod_proxy.c:1940: error: expected ?.?.before string constant
mod_proxy.c:1941: warning: passing argument 6 of ?.p_log_error?.makes pointer from integer without a cast
mod_proxy.c:1944:71: error: invalid digit "8" in octal constant
mod_proxy.c:1945: error: expected ?.?.before string constant
mod_proxy.c:1946: warning: passing argument 6 of ?.p_log_error?.makes pointer from integer without a cast
mod_proxy.c:1950:70: error: invalid digit "9" in octal constant
mod_proxy.c:1951: error: expected ?.?.before string constant
mod_proxy.c:1952: warning: passing argument 6 of ?.p_log_error?.makes pointer from integer without a cast
mod_proxy.c:1960: error: expected ?.?.before string constant
mod_proxy.c:1961: warning: passing argument 6 of ?.p_log_error?.makes pointer from integer without a cast
mod_proxy.c: In function ?.et_proxy_param?.
mod_proxy.c:1985: error: ?.OT_IN_HTACCESS?.undeclared (first use in this function)
mod_proxy.c: In function ?.roxysection?.
mod_proxy.c:2075: warning: initialization makes pointer from integer without a cast
mod_proxy.c:2134: warning: assignment makes pointer from integer without a cast
mod_proxy.c: At top level:
mod_proxy.c:2223: error: ?.p_set_flag_slot_char?.undeclared here (not in a function)
mod_proxy.c:2528: warning: data definition has no type or storage class
mod_proxy.c:2528: warning: parameter names (without types) in function declaration
mod_proxy.c:2528: error: function ?.P_DECLARE_MODULE?.is initialized like a variable
mod_proxy.c:2530: error: invalid initializer
mod_proxy.c:2530: error: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2530: warning: excess elements in scalar initializer
mod_proxy.c:2530: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2530: warning: excess elements in scalar initializer
mod_proxy.c:2530: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2530: warning: excess elements in scalar initializer
mod_proxy.c:2530: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2530: warning: excess elements in scalar initializer
mod_proxy.c:2530: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2530: warning: excess elements in scalar initializer
mod_proxy.c:2530: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2530: warning: excess elements in scalar initializer
mod_proxy.c:2530: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2530: warning: excess elements in scalar initializer
mod_proxy.c:2530: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2531: warning: excess elements in scalar initializer
mod_proxy.c:2531: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2532: warning: excess elements in scalar initializer
mod_proxy.c:2532: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2533: warning: excess elements in scalar initializer
mod_proxy.c:2533: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2534: warning: excess elements in scalar initializer
mod_proxy.c:2534: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2535: warning: excess elements in scalar initializer
mod_proxy.c:2535: warning: (near initialization for ?.P_DECLARE_MODULE?.
mod_proxy.c:2537: warning: excess elements in scalar initializer
mod_proxy.c:2537: warning: (near initialization for ?.P_DECLARE_MODULE?.
apxs:Error: Command failed with rc=65536

請各位看下,是什麼問題?
《解決方案》

親們 ,有相關參考或者建議嗎?




[火星人 via ] apxs -i -c -a mod_proxy.c錯誤已經有191次圍觀

http://www.coctec.com/docs/service/show-post-10921.html