openresty / openresty/openresty-packaging

openssl version is not as expected

Open
#133 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
187
Forks
93
PR merge metrics
No merged PRs in 30d

Description

i use openresty -V, it gave:

nginx version: openresty/1.17.8.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) 
built with OpenSSL 1.0.2k-fips  26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/OR-1.17.8.2/nginx --with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I./dependent_packages/zlib/include -I./dependent_packages/pcre/include -I./dependent_packages/openssl/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.08 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.17 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../ngx_stream_lua-0.0.8 --with-ld-opt='-Wl,-rpath,/usr/local/OR-1.17.8.2/luajit/lib -L./dependent_packages/zlib/lib -L./dependent_packages/pcre/lib -L./dependent_packages/openssl/lib' --with-cc='ccache gcc -fdiagnostics-color=always' --with-pcre-jit --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat --with-stream --with-stream_ssl_preread_module --with-http_ssl_module

the details show i specified the version of openssl:

--with-cc-opt='-O2 -DNGX_LUA_ABORT_AT_PANIC -I./dependent_packages/zlib/include -I./dependent_packages/pcre/include -I./dependent_packages/openssl/include'
--with-ld-opt='-Wl,-rpath,/usr/local/OR-1.17.8.2/luajit/lib -L./dependent_packages/zlib/lib -L./dependent_packages/pcre/lib -L./dependent_packages/openssl/lib'

but in fact, it "built with OpenSSL 1.0.2k-fips 26 Jan 2017" at line 3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the openresty -V output and comparing its OpenSSL line with the --with-cc-opt and --with-ld-opt paths shown in the report. Trace how the packaging build selects those include and library directories; done means the built binary uses and reports the intended OpenSSL version instead of 1.0.2k-fips.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.