Patch.

On Sun, Jun 23, 2013 at 11:42:47AM +0400, Sergey A. Osokin wrote:
> Hi,
> 
> I've tried to build nginx 1.4.1 under FreeBSD 9.1-STABLE and the build has 
> been failed.
> 
> Here is configure arguments:
> 
> --prefix=/usr/local/etc/nginx --with-cc-opt=-I /usr/local/include 
> --with-ld-opt=-L /usr/local/lib --conf-path=/usr/local/etc/nginx/nginx.conf 
> --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid 
> --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-ipv6 
> --http-client-body-temp-path=/var/tmp/nginx/client_body_temp 
> --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp 
> --http-proxy-temp-path=/var/tmp/nginx/proxy_temp 
> --http-scgi-temp-path=/var/tmp/nginx/scgi_temp 
> --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp 
> --http-log-path=/var/log/nginx-access.log --with-http_flv_module 
> --with-http_gzip_static_module --with-http_mp4_module 
> --with-http_realip_module --with-http_stub_status_module --with-pcre 
> --with-mail --with-mail_ssl_module
> 
> Here is error message:
> 
> cc -c -O2 -pipe -fno-strict-aliasing -I /usr/local/include -I src/core  -I 
> src/event  -I src/event/modules  -I src/os/unix  -I objs -I src/http  -I 
> src/http/modules  -o objs/src/http/ngx_http_request.o  
> src/http/ngx_http_request.c
> src/http/ngx_http_request.c: In function 'ngx_http_set_virtual_server':
> src/http/ngx_http_request.c:1992: error: 'ngx_http_ssl_srv_conf_t' undeclared 
> (first use in this function)
> src/http/ngx_http_request.c:1992: error: (Each undeclared identifier is 
> reported only once
> src/http/ngx_http_request.c:1992: error: for each function it appears in.)
> src/http/ngx_http_request.c:1992: error: 'sscf' undeclared (first use in this 
> function)
> src/http/ngx_http_request.c:1999: error: 'ngx_http_ssl_module' undeclared 
> (first use in this function)
> *** [objs/src/http/ngx_http_request.o] Error code 1
> 
> Could you investigate the issue.
> 
> -- 
> Sergey A. Osokin
> [email protected]
> [email protected]
> 
> _______________________________________________
> nginx mailing list
> [email protected]
> http://mailman.nginx.org/mailman/listinfo/nginx
--- src/http/ngx_http_request.c.orig    2013-06-23 11:44:31.000000000 +0400
+++ src/http/ngx_http_request.c 2013-06-23 11:48:57.000000000 +0400
@@ -1986,6 +1986,7 @@
         return NGX_ERROR;
     }
 
+#if (NGX_HTTP_SSL)
 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
 
     if (hc->ssl_servername) {
@@ -2008,6 +2009,7 @@
     }
 
 #endif
+#endif
 
     if (rc == NGX_DECLINED) {
         return NGX_OK;
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to