Page 2 of 3
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Apr 07, 2015 6:30 pm
by TimStone
Antonio,
I have no problem with that. VS 2015 is on a test machine with Win 10. My current "production" computer will not be affected. I simply copy source code from the production machine to the test machine where the new libs will be found.
Tim
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Apr 07, 2015 6:35 pm
by Antonio Linares
very good
![Smile :-)](./images/smilies/icon_smile.gif)
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Apr 07, 2015 7:12 pm
by TimStone
OK ...
I still have 3 problems: UNDEFINED
__vaCopy in _hb_vsnprintf found in hbcommon.lib
__iob_func in hbssl.lib ( I don't think you rebuilt this one )
_except_handler4_ommon in MSVCRTD.lib though I told it not to link this file by default ... it still goes to it.
Tim
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Apr 07, 2015 7:23 pm
by Antonio Linares
Tim,
Please try to link vcruntime.lib too
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Apr 07, 2015 8:05 pm
by TimStone
That took care of the MSVCRT issue, but not hbssl and hbcommon libs.
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Apr 07, 2015 8:29 pm
by Antonio Linares
Tim,
I have never built hbssl myself, so I will have to check how to do it...
As far as I know we have to use OpenSSL
maybe some hbssl user can help us here
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Apr 08, 2015 12:19 pm
by Antonio Linares
I am trying to build it this way:
c:\harbour\contrib\hbssl>c:\harbour\bin\hbmk2 hbssl -comp=msvc
hbmk2: Building sub-project (level 2): hbssls.hbp
hbmk2[hbssls]: Warning: Missing dependency: openssl
Surely Rafa Carmona or another FWH user may be able to help us on this
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Apr 08, 2015 12:48 pm
by cnavarro
Antonio, creo, pero no lo he usado nunca, que has de tener instalado el OpenSSl en C:\OpenSSl...
He encontrado esto
¿
http://www.openssl.org/source/openssl-0.9.8h.tar.gz ?
Pero no se si es la version a utilizar
http://p-nand-q.com/programming/windows ... _2013.html
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Apr 08, 2015 1:38 pm
by Antonio Linares
Cristobal,
These are the steps that Rafa Carmona explained:
viewtopic.php?f=6&t=23539&p=157479&hilit=openssl#p126479Lets see if we can build it...
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Apr 09, 2015 8:40 am
by Antonio Linares
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Apr 09, 2015 8:59 am
by Antonio Linares
Before calling:
nmake -f ms\nt.mak
this call must be done:
call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
and I get this error:
C:\openssl>nmake -f ms\nt.mak
Microsoft (R) Program Maintenance Utility Version 14.00.22310.1
Copyright (C) Microsoft Corporation. All rights reserved.
Building OpenSSL
cl /Fotmp32\cryptlib.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /no
32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPREC
-DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -
RB5 -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\crypto\cryptlib.c
cryptlib.c
.\crypto\cryptlib.c(556): error C2220: warning treated as error - no 'object' file generate
.\crypto\cryptlib.c(556): warning C4456: declaration of 'h' hides previous local declaratio
.\crypto\cryptlib.c(474): note: see declaration of 'h'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.
Stop.
Suggestions are welcome
![Smile :-)](./images/smilies/icon_smile.gif)
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Apr 09, 2015 9:02 am
by Antonio Linares
Error solved removing the word "HANDLE" from line 556
Compiling...
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Apr 09, 2015 9:03 am
by Antonio Linares
Next error:
cl /Fotmp32\b_print.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nol
2_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECA
-DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -D
B5 -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\crypto\bio\b_print.c
b_print.c
.\crypto\bio\b_print.c(381): error C2220: warning treated as error - no 'object' file gener
.\crypto\bio\b_print.c(381): warning C4267: '=': conversion from 'size_t' to 'short', possi
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.
Stop.
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Apr 09, 2015 9:07 am
by Antonio Linares
Solved changing line 381 of c:\openssl\crypto\bio\b_print.c this way:
*num = ( short ) currlen;
Next error:
cl /Fotmp32\rand_win.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /no
32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPREC
-DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -
RB5 -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\crypto\rand\rand_win.c
rand_win.c
.\crypto\rand\rand_win.c(404): error C2220: warning treated as error - no 'object' file gen
.\crypto\rand\rand_win.c(404): warning C4456: declaration of 'm' hides previous local decla
.\crypto\rand\rand_win.c(201): note: see declaration of 'm'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.
Stop.
Re: Build with Visual Studio 2015 errors
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Apr 09, 2015 9:14 am
by Antonio Linares
Solved comenting the line 404 of c:\openssl\crypto\rand\rand_win.c
// MODULEENTRY32 m;
next error:
cl /Fotmp32\rand_win.obj -Iinc32 -Itmp32 /MT /Ox /O2 /Ob2 /W3 /WX /Gs0 /GF /Gy /nologo -DOPENSSL_SYSNAME_WIN32 -DWIN
32_LEAN_AND_MEAN -DL_ENDIAN -DDSO_WIN32 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE /Fdout32 -DOPENSSL_NO_CAMELLIA
-DOPENSSL_NO_SEED -DOPENSSL_NO_RC5 -DOPENSSL_NO_MDC2 -DOPENSSL_NO_CMS -DOPENSSL_NO_JPAKE -DOPENSSL_NO_CAPIENG -DOPENSSL_NO_K
RB5 -DOPENSSL_NO_DYNAMIC_ENGINE /Zl -c .\crypto\rand\rand_win.c
rand_win.c
.\crypto\rand\rand_win.c(544): error C2039: 'dwSize': is not a member of '_MEMORYSTATUS'
C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(545): note: see declaration of '_MEMORYSTATUS'
.\crypto\rand\rand_win.c(547): warning C4133: 'function': incompatible types - from 'MEMORYSTATUS *' to 'LPMODULEENTRY32'
.\crypto\rand\rand_win.c(549): error C2039: 'dwSize': is not a member of '_MEMORYSTATUS'
C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(545): note: see declaration of '_MEMORYSTATUS'
.\crypto\rand\rand_win.c(549): error C2198: 'RAND_add': too few arguments for call
.\crypto\rand\rand_win.c(550): warning C4133: 'function': incompatible types - from 'MEMORYSTATUS *' to 'LPMODULEENTRY32'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.