Skip to content

ngx_http_set_hashed_upstream.o #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tmslnz opened this issue Mar 8, 2011 · 3 comments
Closed

ngx_http_set_hashed_upstream.o #4

tmslnz opened this issue Mar 8, 2011 · 3 comments

Comments

@tmslnz
Copy link

tmslnz commented Mar 8, 2011

Compiling from source with this module enabled was tripping it out:

gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g  -DNDK_SET_VAR -DNDK_UPSTREAM_LIST -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR -DNDK_SET_VAR  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /opt/src/W.Nginx/nginx/../modules/ngx_devel_kit/objs -I objs/addon/ndk -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I /opt/src/W.Nginx/nginx/../modules/ngx_devel_kit/src -I src/mail \
        -o objs/addon/src/ngx_http_set_hashed_upstream.o \
        /opt/src/W.Nginx/nginx/../modules/set-misc-nginx-module/src/ngx_http_set_hashed_upstream.c
/opt/src/W.Nginx/nginx/../modules/set-misc-nginx-module/src/ngx_http_set_hashed_upstream.c: In function ‘ngx_http_set_misc_get_upstream_list’:
/opt/src/W.Nginx/nginx/../modules/set-misc-nginx-module/src/ngx_http_set_hashed_upstream.c:12: error: ‘ndk_upstreams’ undeclared (first use in this function)
/opt/src/W.Nginx/nginx/../modules/set-misc-nginx-module/src/ngx_http_set_hashed_upstream.c:12: error: (Each undeclared identifier is reported only once
/opt/src/W.Nginx/nginx/../modules/set-misc-nginx-module/src/ngx_http_set_hashed_upstream.c:12: error: for each function it appears in.)
make[1]: *** [objs/addon/src/ngx_http_set_hashed_upstream.o] Error 1
make[1]: Leaving directory `/opt/src/W.Nginx/nginx'
make: *** [build] Error 2

Got it to compile successfully removing --add-module=set-misc-nginx-module

@agentzh
Copy link
Member

agentzh commented Mar 8, 2011

Sorry, this is a transient error caused by yesterday's NDK updates. Please try pulling the latest master of ngx_set_misc and compiling again. I've just fixed it in ngx_set_misc's git respos.

@tmslnz
Copy link
Author

tmslnz commented Mar 8, 2011

Mmmm. I'm not an expert, so it's quite likely I'm doing something wrong here, but I am still getting the same error even after pulling your latest changes.

@agentzh
Copy link
Member

agentzh commented Mar 8, 2011

Please also pull from the ngx_devel_kit repos. Ensure you're at HEAD of both repositories ;)

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants