yaoweibin / nginx_ajp_module

support AJP protocol proxy with Nginx
http://github.com/yaoweibin/nginx_ajp_module
246 stars 59 forks source link

Build failure against nginx 1.5.11 #22

Closed jbergstroem closed 10 years ago

jbergstroem commented 10 years ago

Tested while adding ajp as a third party module to the nginx ebuild in gentoo. Output:

NGX_DEPS="src/core/nginx.h src/core/ngx_config.h src/core/ngx_core.h src/core/ngx_log.h src/core/ngx_palloc.h src/core/ngx_array.h src/core/ngx_list.h src/core/ngx_hash.h src/core/ngx_buf.h src/core/ngx_queue.h src/core/ngx_string.h src/core/ngx_parse.h src/core/ngx_inet.h src/core/ngx_file.h src/core/ngx_crc.h src/core/ngx_crc32.h src/core/ngx_murmurhash.h src/core/ngx_md5.h src/core/ngx_sha1.h src/core/ngx_rbtree.h src/core/ngx_radix_tree.h src/core/ngx_slab.h src/core/ngx_times.h src/core/ngx_shmtx.h src/core/ngx_connection.h src/core/ngx_cycle.h src/core/ngx_conf_file.h src/core/ngx_resolver.h src/core/ngx_open_file_cache.h src/core/ngx_crypt.h src/event/ngx_event.h src/event/ngx_event_timer.h src/event/ngx_event_posted.h src/event/ngx_event_busy_lock.h src/event/ngx_event_connect.h src/event/ngx_event_pipe.h src/os/unix/ngx_time.h src/os/unix/ngx_errno.h src/os/unix/ngx_alloc.h src/os/unix/ngx_files.h src/os/unix/ngx_channel.h src/os/unix/ngx_shmem.h src/os/unix/ngx_process.h src/os/unix/ngx_setaffinity.h src/os/unix/ngx_setproctitle.h src/os/unix/ngx_atomic.h src/os/unix/ngx_gcc_atomic_x86.h src/os/unix/ngx_thread.h src/os/unix/ngx_socket.h src/os/unix/ngx_os.h src/os/unix/ngx_user.h src/os/unix/ngx_process_cycle.h src/os/unix/ngx_linux_config.h src/os/unix/ngx_linux.h src/event/ngx_event_openssl.h src/core/ngx_regex.h objs/ngx_auto_config.h src/http/ngx_http.h src/http/ngx_http_request.h src/http/ngx_http_config.h src/http/ngx_http_core_module.h src/http/ngx_http_cache.h src/http/ngx_http_variables.h src/http/ngx_http_script.h src/http/ngx_http_upstream.h src/http/ngx_http_upstream_round_robin.h src/http/ngx_http_busy_lock.h src/http/modules/ngx_http_ssi_filter_module.h src/http/ngx_http_spdy.h src/http/ngx_http_spdy_module.h src/http/modules/ngx_http_ssl_module.h src/http/modules/perl/ngx_http_perl_module.h" \
    perl Makefile.PL \
        LIB= \
        PREFIX=/usr \
        INSTALLDIRS=vendor \
        INSTALLSITEMAN3DIR=
/var/tmp/portage/www-servers/nginx-1.5.11/work/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.c: In function 'ngx_http_upstream_init_jvm_route_rr':
/var/tmp/portage/www-servers/nginx-1.5.11/work/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.c:384:51: error: 'ngx_http_upstream_server_t' has no member named 'srun_id'
                 peers->peer[n].srun_id = server[i].srun_id;
                                                   ^
/var/tmp/portage/www-servers/nginx-1.5.11/work/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.c:386:52: error: 'ngx_http_upstream_server_t' has no member named 'max_busy'
                 peers->peer[n].max_busy = server[i].max_busy;
                                                    ^
/var/tmp/portage/www-servers/nginx-1.5.11/work/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.c:447:52: error: 'ngx_http_upstream_server_t' has no member named 'srun_id'
                 backup->peer[n].srun_id = server[i].srun_id;
                                                    ^
/var/tmp/portage/www-servers/nginx-1.5.11/work/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.c:449:53: error: 'ngx_http_upstream_server_t' has no member named 'max_busy'
                 backup->peer[n].max_busy = server[i].max_busy;
                                                     ^
/var/tmp/portage/www-servers/nginx-1.5.11/work/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.c: In function 'ngx_http_upstream_jvm_route':
/var/tmp/portage/www-servers/nginx-1.5.11/work/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.c:1253:11: error: 'NGX_HTTP_UPSTREAM_SRUN_ID' undeclared (first use in this function)
         | NGX_HTTP_UPSTREAM_SRUN_ID
           ^
/var/tmp/portage/www-servers/nginx-1.5.11/work/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.c:1253:11: note: each undeclared identifier is reported only once for each function it appears in
objs/Makefile:2114: recipe for target 'objs/addon/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.o' failed
make[1]: *** [objs/addon/nginx_ajp_module-0.2.6/ngx_http_upstream_jvm_route_module.o] Error 1
yaoweibin commented 10 years ago

Do you need use the jvm_route module? If not, could you use the latest master branch?

jbergstroem commented 10 years ago

@yaoweibin Haven't tried/used jvm_route. The reason for using 0.2.6 was that it was on top of the releases list on github. I now see there's a 0.3.0 which seems to build nicely. Thanks.