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

Dynamic compilation does not work, but static compilation works. #297

Open
zelot1982 opened this issue Jul 24, 2024 · 1 comment
Open

Dynamic compilation does not work, but static compilation works. #297

zelot1982 opened this issue Jul 24, 2024 · 1 comment

Comments

@zelot1982
Copy link

I am using dynamic compilation to load the nginx-module-vts (version 0.2.2) on Nginx version 1.24.0. After completing the compilation and make modules, I configured the ngx_http_vhost_traffic_status_module.so file in nginx.conf. However, during the configuration check, I encountered the following error:"ngx_http_vhost_traffic_status_module.so" failed (/usr/local/nginx/module/ngx_http_vhost_traffic_status_module.so: undefined symbol: ngx_stat_accepted)
Compilation parameters: ./configure --with-compat --add-dynamic-module=../nginx-module-vts-0.2.2.

I found that static compilation works correctly and allows me to add the vhost_traffic_status_zone; configuration. Static compilation parameters: ./configure --add-module=../nginx-module-vts-0.2.2.

I noticed that nginx-module-vts supports up to Nginx version 1.22.x. Could it be that the issue is due to exceeding the supported version? However, if it is a version issue, why does static compilation work correctly?

@u5surf
Copy link
Collaborator

u5surf commented Oct 28, 2024

@zelot1982 Sorry for late reply. I confirmed the dynamic compilation which used the module and nginx are latest was working completely.

nginx:

commit f45c2707ea1bf6fde3bd0c045cc4a63cdc4a966a (HEAD -> master, origin/master, origin/HEAD)
Author: jzebor-at-f5 <[email protected]>
Date:   Fri Oct 11 09:48:53 2024 -0700

    Updated security policy to include disclosure details.
****

module

commit 724b34d7f1eff083860e3ac613a2c1d66a238dfd (HEAD -> master, origin/master, origin/HEAD)
Merge: bd33883 3e5806e
Author: Y.Horie <[email protected]>
Date:   Sat Jan 20 12:31:34 2024 +0900

    Merge pull request #291 from cohalz/patch-1

machine spec:

% sysctl -a | grep machdep.cpu
machdep.cpu.cores_per_package: 8
machdep.cpu.core_count: 8
machdep.cpu.logical_per_package: 8
machdep.cpu.thread_count: 8
machdep.cpu.brand_string: Apple M2

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