Giter VIP home page Giter VIP logo

Comments (5)

talshadow avatar talshadow commented on May 17, 2024

Remove old version before build - and starting compile

from openssl.

White-Tiger avatar White-Tiger commented on May 17, 2024

not sure what you mean by "Remove old version before build" as I also got this kind of error...
I've just downloaded openssl-1.0.2.tar.gz and tried to build it, so there shouldn't be any "old version".
Also, my make output looks a bit differently...

g++    -c -o cryptlib.o cryptlib.c
In file included from cryptlib.c:117:0:
cryptlib.h:65:19: fatal error: e_os.h: No such file or directory
 # include "e_os.h"
                   ^

and as you can see, it's entirely missing any options or includes...

I've tried to follow this howto: http://qt-project.org/wiki/Compiling-OpenSSL-with-MinGW
as well as INSTALL.W32 (INSTALL.W64 is outdated, I actually want to compile for x86_64 but I can do neither)

from openssl.

lilianmoraru avatar lilianmoraru commented on May 17, 2024

I confirm the issue with 1.0.2a.
I tried to compile on a clean machine...
I did mingw32-make clean and then ./Configure mingw no-idea no-mdc2 no-rc5 shared after which mingw32-make depend.

`cryptlib.c:170:3: error: #error "Inconsistency between crypto.h and cryptlib.c"

error "Inconsistency between crypto.h and cryptlib.c"

^
uid.c:77:11: error: #include expects "FILENAME" or

include OPENSSL_UNISTD`

from openssl.

Ri0n avatar Ri0n commented on May 17, 2024

The problem is in implicit make rules.

I don't know why gnumake decided to use g++ instead of gcc but by the same reason it does not use declared CFLAGS what leads to the lost e_os.h header.
It seems there are no way o force gcc but explicit make rule. So in my case I've added next code to crypto/Makefile

%.o:    %.c
    $(CC) $(CFLAGS) -c -o $@ $<

and it compiled a little more.

Unfortunately all other makefiles do not have such explicit rule too.

from openssl.

c-sonntag avatar c-sonntag commented on May 17, 2024

Hey !
With MSYS2 it's work !
Maybe you can try this simple script to build openssl : easy-openssl-build-example.sh

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.