C:\Users\xxx\xx\xxx\openssl\e_os.h(13): fatal error C1083: Cannot open include file: 'limits.h': No such file or directory
Jakob Bohm
jb-openssl at wisemo.com
Wed Apr 10 13:58:02 UTC 2019
On 10/04/2019 14:28, Kingsley O wrote:
> Hello,
>
> I get the above error when trying to build openssl. I am on a x64
> Windows 10 platform, using perl 5, version 26, subversion 3 (v5.26.3)
> built for MSWin32-x64-multi-thread and Visual studio express for
> Windows 10
>
> The file limits is clearly located within the include folder of my
> visual studio installation and I have my environment variable set so
> that i can build openssl outside of the source tree. Unfortunately, I
> am at a loss as to why the build is unable to find this file.
> I have tried running vcvars32.bat and vcvarsx86_amd64.bat prior to
> running the configure and build scripts but have not been successful
> on both occasions.
>
> In addition when i run the Configure script, I would normally select
> VC-WIN64A, and I have also tried running vsvars32.bat prior to
> running the Configure and make scripts
>
> Sometimes I get similar error with the build unable to find a
> different file, in this instance *winsock2.h*
> *
> *
> Can any of you kind folk please help? I hope you can see my screenshot
>
> Many Thanks in advance
>
> *C:\Users\hello\_DEV\3di\openssl>nmake*
> *
> *
> *Microsoft (R) Program Maintenance Utility Version 14.00.24210.0*
> *Copyright (C) Microsoft Corporation. All rights reserved.*
> *
> *
> * "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl
> <http://dofile.pl>" "-omakefile" "crypto\include\internal\bn_conf.h.in
> <http://bn_conf.h.in>" > crypto\include\internal\bn_conf.h*
> * "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl
> <http://dofile.pl>" "-omakefile"
> "crypto\include\internal\dso_conf.h.in <http://dso_conf.h.in>" >
> crypto\include\internal\dso_conf.h*
> * "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl
> <http://dofile.pl>" "-omakefile" "doc\man7\openssl_user_macros.pod.in
> <http://openssl_user_macros.pod.in>" > doc\man7\openssl_user_macros.pod*
> * "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl
> <http://dofile.pl>" "-omakefile" "include\openssl\opensslconf.h.in
> <http://opensslconf.h.in>" > include\openssl\opensslconf.h*
> * "C:\Perl64\bin\perl.exe" "-I." -Mconfigdata "util\dofile.pl
> <http://dofile.pl>" "-omakefile" "test\provider_internal_test.conf.in
> <http://provider_internal_test.conf.in>" >
> test\provider_internal_test.conf*
> * "C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\BIN\nmake.exe" / depend && "C:\Program Files
> (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" /
> _all*
> *
> *
> *Microsoft (R) Program Maintenance Utility Version 14.00.24210.0*
> *Copyright (C) Microsoft Corporation. All rights reserved.*
> *
> *
> *
> *
> *Microsoft (R) Program Maintenance Utility Version 14.00.24210.0*
> *Copyright (C) Microsoft Corporation. All rights reserved.*
> *
> *
> * cl /Zi /Fdossl_static.pdb /Gs0 /GF /Gy /MD /W3 /wd4090
> /nologo /O2 /I "." /I "include" /I "apps\include" -D"L_ENDIAN"
> -D"OPENSSL_PIC" -D"OPENSSL_CPUID_OBJ" -D"OPENSSL_IA32_SSE2"
> -D"OPENSSL_BN_ASM_MONT" -D"OPENSSL_BN_ASM_MONT5"
> -D"OPENSSL_BN_ASM_GF2m" -D"SHA1_ASM" -D"SHA256_ASM" -D"SHA512_ASM"
> -D"KECCAK1600_ASM" -D"RC4_ASM" -D"MD5_ASM" -D"AES_ASM" -D"VPAES_ASM"
> -D"BSAES_ASM" -D"GHASH_ASM" -D"ECP_NISTZ256_ASM" -D"X25519_ASM"
> -D"POLY1305_ASM" -D"OPENSSLDIR=\"C:\\Program Files\\Common
> Files\\SSL\"" -D"ENGINESDIR=\"C:\\Program
> Files\\OpenSSL\\lib\\engines-3\"" -D"MODULESDIR=\"C:\\Program
> Files\\OpenSSL\\lib\\ossl-modules\"" -D"OPENSSL_SYS_WIN32"
> -D"WIN32_LEAN_AND_MEAN" -D"UNICODE" -D"_UNICODE"
> -D"_CRT_SECURE_NO_DEPRECATE" -D"_WINSOCK_DEPRECATED_NO_WARNINGS"
> -D"OPENSSL_USE_APPLINK" -D"NDEBUG" -c
> /Foapps\libapps-lib-app_rand.obj "apps\app_rand.c"*
> *app_rand.c*
> *C:\Users\hello\_DEV\3di\openssl\e_os.h(129): fatal error C1083:
> Cannot open include file: 'winsock2.h': No such file or directory*
> *NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'*
> *Stop.*
> *NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 14.0\VC\BIN\nmake.exe"' : return code '0x2'*
> *Stop.*
>
Check the value of the "INCLUDE" environment variable. If it is
not set, try the build again from a "Developer Command Prompt"
(Under "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Visual
Studio 2015\Visual Studio Tools" )
Enjoy
Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S. https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded
More information about the openssl-users
mailing list