FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Build with Visual Studio 2015 errors
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Build with Visual Studio 2015 errors
Posted: Tue Apr 07, 2015 06:30 PM

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Tue Apr 07, 2015 06:35 PM

very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Build with Visual Studio 2015 errors
Posted: Tue Apr 07, 2015 07:12 PM

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Tue Apr 07, 2015 07:23 PM

Tim,

Please try to link vcruntime.lib too

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Build with Visual Studio 2015 errors
Posted: Tue Apr 07, 2015 08:05 PM

That took care of the MSVCRT issue, but not hbssl and hbcommon libs.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Tue Apr 07, 2015 08:29 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Wed Apr 08, 2015 12:19 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Build with Visual Studio 2015 errors
Posted: Wed Apr 08, 2015 12:48 PM

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

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Wed Apr 08, 2015 01:38 PM

Cristobal,

These are the steps that Rafa Carmona explained:

viewtopic.php?f=6t=23539p=157479hilit=openssl#p126479

Lets see if we can build it...

&&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Thu Apr 09, 2015 08:40 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Thu Apr 09, 2015 08:59 AM
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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Thu Apr 09, 2015 09:02 AM

Error solved removing the word "HANDLE" from line 556

Compiling...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Thu Apr 09, 2015 09:03 AM
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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Thu Apr 09, 2015 09:07 AM
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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Build with Visual Studio 2015 errors
Posted: Thu Apr 09, 2015 09:14 AM
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.
regards, saludos

Antonio Linares
www.fivetechsoft.com