-
Notifications
You must be signed in to change notification settings - Fork 223
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
Does this module work with nginx 1.22.0 #146
Comments
Did you recompile the headers-more-nginx-modules? |
Thanks for replying @zhuizhuhaomeng . I looked at the instructions:
Is it possible to re-compile just the module to generate the .so file without nginx? ̦Please correct me as I'm not familiar with how nginx works. |
yes, you can recompile just the module. ./configure --prefix=/opt/nginx |
Many thanks, @zhuizhuhaomeng . Appreciate it! |
Compiling with the --with-combat option using
Is there a way to resolve this issue? |
I have the same issue with nginx 1.18.0 (the version in Ubuntu 20.04 LTS), and the latest version in the nginx repo - 1.24.0. Compiled with source from both releases, same error as above when trying to load it. But, at least for nginx 1.24.0, adding FYI, in my case, I want to use packaged nginx, so did Edit: Works on 1.18.0 using |
I'm facing the same issue with another module as well. I'm trying to build the
This is output of
I tried with I need to compile Can anyone please confirm this and help in resolving the issue? |
use the `nginx -V` to get the configuration of the running nginx, and then
add --add-dynamic-module=../nginx-upload-module to the original
configuration
Anjali Raj ***@***.***> 于2023年7月4日周二 14:29写道:
… I'm facing the same issue with another module as well. I'm trying to build
the ngx_http_upload_module from source code using the following commands.
tdnf -y install wget git pcre-devel
wget http://nginx.org/download/nginx-1.22.0.tar.gz
tar -xvf nginx-1.22.0.tar.gz
git clone https://github.com/vkholodkov/nginx-upload-module
cd nginx-1.22.0/
./configure --with-compat --add-dynamic-module=../nginx-upload-module
make modules
cd objs
cp /objs/ngx_http_upload_module.so /etc/nginx/modules
This is output of nginx -t
nginx: [emerg] module "/etc/nginx/modules/ngx_http_upload_module.so" is not binary compatible in /etc/nginx/nginx.conf:6
nginx: configuration file /etc/nginx/nginx.conf test failed
I tried with make and make install instead of make modules as well. In
that case also, same error as mentioned above.
I need to compile ngx_http_headers_more_filter_module and
ngx_http_headers_more_filter_module for *Nginx 1.22.0*.
Since I'm facing the same issue for two different modules, I suspect that
the issue is in the way we are generating the .so files which is causing
issues.
Can anyone please confirm this and help in resolving the issue?
—
Reply to this email directly, view it on GitHub
<#146 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6RHPTWNGVZDMIVEFI46W3XOOZ5FANCNFSM6AAAAAAZAI277Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@zhuizhuhaomeng Running the configure command for the required modules with the original configuration is also giving the same error. |
would you please show the process of how you compile the nginx module? |
Sure, the following set of commands are working fine in ubuntu 22.04 but seems to be failing in PhotonOS 4.0
I copied the so files generated in ubuntu VM to photon VM and still getting "binary not compatible" error. Is there a way to generate the so files which are compatible with PhotonOS 4.0? |
what is the value of |
You'd better to compile ngx-headers-more on PhotonOS 4.0. |
Right, so when I'm trying in PhotonOS 4.0 using the same commands, then also the generated binary is not compatible. I've tried with Nginx 1.19.3 and 1.22.0. Output of nginx -V:
|
In the Photon VM, there was residual configuration which was causing the "binary not compatible" issue. Thanks for the help @zhuizhuhaomeng. |
I see the last tested version is nginx 1.21; I recently upgraded the nginx version and have started seeing the error:
How can I resolve this?
The text was updated successfully, but these errors were encountered: