Opened 16 months ago

Last modified 16 months ago

#2422 closed defect

Issue with OpenSSL Makefile Perl Command and %cd% not resolving properly — at Initial Version

Reported by: justdan23@… Owned by:
Priority: blocker Milestone:
Component: nginx-core Version: 1.22.x
Keywords: Cc: justdan23@…
uname -a: justdan23@gmail.com
nginx -V: Not Able to Build on Windows using MSYS2 and MingW64

Description

Version: master (and) stable-1.22 branches
File: nginx/auto/lib/openssl/Makefile
Platform: VC-WIN64A on Windows OS using MSYS2 (64-bit) and Mingw64 (64-bit)

Issue: perl Configure changed to VC-WIN64A manually (but occurs with VC-WIN32), and results in %cd% not resolving to objs/lib/ folder causing an error where it is unable to find the folder pre location.

# Copyright (C) Igor Sysoev
# Copyright (C) Nginx, Inc.

all:
	export cd=/home/justd/nginx/dist

	cd $(OPENSSL)
	
	perl Configure VC-WIN64A no-shared no-threads			\
		--prefix="%cd%/openssl" 				\
		--openssldir="%cd%/openssl/ssl" 			\
		$(OPENSSL_OPT)

	if exist ms\do_ms.bat (						\
		ms\do_ms						\
		&& $(MAKE) -f ms\nt.mak					\
		&& $(MAKE) -f ms\nt.mak install				\
	) else (							\
		$(MAKE)							\
		&& $(MAKE) install_sw					\
	)

Error Output:

$ make
make -f objs/Makefile
make[1]: Entering directory '/home/justd/nginx'
make -f auto/lib/openssl/makefile.msvc                                  OPENSSL="objs/lib/openssl" OPENSSL_OPT=""
make[2]: Entering directory '/home/justd/nginx'
export cd=/home/justd/nginx/dist
cd objs/lib/openssl
perl Configure VC-WIN64A no-shared no-threads                   \
        --prefix="%cd%/openssl"                                 \
        --openssldir="%cd%/openssl/ssl"                         \

Can't open perl script "Configure": No such file or directory
make[2]: *** [auto/lib/openssl/makefile.msvc:10: all] Error 2
make[2]: Leaving directory '/home/justd/nginx'
make[1]: *** [objs/Makefile:1825: objs/lib/openssl/openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory '/home/justd/nginx'
make: *** [Makefile:10: build] Error 2

Change History (3)

by justdan23@…, 16 months ago

Attachment: Makefile added

objs/Makefile

by justdan23@…, 16 months ago

Attachment: makefile.msvc added

From nginx-dev\auto\lib\openssl\Makefile.msvc

by justdan23@…, 16 months ago

Attachment: makefile.2.msvc added

From nginx-dev\auto\cc

Note: See TracTickets for help on using tickets.