Giter VIP home page Giter VIP logo

Comments (7)

mattcaswell avatar mattcaswell commented on May 21, 2024

What platform are you on?
Is this a fresh copy of 1.0.1k or are you using an existing git repo?
The identifier cflags that it is failing with is defined in the file crypto/buildinf.h - which is a generated file. Does that file exist for you and what does it contain?

from openssl.

mpdaly avatar mpdaly commented on May 21, 2024

Win64, with a fresh 1.0.1k

My buildinf.h is as follows:

#ifndef MK1MF_BUILD
  /* auto-generated by Configure for crypto/cversion.c:
   * for Unix builds, crypto/Makefile.ssl generates functional definitions;
   * Windows builds (and other mk1mf builds) compile cversion.c with
   * -DMK1MF_BUILD and use definitions added to this file by util/mk1mf.pl. */
  #error "Windows builds (PLATFORM=VC-WIN64A) use mk1mf.pl-created Makefiles"
#endif
#ifdef MK1MF_PLATFORM_VC_WIN64A
  /* auto-generated/updated by util/mk1mf.pl for crypto/cversion.c */
  #define CFLAGS "cl  /MDd /Od -DDEBUG -D_DEBUG -DOPENSSL_THREADS  -DDSO_WIN32 -W3 -Gs0 -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE -DOPENSSL_USE_APPLINK -I. -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_SSL3 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_STATIC_ENGINE    "
  #define PLATFORM "VC-WIN64A"
  #define DATE "Thu Jan  8 17:05:37 2015"
#endif

from openssl.

mattcaswell avatar mattcaswell commented on May 21, 2024

Can you confirm if the following change fixes it for you:

From 0fe653506d2974b57fde6301e1b72bb7017abd3e Mon Sep 17 00:00:00 2001
From: Matt Caswell <[email protected]>
Date: Thu, 8 Jan 2015 18:01:29 +0000
Subject: [PATCH] Fix windows build

---
 crypto/cversion.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/crypto/cversion.c b/crypto/cversion.c
index 0336ada..21a2532 100644
--- a/crypto/cversion.c
+++ b/crypto/cversion.c
@@ -76,7 +76,9 @@ const char *SSLeay_version(int t)
        }
    if (t == SSLEAY_CFLAGS)
        {
-#ifdef CFLAGS
+#if defined(MK1MF_BUILD)
+       return(CFLAGS);
+#elif defined(CFLAGS)
        return(cflags);
 #else
        return("compiler: information not available");
-- 
2.1.0

from openssl.

serin13 avatar serin13 commented on May 21, 2024

I see the same thing when trying to compile on Win64 with Visual Studio 2013. I'm compiling against the FIPS container.

Build steps (after compiling the latest FIPS container):

perl Configure VC-WIN64A fips --with-fipslibdir=C:\projects\openssl-fips-2.0.9-x64\out32dll

perl util\mkfiles.pl >MINFO

cmd /c "nasm -f win64 -v" >NUL: 2>&1
if %errorlevel% neq 0 goto ml64

perl ms\uplink-x86_64.pl nasm > ms\uptable.asm
nasm -f win64 -o ms\uptable.obj ms\uptable.asm
goto proceed

:ml64
perl ms\uplink-x86_64.pl masm > ms\uptable.asm
ml64 -c -Foms\uptable.obj ms\uptable.asm

:proceed
perl util\mk1mf.pl nasm debug dll VC-WIN64A >ms\d64dll.mak
perl util\mk1mf.pl nasm dll VC-WIN64A >ms\64dll.mak

perl util\mkdef.pl 32 libeay > ms\libeay32.def
perl util\mkdef.pl 32 ssleay > ms\ssleay32.def

@if errorlevel 1 goto end
nmake -f ms\64dll.mak

from openssl.

mattcaswell avatar mattcaswell commented on May 21, 2024

There is a fix for this issue in git. See commit 56cd740

from openssl.

mpdaly avatar mpdaly commented on May 21, 2024

Fix from git confirmed working here.

from openssl.

winkelsdorf avatar winkelsdorf commented on May 21, 2024

As a note: Issue and fix also apply to official 1.0.0p release

from openssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.