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

unresolved external symbol2 (2) #21

Open
itpp16 opened this issue Feb 16, 2016 · 4 comments
Open

unresolved external symbol2 (2) #21

itpp16 opened this issue Feb 16, 2016 · 4 comments

Comments

@itpp16
Copy link

itpp16 commented Feb 16, 2016

error LNK2019: unresolved external symbol _ngx_http_lua_get_request referenced in function _ngx_http_lua_upstream_get_upstream_main_conf

error LNK2019: unresolved external symbol _ngx_http_lua_add_package_preload referenced in function _ngx_http_lua_upstream_init

@agentzh
Copy link
Member

agentzh commented Feb 16, 2016

@itpp16 Because you didn't provide enough info, I can only guess here. This error message means two possibilities usually:

  1. You didn't compile the ngx_http_lua module as a static module into your nginx binary while ngx_http_lua_upstream_module depends on it, or
  2. You did compile the ngx_http_lua module as a dynamic module but you did not compile ngx_http_lua_upstream_module as a dynamic module at the same time (which is required here). The ngx_http_lua_upstream_module does not support building as a dynamic module (yet) BTW.

@itpp16
Copy link
Author

itpp16 commented Feb 16, 2016

Everything is build as static, nothing new other then the new 1.9.12 layout and "--add-module=" as before.

@agentzh
Copy link
Member

agentzh commented Feb 16, 2016

@itpp16 It cannot be. The _ngx_http_lua_get_request symbol is from ngx_http_lua_module and apparently your linker cannot find it due to the lack of ngx_http_lua_module. The same applies to _ngx_http_lua_add_package_preload.

@itpp16
Copy link
Author

itpp16 commented Feb 16, 2016

and confirmed, all openresty modules work when using the previous (lua-nginx-module) config file

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