I uncovered 2 errors when building openssl-0.9.7c with Visual studio.

The environment I have is a build system running under cygwin that 
builds using Visual C++ 7.1.

The first problem is that when trying to invoke the "install" target in 
nmake, nmake does nothing because there exists a file named "install" 
and prompty says that it is "up to date".  Work-around for me was to 
move the file named "install" away before invoking nmake install.

The second problem is that the ntdll.mak file has an incorrect command 
to "install" the header files.

This is the command generated from nmake - notice that [ch] does not 
expand under a win32 command line interpreter so that means that all the 
header files are missing from the "installation" directory.

        copy nul+ inc32\openssl\*.[ch] ..\install\include\openssl
nul
        1 file(s) copied.


These are the GNU make definitions that I use to build openssl that run 
under cygwin.

PACKAGEBUILD_CMD=\
        MAKEFLAGS=; export MAKEFLAGS; \
        nmake /f ms\\\\ntdll.mak

PACKAGEBUILD_INSTALL=\
        MAKEFLAGS=; export MAKEFLAGS; \
        mv install install.txt; \
        nmake /f ms\\\\ntdll.mak /b install; \
        cp inc32/openssl/*.[ch] ../install/include/openssl

PACKAGECONFIGURE=( \
        cd $(EXTRACTS); \
        INSTALL_DIR="../install"; \
        cd $(MODULE_NAME); \
        touch mxs_excl_incl; \
        ./Configure --prefix=$$INSTALL_DIR VC-WIN32 ; \
        cmd /C ms\\do_masm ; \
)


Another problem not related to openssl but related to interaction with 
gnu make and nmake is that gnu make sets the environment variable 
MAKEFLAGS with options that nmake is unable to process.  The work-around 
for this is to set MAKEFLAGS="" before invoking nmake.



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to