Hwgui em 64bits
Enviado: 15 Mai 2020 15:43
Como você compila a openssl ?Itamar M. Lins Jr. escreveu:Instalei LetoDbf, freimage, openssl, curl e Hwgui todos em 64 bits. Já está em produção em uma loja.
Como você compila a openssl ?Itamar M. Lins Jr. escreveu:Instalei LetoDbf, freimage, openssl, curl e Hwgui todos em 64 bits. Já está em produção em uma loja.
No final aparece -Wcast-function-type../../../../../contrib/hbwin/win_proxyc.c:158:53: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'BOOL (*)(HB_WINHTTP_CURRENT_USER_IE_PROXY_CONFIG *)' {aka 'int (*)(struct <anonymous> *)'} [-Wcast-function-type]
Código: Selecionar todos
Compilando o programa CLANG...
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x30a): undefined reference to `EVP_rc5_32_12_16_cbc'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x318): undefined reference to `EVP_rc5_32_12_16_ecb'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x326): undefined reference to `EVP_rc5_32_12_16_cfb64'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x334): undefined reference to `EVP_rc5_32_12_16_cfb64'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x342): undefined reference to `EVP_rc5_32_12_16_ofb'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x955): undefined reference to `EVP_rc5_32_12_16_cfb64'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0xa0f): undefined reference to `EVP_rc5_32_12_16_ecb'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0xa18): undefined reference to `EVP_rc5_32_12_16_cbc'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0xb0b): undefined reference to `EVP_rc5_32_12_16_ofb'
collect2.exe: error: ld returned 1 exit status
hbmk2[asaclang]: Erro: Executando linkeditor. 1
Pressione qualquer tecla para continuar. . .
Código: Selecionar todos
C:\devl\hb32-code>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/msys32/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.3.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-9.3.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++ --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --enable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev1, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 9.3.0 (Rev1, Built by MSYS2 project)
Código: Selecionar todos
C:\fontes\teste>set hb
HB_STATIC_CURL=yes
HB_STATIC_OPENSSL=yes
HB_WITH_CURL=C:\curl-7.70.0-win64-mingw\include
HB_WITH_FREEIMAGE=C:\FreeImage\Dist\x64
HB_WITH_MYSQL=C:\mysql-8.0.19-winx64\include
HB_WITH_OPENSSL=C:\openssl-1.1.1g-win64-mingw\include
Código: Selecionar todos
set HB_INSTALL_PREFIX=c:\hb32Código: Selecionar todos
cd \devl\hb32-code\
>mingw32-make install
Código: Selecionar todos
@echo off
SET PATH=C:\Program Files\Git\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin;
SET HB_COMPILER=mingw64
SET HB_INSTALL_PREFIX=C:\HB32GCC64
SET HB_STATIC_OPENSSL=yes
SET HB_WITH_FREEIMAGE=D:\FreeImage\Dist\x64
SET HB_WITH_OPENSSL=D:\OPENSSL\openssl-1.1.1g-win64-mingw\include
@echo Compilando Harbour 32 fork GCC 64 MSYS2
SET DATACOM=%date:~0,2%/%date:~3,2%/%date:~-2%
SET STARTTIME=%time:~0,2%:%time:~3,2%:%time:~6,2%
if not exist logmingw32forkclang.log @echo Compilação Mingw 32 Fork CLANG >> logmingw32forkclang.log
@echo ------------------------------------------ >> logmingw32forkclang.log
@echo Compilação GERAL CLANG >> logmingw32forkclang.log
@echo ------------------------ >> logmingw32forkclang.log
@echo Data : %DATACOM% >> logmingw32forkclang.log
@echo Inicio : %STARTTIME% >> logmingw32forkclang.log
mingw32-make clean instal
SET ENDTIME=%TIME%
SET ENDTIME=%time:~0,2%:%time:~3,2%:%time:~6,2%
for /F "tokens=1-4 delims=:.," %%a in ("%STARTTIME%") do (
set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
)
for /F "tokens=1-4 delims=:.," %%a in ("%ENDTIME%") do (
set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
)
rem Calculate the elapsed time by subtracting values
set /A elapsed=end-start
set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100
if %hh% lss 10 set hh=0%hh%
if %mm% lss 10 set mm=0%mm%
if %ss% lss 10 set ss=0%ss%
if %cc% lss 10 set cc=0%cc%
REM SET DURATION=%hh%:%mm%:%ss%,%cc%
SET DURATION=%hh%:%mm%:%ss%
@echo Fim : %ENDTIME% >> logmingw32forkclang.log
@echo --------------- >> logmingw32forkclang.log
@echo Tempo : %DURATION% >> logmingw32forkclang.log
@echo Fim da compilação
@pause
Código: Selecionar todos
Generating C source output to 'OBJCLANGDES\PA440300.c'... Done.
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x30a): undefined reference to `EVP_rc5_32_12_16_cbc'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x318): undefined reference to `EVP_rc5_32_12_16_ecb'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x326): undefined reference to `EVP_rc5_32_12_16_cfb64'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x334): undefined reference to `EVP_rc5_32_12_16_cfb64'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x342): undefined reference to `EVP_rc5_32_12_16_ofb'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0x955): undefined reference to `EVP_rc5_32_12_16_cfb64'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0xa0f): undefined reference to `EVP_rc5_32_12_16_ecb'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0xa18): undefined reference to `EVP_rc5_32_12_16_cbc'
D:/hb32gcc64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:/hb32gcc64/lib/win/mingw64/libhbssl.a(evpciph.o):evpciph.c:(.text+0xb0b): undefined reference to `EVP_rc5_32_12_16_ofb'
collect2.exe: error: ld returned 1 exit status
hbmk2[asaclang]: Erro: Executando linkeditor. 1
Pressione qualquer tecla para continuar. . .
Código: Selecionar todos
@echo off
SET PATH=C:\Program Files\Git\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin;
rem SET HB_COMPILER=mingw64
SET HB_INSTALL_PREFIX=C:\HB32GCC64
SET HB_STATIC_OPENSSL=yes
SET HB_WITH_FREEIMAGE=D:\FreeImage\Dist\x64
SET HB_WITH_OPENSSL=D:\OPENSSL\openssl-1.1.1g-win64-mingw\include
@echo Compilando Harbour 32 fork GCC 64 MSYS2
SET DATACOM=%date:~0,2%/%date:~3,2%/%date:~-2%
SET STARTTIME=%time:~0,2%:%time:~3,2%:%time:~6,2%
if not exist logmingw32forkclang.log @echo Compilação Mingw 32 Fork CLANG >> logmingw32forkclang.log
@echo ------------------------------------------ >> logmingw32forkclang.log
@echo Compilação GERAL CLANG >> logmingw32forkclang.log
@echo ------------------------ >> logmingw32forkclang.log
@echo Data : %DATACOM% >> logmingw32forkclang.log
@echo Inicio : %STARTTIME% >> logmingw32forkclang.log
mingw32-make clean install > logcomp.txt 2>&1
SET ENDTIME=%TIME%
SET ENDTIME=%time:~0,2%:%time:~3,2%:%time:~6,2%
for /F "tokens=1-4 delims=:.," %%a in ("%STARTTIME%") do (
set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
)
for /F "tokens=1-4 delims=:.," %%a in ("%ENDTIME%") do (
set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
)
rem Calculate the elapsed time by subtracting values
set /A elapsed=end-start
set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100
if %hh% lss 10 set hh=0%hh%
if %mm% lss 10 set mm=0%mm%
if %ss% lss 10 set ss=0%ss%
if %cc% lss 10 set cc=0%cc%
REM SET DURATION=%hh%:%mm%:%ss%,%cc%
SET DURATION=%hh%:%mm%:%ss%
@echo Fim : %ENDTIME% >> logmingw32forkclang.log
@echo --------------- >> logmingw32forkclang.log
@echo Tempo : %DURATION% >> logmingw32forkclang.log
@echo Fim da compilação
@pause
Código: Selecionar todos
hbmk2: Processando script local: hbmk.hbm
hbmk2: Harbour: Compilando módulos...
Harbour 3.2.0dev (r2004201301)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling 'BROWSECOLOR.PRG'...
Lines 4938, Functions/Procedures 6
Generating C source output to 'OBJMINGW\BROWSECOLOR.c'... Done.
Compiling 'PROGRESSBAR.PRG'...
Lines 5448, Functions/Procedures 6
Generating C source output to 'OBJMINGW\PROGRESSBAR.c'... Done.
hbmk2: Compilando recursos...
hbmk2: Compilando...
hbmk2: Linkando... BrowseColor.exe
D:/HB32GCC64/comp/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lfreeimage
Código: Selecionar todos
As explained earlier in the thread, if you want to use it,
it needs to be compiled in. Recompile and reinstall OpenSSL.
You can turn on/off ciphers (such as using --no-idea at configure
time) so make sure you include the ciphers you require. I'd
suggest using >=0.9.7 which includes AES, just in case you need
it down the road.
Or you could pick different ciphers to use and give up on RC5.Hb 32 quis dizer...O Harbour 2.3 a Freeimage só compila com a versão 3.17 de 2015, o que suspeitava.
Código: Selecionar todos
-depimplibs=freeimage:/freeimage/Dist/x64/FreeImage.dllCódigo: Selecionar todos
C:\devl\hb32-code\contrib\hbfimage>hbmk2 hbfimage.hbp
hbmk2: Dependência 'freeimage' encontrado: c:\FreeImage\Dist\x64
hbmk2: Encontrado COMF .lib com o mesmo nome, voltando a usá-la em vez da .dll
.
hbmk2: Biblioteca de importação criada: libFreeImage.a <=
\freeimage\Dist\x64\FreeImage.dll
hbmk2: Alvo atualizado: libhbfimage.a
Pelo pouco que entendo, isso ai é para chamar no hbrun!hbssl preciso disso porque uso gmail
Código: Selecionar todos
#if ! defined( __HBSCRIPT__HBSHELL )
Código: Selecionar todos
hbtip.hbc
hbssl.hbc
sddodbc.hbc
#hbcrypto.hbc
hbct.hbc
hbfimage.hbc
hbnf.hbc
hbxpp.hbc
hbwin.hbc
xhb.hbc
-mt
#-w0 -es1
#-u+simpleio.ch
Código: Selecionar todos
#require "hbssl"
#require "hbtip"
REQUEST __HBEXTERN__HBSSL__
******************************************************
Function Email(aArqui,cSubject,cBody,cEmail,cBodyFile)
******************************************************
*
*
LOCAL cHost, lRet := .F., nPort, lSTARTTLS := .F.
IF !tip_SSL()
hwg_msgstop( "Erro: Ative o suporte SSL" )
RETURN
ENDIF
...
lRet := tip_MailSend( ;
cHost, ;
nPort, ; //iif( lSTARTTLS, 587, 465 ), ;
cFrom, ;
cTo, ;
xCC /* CC */, ;
{} /* BCC */, ;
cBody , ;
cSubJect , ;
aArqui /* attachment */, ;
cFrom, ;
cPassword, ;
"", ;
NIL /* nPriority */, ;
NIL /* lRead */, ;
.T. /* lTrace */, ;
.F., /*lPopAuth */ ;
NIL /* lNoAuth */, ;
NIL /* nTimeOut */, ;
NIL /* cReplyTo */, ;
nPort == 465) //! lSTARTTLS )
If lRet
hwg_Msginfo("Email enviado."+hb_eol()+"Assunto: "+cSubject+hb_eol()+"Endereço: "+cTo)
Else
hwg_Msgexclamation("Falha enviando email via TIP_MAILSEND")
EndIf
Return lRet
Baixo sempre daqui do Viktor: https://bintray.com/vszakats/generic/opensslItamar M. Lins Jr. escreveu:Ola!
Pegou o OpenSSL onde ?
O erro é esse ai.