openappsec / attachment

Attachments connect between processes that provide HTTP data and the open-appsec Agent security logic.
https://www.openappsec.io
Apache License 2.0
23 stars 4 forks source link

nginx: [emerg] dlopen() "modules/libngx_module.so" failed (/lib/libosrc_compression_utils.so: undefined symbol: inflate) #25

Open khangcnttspkt opened 2 months ago

khangcnttspkt commented 2 months ago

I build on Centos 9 Stream and Rocky Linux 9.4 with same error

orianelou commented 1 month ago

Hi,

Could you please share the full compilation flow?

khangcnttspkt commented 1 month ago

Hi,

Could you please share the full compilation flow?

Hi, I compilation:

/opt/nginx/sbin/nginx -V &> /tmp/nginx.ver

./attachments/nginx/ngx_module/nginx_version_configuration.sh --conf /tmp/nginx.ver build_out cmake -DCMAKE_INSTALL_PREFIX=build_out . make install make package

cd build_out ./install-cp-nano-nginx-attachment.sh --install cp -rf build_out/lib/libngx_module.so /opt/nginx/modules

my nginx version: nginx version: nginx/1.27.0 built by gcc 11.4.1 20231218 (Red Hat 11.4.1-3) (GCC) built with OpenSSL 1.1.1w 11 Sep 2023 TLS SNI support enabled configure arguments: --prefix=/opt/nginx --sbin-path=/opt/nginx/sbin/nginx --lock-path=/opt/nginx/nginx.lock --conf-path=/opt/nginx/conf/nginx.conf --modules-path=/opt/nginx/modules --error-log-path=/opt/nginx/logs/error.log --http-log-path=/opt/nginx/logs/access.log --user=nginx --group=nginx --with-http_stub_status_module --with-pcre --with-openssl=../openssl-1.1.1w/ --with-zlib=../zlib-1.3.1 --with-http_ssl_module --with-stream --add-dynamic-module=../headers-more-nginx-module-0.37 --add-dynamic-module=../ngx_http_geoip2_module-3.4