免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1901 | 回复: 1
打印 上一主题 下一主题

[Web] apxs -i -c -a mod_proxy.c错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-12-10 23:25 |只看该作者 |倒序浏览
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

请各位看下,是什么问题?

论坛徽章:
0
2 [报告]
发表于 2013-12-11 22:23 |只看该作者
亲们 ,有相关参考或者建议吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP