Nginx не собирается с OpenSSL 1.1.0c на Windows, вот последние строки лога:
objs/ngx_modules.obj kernel32.lib user32.lib advapi32.lib ws2_32.lib objs/lib/pcre-8.39/pcre.lib objs/lib/openssl-1.1.0c/openssl/lib/ssleay32.lib objs/lib/openssl-1.1.0c/openssl/lib/libeay32.lib gdi32.lib crypt32.lib objs/lib/zlib-1.2.8/zlib.lib objs/nginx.res LINK : fatal error LNK1104: не удается открыть файл "objs/lib/openssl-1.1.0c/ope nssl/lib/ssleay32.lib" NMAKE : fatal error U1077: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\ VC\BIN\cl.EXE" : возвращенный код "0x2" Stop. Файлы ssleay32.lib libeay32.lib (и dll) больше не существуют в OpenSSL 1.1.0, но Nginx их почему-то хочет. Посмотрел в исxодники - походу это жестко прописано в https://trac.nginx.org/nginx/browser/nginx/auto/lib/openssl/conf Сама инструкция сборки https://trac.nginx.org/nginx/browser/nginx/auto/lib/openssl/makefile.msvc заточена только на старый OpenSSL, с новым так не соберется, там совсем другие команды нужны (обычный nmake & nmake install без всяких ms/do_ms). Под Linux всё собирается нормально. Собирал на Windows так: auto/configure --with-cc=cl --builddir=objs --prefix= \ --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid \ --http-log-path=logs/access.log --error-log-path=logs/error.log \ --sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp \ --http-proxy-temp-path=temp/proxy_temp \ --http-fastcgi-temp-path=temp/fastcgi_temp \ --with-cc-opt=-DFD_SETSIZE=32768 --with-pcre=objs/lib/pcre-8.39 \ --with-zlib=objs/lib/zlib-1.2.8 --with-openssl=objs/lib/openssl-1.1.0c \ --with-select_module --with-http_ssl_module --with-http_addition_module \ --with-http_secure_link_module --with-http_realip_module \ --with-http_stub_status_module --with-http_sub_module --with-http_v2_module \ --with-pcre-jit --with-stream --with-stream_ssl_module Posted at Nginx Forum: https://forum.nginx.org/read.php?21,271485,271485#msg-271485 _______________________________________________ nginx-ru mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx-ru
