Opened 3 years ago

Closed 3 years ago

#2129 closed defect (invalid)

--with-openssl= extra .openssl injected in path

Reported by: EddyHahn72@… Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.18.x
Keywords: build configure Cc:
uname -a: 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:40:21 PST 2020; root:xnu-7195.60.75~1/RELEASE_ARM64_T8101 arm64
nginx -V: not available

Description

Hi,
I am overriding --with-openssl as "/opt/serverplus/dependencies/openssl" however in the generated Makefile file the path became /opt/serverplus/dependencies/openssl/.openssl. the .openssl added!?

Configuration summary

+ using threads
+ using PCRE library: /opt/serverplus/dependencies/pcre
+ using OpenSSL library: /opt/serverplus/dependencies/openssl
+ using zlib library: /opt/serverplus/dependencies/zlib

nginx path prefix: "/opt/serverplus/dependencies/nginx"
nginx binary file: "/opt/serverplus/dependencies/nginx/sbin/nginx"
nginx modules path: "/opt/serverplus/dependencies/nginx/modules"
nginx configuration prefix: "/opt/serverplus/etc/nginx"
nginx configuration file: "/opt/serverplus/etc/nginx/nginx.conf"
nginx pid file: "/opt/serverplus/var/run/nginx.pid"
nginx error log file: "/opt/serverplus/var/log/nginx/error.log"
nginx http access log file: "/opt/serverplus/var/log/nginx/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"

nginx-1.18.0 % make -j 8
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f objs/Makefile
cd /opt/serverplus/dependencies/pcre \

&& if [ -f Makefile ]; then /Applications/Xcode.app/Contents/Developer/usr/bin/make distclean; fi \
&& CC="cc" CFLAGS="-O2 -pipe " \
./configure --disable-shared

cd /opt/serverplus/dependencies/openssl \

&& if [ -f Makefile ]; then /Applications/Xcode.app/Contents/Developer/usr/bin/make clean; fi \
&& ./config --prefix=/opt/serverplus/dependencies/openssl/.openssl no-shared no-threads \
&& /Applications/Xcode.app/Contents/Developer/usr/bin/make \
&& /Applications/Xcode.app/Contents/Developer/usr/bin/make install_sw LIBDIR=lib

/bin/sh: ./configure: No such file or directory
/bin/sh: ./config: No such file or directory
make[1]: * opt/serverplus/dependencies/openssl/.openssl/include/openssl/ssl.h Error 127
make[1]:
* Waiting for unfinished jobs....
make[1]: * opt/serverplus/dependencies/pcre/Makefile Error 127
make:
* [build] Error 2

Am I doing something wrong or is it a configuration error?

Thanks,

Eddy

Change History (2)

comment:1 by EddyHahn72@…, 3 years ago

Sorry figured it out. It needed the library source directory not the actual final location. Once changed it compiled successfully.

Thanks,

Eddy

comment:2 by Sergey Kandaurov, 3 years ago

Resolution: invalid
Status: newclosed

As documented, the parameter sets the path to the OpenSSL library sources.

Note: See TracTickets for help on using tickets.