Skip to content
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

Build error #106

Closed
CatAnonymous opened this issue Feb 6, 2020 · 1 comment
Closed

Build error #106

CatAnonymous opened this issue Feb 6, 2020 · 1 comment

Comments

@CatAnonymous
Copy link

Its error
/usr/bin/ld: objs/addon/src/ngx_http_headers_more_util.o: in function ngx_http_headers_more_parse_types': /tmp/build/openresty-1.15.8.2/../headers-more-nginx-module-master/src/ngx_http_headers_more_util.c:229: multiple definition of ngx_http_headers_more_parse_types'; objs/addon/src/ngx_http_headers_more_util.o:/tmp/build/openresty-1.15.8.2/../headers-more-nginx-module-master/src/ngx_http_headers_more_util.c:229: first defined here/usr/bin/ld: objs/addon/src/ngx_http_headers_more_util.o: in function ngx_http_headers_more_rm_header_helper': /tmp/build/openresty-1.15.8.2/../headers-more-nginx-module-master/src/ngx_http_headers_more_util.c:268: multiple definition of ngx_http_headers_more_rm_header_helper'; objs/addon/src/ngx_http_headers_more_util.o:/tmp/build/openresty-1.15.8.2/../headers-more-nginx-module-master/src/ngx_http_headers_more_util.c:268: first defined here collect2: error: ld returned 1 exit status make[2]: *** [objs/Makefile:512: objs/nginx] Error 1 make[2]: Leaving directory '/tmp/build/openresty-1.15.8.2/build/nginx-1.15.8' make[1]: *** [Makefile:8: build] Error 2 make[1]: Leaving directory '/tmp/build/openresty-1.15.8.2/build/nginx-1.15.8' make: *** [Makefile:9: all] Error 2

@agentzh
Copy link
Member

agentzh commented Feb 9, 2020

@khaiphan9x OpenResty already ships with this headers more module. Why are you trying to add your own? That's why you are getting the error "multiple definition of ...", which clearly indicates duplications here.

@agentzh agentzh closed this as completed Feb 9, 2020
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