-
Notifications
You must be signed in to change notification settings - Fork 10
[BUG]: Compilation Error with nginx 1.26.3 and nginx-datadog v1.6.0 - Missing <stdexcept> Include #196
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
Comments
Hi @Simoouqas, thank you for bringing this to our attention. That's an interesting issue. I haven't been able to reproduce it on my end, and the CI pipeline is compiling successfully. TO help narrow it down, could you let me know which compiler and version you're using? In the meantime, as a workaround, you can try building using our Docker image with the following command: WAF=ON ARCH=x86_64 NGINX_VERSION=1.27.1 make build-musl You can find more details on this approach in our README here: Let me know how it goes or if you run into any further issues. |
@dmehala thank for the response Additional InformationHere are a few more environment details that might help with debugging:
The reproduction code mentioned earlier is part of a script executed during the Docker build process, like this: RUN chmod +x datadog-module.sh && ./datadog-module.sh
I attempted your approach using command not found
make: *** [Makefile:105: build-musl] Error 127 Context: We've been using this same script for a year without any issues. However, starting around March 11, the build began failing. After reverting back to version 1.50, the script started working again. Note: I'm not deeply familiar with compilers or Nginx module internals, so I apologize if I'm missing or miscommunicating any important technical details. I truly appreciate your patience and guidance as we work through this. |
Module Version(s)
v1.6.0
Bug Report
Description:
When compiling the DataDog nginx module against nginx version 1.26.3 using nginx-datadog v1.6.0, the build fails with a compilation error related to missing std::out_of_range declaration.
Environment:
nginx version: 1.26.3
nginx-datadog version: 1.6.0
Compilation command: NGINX_VERSION=${NGINX_VERSION} make build
Workaround:
Downgrading to nginx-datadog v1.5.0 resolves the compilation issue.
Suggested Fix:
The error suggests that header needs to be included in src/tracing/directives.cpp. This is a straightforward fix that should be added to the source code.
Additional Information:
I'm happy to provide:
Full build logs
System information
Test the fix once available
Any other details that would help resolve this issue
Let me know what other information would be helpful for troubleshooting this issue.
Reproduction Code
Error Logs
No response
Operating System
No response
The text was updated successfully, but these errors were encountered: