Build with Visual Studio 2015 errors

Re: Build with Visual Studio 2015 errors

Postby TimStone » Tue Apr 07, 2015 6: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Tue Apr 07, 2015 6:35 pm

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby TimStone » Tue Apr 07, 2015 7: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Tue Apr 07, 2015 7:23 pm

Tim,

Please try to link vcruntime.lib too
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby TimStone » Tue Apr 07, 2015 8: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
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Tue Apr 07, 2015 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Wed Apr 08, 2015 1:38 pm

Cristobal,

These are the steps that Rafa Carmona explained:

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

Lets see if we can build it...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Thu Apr 09, 2015 8:40 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Thu Apr 09, 2015 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Thu Apr 09, 2015 9:02 am

Error solved removing the word "HANDLE" from line 556

Compiling...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Thu Apr 09, 2015 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Thu Apr 09, 2015 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Build with Visual Studio 2015 errors

Postby Antonio Linares » Thu Apr 09, 2015 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: karinha and 46 guests

cron