免费注册 查看新帖 |

Chinaunix

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

nginx 编译错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-03-08 16:51 |只看该作者 |倒序浏览
./configure --prefix=/usr/local/nginx/ --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_module  --add-module=/usr/local/src/nginx_upstream_jvm_route/ --with-http_realip_module --with-pcre=/usr/local/src/pcre-8.32/
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in /usr/local/src/nginx_upstream_jvm_route/
+ ngx_http_upstream_jvm_route_module was configured
checking for OpenSSL library ... found
checking for zlib library ... found
creating objs/Makefile

Configuration summary
  + using PCRE library: /usr/local/src/pcre-8.32/
  + using system OpenSSL library
  + md5: using OpenSSL library
  + sha1: using OpenSSL library
  + using system zlib library

  nginx path prefix: "/usr/local/nginx/"
  nginx binary file: "/usr/local/nginx//sbin/nginx"
  nginx configuration prefix: "/usr/local/nginx//conf"
  nginx configuration file: "/usr/local/nginx//conf/nginx.conf"
  nginx pid file: "/usr/local/nginx//logs/nginx.pid"
  nginx error log file: "/usr/local/nginx//logs/error.log"
  nginx http access log file: "/usr/local/nginx//logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"

                -o objs/src/http/ngx_http_variables.o \
                src/http/ngx_http_variables.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.32/ -I objs -I src/http -I src/http/modules \
                -o objs/src/http/ngx_http_script.o \
                src/http/ngx_http_script.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/local/src/pcre-8.32/ -I objs -I src/http -I src/http/modules \
                -o objs/src/http/ngx_http_upstream.o \
                src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.c: In function ?.gx_http_upstream_server?.
src/http/ngx_http_upstream.c:4586: error: ?.GX_HTTP_UPSTREAM_MAX_BUSY?.undeclared (first use in this function)
src/http/ngx_http_upstream.c:4586: error: (Each undeclared identifier is reported only once
src/http/ngx_http_upstream.c:4586: error: for each function it appears in.)
src/http/ngx_http_upstream.c:4590: error: ?.ax_busy?.undeclared (first use in this function)
src/http/ngx_http_upstream.c:4619: error: ?.GX_HTTP_UPSTREAM_SRUN_ID?.undeclared (first use in this function)
src/http/ngx_http_upstream.c:4623: error: ?.d?.undeclared (first use in this function)
make[1]: *** [objs/src/http/ngx_http_upstream.o] Error 1
make[1]: Leaving directory `/usr/local/src/nginx-1.3.13'
make: *** [build] Error 2


各位大侠 求解?????????????  

论坛徽章:
4
CU大牛徽章
日期:2013-04-17 11:50:25CU大牛徽章
日期:2013-04-17 11:50:33CU大牛徽章
日期:2013-04-17 11:50:39CU大牛徽章
日期:2013-04-17 11:50:44
2 [报告]
发表于 2013-04-24 13:17 |只看该作者
改之:vi src/http/ngx_http_upstream.c敲2839,就是错误里提示的有问题的行,然后按shift+G转到那行:

    if (r->cache == NULL) {

    return NGX_OK;

    }

    if (r->cache->valid_sec != 0) {

    return NGX_OK;

    }

论坛徽章:
0
3 [报告]
发表于 2013-04-28 01:17 |只看该作者
不看不知道,看了才知道,好帖
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP