ngx_stream module build error on 1.11.3

Dewangga Bachrul Alam dewanggaba at xtremenitro.org
Thu Jul 28 07:31:25 UTC 2016


Hello!

I've tried to build nginx 1.11.3 with --with-stream module parameter,
but, attached below:

.. snip ..

./configure \
        --prefix=%{_sysconfdir}/nginx \
        --sbin-path=%{_sbindir}/nginx \
        --conf-path=%{_sysconfdir}/nginx/nginx.conf \
        --error-log-path=%{_localstatedir}/log/nginx/error.log \
        --http-log-path=%{_localstatedir}/log/nginx/access.log \
        --pid-path=%{_localstatedir}/run/nginx.pid \
        --lock-path=%{_localstatedir}/run/nginx.lock \

--http-client-body-temp-path=%{_localstatedir}/cache/nginx/client_temp \
        --http-proxy-temp-path=%{_localstatedir}/cache/nginx/proxy_temp \

--http-fastcgi-temp-path=%{_localstatedir}/cache/nginx/fastcgi_temp \
        --http-uwsgi-temp-path=%{_localstatedir}/cache/nginx/uwsgi_temp \
        --http-scgi-temp-path=%{_localstatedir}/cache/nginx/scgi_temp \
        --user=%{nginx_user} \
        --group=%{nginx_group} \
        --with-http_ssl_module \
        --with-http_realip_module \
        --with-http_addition_module \
        --with-http_sub_module \
        --with-http_dav_module \
        --with-http_gunzip_module \
        --with-http_gzip_static_module \
        --with-http_random_index_module \
        --with-http_secure_link_module \
        --with-http_stub_status_module \
        --with-http_auth_request_module \
        --with-http_slice_module \
        --with-stream \
        --with-mail \
        --with-mail_ssl_module \
        --with-file-aio \
        --with-ipv6 \
        %{?with_http2:--with-http_v2_module} \
        --with-cc-opt="%{optflags} $(pcre-config --cflags)" \
        $*

.. snip ..

The error was :

src/stream/ngx_stream_proxy_module.c: In function
'ngx_stream_proxy_handler':
src/stream/ngx_stream_proxy_module.c:542:6: error:
'ngx_stream_upstream_t {aka struct <anonymous>}' has no member named
'ssl_name'
     u->ssl_name = uscf->host;
      ^~
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror
-g -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-m64 -mtune=generic  -I src/core -I src/event -I src/event/modules -I
src/os/unix -I objs -I src/stream \
	-o objs/src/stream/ngx_stream_upstream_round_robin.o \
	src/stream/ngx_stream_upstream_round_robin.c
objs/Makefile:1498: recipe for target
'objs/src/stream/ngx_stream_proxy_module.o' failed
make[1]: *** [objs/src/stream/ngx_stream_proxy_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/dominique/rpmbuild/BUILD/nginx-1.11.3'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.IciEtd (%build)

The build was normal without stream parameter.



More information about the nginx mailing list