-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error: "load_module" directive in nginx.conf not binary compatible #26
Comments
Good idea, something like that (an nginx Which nginx installation are you using within If I
The error message within nginx that causes a "binary mismatch" is here: https://github.com/nginx/nginx/blob/6915d2fb2e88e0c339fe37b37ce14f5fe446c1c6/src/core/ngx_module.c#L177-L182
The error message does not say where the mismatch is, and it does not print the values of Debian buster is a common distro that I imagine must be used by some of the nginx docker images. Might it be that the Debian packagers used I once attempted to use Here's what some cleaned-up-and-sorted configure arguments look like in the build available via
Here's the corresponding flags from the
Here's 1c1,2
< --with-debug
---
> --with-compat
> --with-file-aio
5c6
< --with-http_geoip_module=dynamic
---
> --with-http_flv_module
8c9,10
< --with-http_image_filter_module=dynamic
---
> --with-http_mp4_module
> --with-http_random_index_module
9a12
> --with-http_secure_link_module
15,17c18,19
< --with-http_xslt_module=dynamic
< --with-ld-opt='-Wl,-z,relro -Wl,-z,now -fPIC'
< --with-mail=dynamic
---
> --with-ld-opt='-specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'
> --with-mail
19,20c21,22
< --with-pcre-jit
< --with-stream=dynamic
---
> --with-stream
> --with-stream_realip_module If I pull the source tree for nginx 1.14.2 and look at the
... the question is: Which One guess is to use whatever is reported by I would avoid So, consider building the module with the following
We might need to whittle down that list further. I have yet to try it. |
I have gained valuable insight into how nginx is compiled, thanks to your comments. It became clear to me that in order to create a module for an existing nginx installation, it is essential to ensure that the parameters align with the ones already installed. After examining the nginx parameters using the |
Per my comment in the PR, I'll leave this issue open until we have a general solution to the nginx |
What's the solution for this? |
I am encountering an issue with the "load_module" directive in my nginx.conf file while using the source code from tag v1.0.0 of the DataDog repository. I am running the code inside a Docker image based on
python:3.8.12-slim-buster
.Here are the steps I followed:
v1.0.0
tag.bin/install_build_tooling.sh
script to install the necessary build tooling.nginx-version-info
file and setNGINX_VERSION=1.14.2
in it.make build
to build the code successfully.Attempted to start the application, but encountered the following error:
nginx: [emerg] module "libngx_http_datadog_module.so" is not binary compatible in /docker/webapp/nginx.conf:2
I have double-checked the syntax and path to the module file, ensuring they are correct. However, the error persists. I also removed
--with-compat
option in Makefile to see if it changes, but the error still persists.Could you please provide guidance on how to troubleshoot and resolve this error based on the procedures I followed?
The text was updated successfully, but these errors were encountered: