Página 1 de 4

Erro compilando Harbour - Fork

Enviado: 31 Jan 2017 16:19
por asimoes
Pessoal,

Fiz uma atualização ontem do harbour versão fork e estou com problema na criação da lib hbssl
A minha última compilação sem este erro é do dia 23/01, alguém pode confirmar ?
Estou com o openssl atualizado para última versão Win32OpenSSL-1_1_0d

Código: Selecionar todos

../bin/win/mingw/.hbmk/hbssl-34/hbdyn/err.o:err.c:(.text+0x1b): undefined reference to `_OPENSSL_init_crypto'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evp.o:evp.c:(.text+0x6b): undefined reference to `_OPENSSL_init_crypto'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpciph.o:evpciph.c:(.text+0x9db): undefined reference to `_OPENSSL_init_crypto'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpciph.o:evpciph.c:(.text+0xf9d): undefined reference to `_EVP_CIPHER_CTX_reset'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpenc.o:evpenc.c:(.text+0x16): undefined reference to `_EVP_ENCODE_CTX_free'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpenc.o:evpenc.c:(.text+0x4b): undefined reference to `_EVP_ENCODE_CTX_new'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpmd.o:evpmd.c:(.text+0x16): undefined reference to `_EVP_MD_CTX_free'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpmd.o:evpmd.c:(.text+0x4b): undefined reference to `_OPENSSL_init_crypto'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpmd.o:evpmd.c:(.text+0x8cb): undefined reference to `_EVP_MD_CTX_new'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpmd.o:evpmd.c:(.text+0x91d): undefined reference to `_EVP_MD_CTX_reset'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2cb): undefined reference to `_OPENSSL_init_ssl'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2e7): undefined reference to `_OPENSSL_init_ssl'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x343): undefined reference to `_OpenSSL_version'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x384): undefined reference to `_OpenSSL_version_num'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x17f3): undefined reference to `_TLS_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x1801): undefined reference to `_TLS_server_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x180f): undefined reference to `_TLS_client_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x26cb): undefined reference to `_SSL_get_state'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x27ec): undefined reference to `_SSL_in_init'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x289b): undefined reference to `_SSL_in_before'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x292c): undefined reference to `_SSL_in_init'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x29db): undefined reference to `_SSL_in_init'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2a6b): undefined reference to `_SSL_is_init_finished'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2d7b): undefined reference to `_SSL_session_reused'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2f2b): undefined reference to `_SSL_get_options'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2fcc): undefined reference to `_SSL_set_options'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3a25): undefined reference to `_OPENSSL_sk_num'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3a4b): undefined reference to `_OPENSSL_sk_value'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3b25): undefined reference to `_OPENSSL_sk_num'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3b4b): undefined reference to `_OPENSSL_sk_value'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3bfd): undefined reference to `_OPENSSL_sk_num'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3c1e): undefined reference to `_OPENSSL_sk_value'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x129): undefined reference to `_TLS_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x145): undefined reference to `_TLS_server_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x151): undefined reference to `_TLS_client_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x1b1): undefined reference to `_TLS_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x1d1): undefined reference to `_TLS_server_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x212): undefined reference to `_TLS_client_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x131d): undefined reference to `_SSL_CTX_get_options'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x13ae): undefined reference to `_SSL_CTX_set_options'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0xcf): undefined reference to `_TLS_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0xd4): undefined reference to `_TLS_server_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0xe1): undefined reference to `_TLS_client_method'

Erro compilando Harbour - Fork

Enviado: 01 Fev 2017 21:05
por asimoes
O Viktor fez vários commits hoje, mas ainda não resolveu o problema da compilação da HBSSL
Acho que ainda tem problema no hbmk2
Alguém poderia reportar ao Viktor?

Código: Selecionar todos

../bin/win/mingw/.hbmk/hbssl-34/hbdyn/err.o:err.c:(.text+0x1b): undefined reference to `_OPENSSL_init_crypto'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evp.o:evp.c:(.text+0x6b): undefined reference to `_OPENSSL_init_crypto'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpciph.o:evpciph.c:(.text+0x9db): undefined reference to `_OPENSSL_init_crypto'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpciph.o:evpciph.c:(.text+0xf9d): undefined reference to `_EVP_CIPHER_CTX_reset'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpenc.o:evpenc.c:(.text+0x16): undefined reference to `_EVP_ENCODE_CTX_free'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpenc.o:evpenc.c:(.text+0x4b): undefined reference to `_EVP_ENCODE_CTX_new'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpmd.o:evpmd.c:(.text+0x16): undefined reference to `_EVP_MD_CTX_free'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpmd.o:evpmd.c:(.text+0x4b): undefined reference to `_OPENSSL_init_crypto'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpmd.o:evpmd.c:(.text+0x8cb): undefined reference to `_EVP_MD_CTX_new'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/evpmd.o:evpmd.c:(.text+0x91d): undefined reference to `_EVP_MD_CTX_reset'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2cb): undefined reference to `_OPENSSL_init_ssl'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2e7): undefined reference to `_OPENSSL_init_ssl'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x343): undefined reference to `_OpenSSL_version'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x384): undefined reference to `_OpenSSL_version_num'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x17f3): undefined reference to `_TLS_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x1801): undefined reference to `_TLS_server_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x180f): undefined reference to `_TLS_client_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x26cb): undefined reference to `_SSL_get_state'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x27ec): undefined reference to `_SSL_in_init'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x289b): undefined reference to `_SSL_in_before'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x292c): undefined reference to `_SSL_in_init'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x29db): undefined reference to `_SSL_in_init'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2a6b): undefined reference to `_SSL_is_init_finished'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2d7b): undefined reference to `_SSL_session_reused'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2f2b): undefined reference to `_SSL_get_options'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x2fcc): undefined reference to `_SSL_set_options'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3a25): undefined reference to `_OPENSSL_sk_num'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3a4b): undefined reference to `_OPENSSL_sk_value'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3b25): undefined reference to `_OPENSSL_sk_num'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3b4b): undefined reference to `_OPENSSL_sk_value'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3bfd): undefined reference to `_OPENSSL_sk_num'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/ssl.o:ssl.c:(.text+0x3c1e): undefined reference to `_OPENSSL_sk_value'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x129): undefined reference to `_TLS_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x145): undefined reference to `_TLS_server_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x151): undefined reference to `_TLS_client_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x1b1): undefined reference to `_TLS_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x1d1): undefined reference to `_TLS_server_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x212): undefined reference to `_TLS_client_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x131d): undefined reference to `_SSL_CTX_get_options'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0x13ae): undefined reference to `_SSL_CTX_set_options'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0xcf): undefined reference to `_TLS_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0xd4): undefined reference to `_TLS_server_method'
../bin/win/mingw/.hbmk/hbssl-34/hbdyn/sslctx.o:sslctx.c:(.text+0xe1): undefined reference to `_TLS_client_method'
collect2.exe: error: ld returned 1 exit status
hbmk2 [hbssl]: Error: Running dynamic lib link command. 1
hbmk2 [hbssl]: Exit code: 7: failed in final assembly (linker or library manager)

Erro compilando Harbour - Fork

Enviado: 02 Fev 2017 20:13
por asimoes
Prezados, continua o erro compilando a HBSSL (fork atualizado a pouco)

hbmk2 [hbssl]: Error: Running dynamic lib link command. 1
hbmk2 [hbssl]: Exit code: 7: failed in final assembly (linker or library manager)

Erro compilando Harbour - Fork

Enviado: 02 Fev 2017 20:27
por asimoes
Prezados,

Alguém poderia me informar o caminho para postar esse para o Viktor?

Erro compilando Harbour - Fork

Enviado: 02 Fev 2017 21:15
por JoséQuintas
Por acaso não mudou pra versão mais nova do hbssl?

Do lugar onde se faz o download

https://github.com/vszakats/harbour-core

clica em issues, e new issue
github.png

Erro compilando Harbour - Fork

Enviado: 02 Fev 2017 21:26
por asimoes
Quintas,

Sim, baixei a versão mais nova do SSL, eu consegui gerar os binários/lib sem problemas até o dia 23/01, eu não sei quando foi feita a modificação que tá gerando esse erro.

Tentei fazer o "issue" agora sem sucesso.

O download dos fontes eu faço via git pull

Eu queria saber se tem mais alguém com o mesmo erro

Erro compilando Harbour - Fork

Enviado: 02 Fev 2017 21:51
por JoséQuintas
Dá uma olhada nas mudanças.
changelog.txt, ou se tem instalado o GIT versão Windows, por ele.
Nunca usei essa parte de hbssl
git1.png
git2.png

Erro compilando Harbour - Fork

Enviado: 02 Fev 2017 22:53
por asimoes
Quintas,

Eu fiz uma compilação com o MSVC e deu o mesmo erro, tem como você compilar pra ver se dá o mesmo erro?

Pior que eu uso o HBSSL com tip_MailSend para envio de email, ainda bem que eu guardei uma versão de 23/01

Erro compilando Harbour - Fork

Enviado: 02 Fev 2017 23:43
por JoséQuintas
Justamente não ter que ficar pesquisando, nunca usei essa parte da hbssl.
E se eu não uso isso, aqui nem vai compilar essa parte.
Mas se usa mingw, é só baixar a versão pronta.

Erro compilando Harbour - Fork

Enviado: 03 Fev 2017 12:16
por asimoes
Quintas,

Você gera o harbour ou baixa ele pronto compilado ?

Erro compilando Harbour - Fork

Enviado: 03 Fev 2017 16:29
por asimoes
Novidades:

Fiz a compilação direto na pasta \contrib\hbssl

Não houve erro de compilação, mistério!

Compilei com o hbmk2 o hbssl.hbp e hbssls.hbp gerou as libs sem erro. Mas tá estranho a compilação se não for assim.

Apesar de eu ter conseguido gerar a lib da erro compilando o meu sistema:

Código: Selecionar todos

Generating C source output to 'OBJFORK\seb03.c'... Done.
Compiling 'seb04.prg'...
Lines 2373, Functions/Procedures 14
Generating C source output to 'OBJFORK\seb04.c'... Done.
hbmk2: Compilando recursos...
hbmk2: Compilando...
hbmk2: Linkando... sebol.exe
D:/HB32FORK/lib/win/mingw/libhbssl.a(err.o):err.c:(.text+0x1b): undefined reference to `_OPENSSL_init_crypto'
D:/HB32FORK/lib/win/mingw/libhbssl.a(evp.o):evp.c:(.text+0x6b): undefined reference to `_OPENSSL_init_crypto'
D:/HB32FORK/lib/win/mingw/libhbssl.a(evpciph.o):evpciph.c:(.text+0x9db): undefined reference to `_OPENSSL_init_crypto'
D:/HB32FORK/lib/win/mingw/libhbssl.a(evpciph.o):evpciph.c:(.text+0xf9d): undefined reference to `_EVP_CIPHER_CTX_reset'
D:/HB32FORK/lib/win/mingw/libhbssl.a(evpenc.o):evpenc.c:(.text+0x16): undefined reference to `_EVP_ENCODE_CTX_free'
D:/HB32FORK/lib/win/mingw/libhbssl.a(evpenc.o):evpenc.c:(.text+0x4b): undefined reference to `_EVP_ENCODE_CTX_new'
D:/HB32FORK/lib/win/mingw/libhbssl.a(evpmd.o):evpmd.c:(.text+0x16): undefined reference to `_EVP_MD_CTX_free'
D:/HB32FORK/lib/win/mingw/libhbssl.a(evpmd.o):evpmd.c:(.text+0x4b): undefined reference to `_OPENSSL_init_crypto'
.....

Erro compilando Harbour - Fork

Enviado: 03 Fev 2017 18:08
por asimoes
Baixei a versão compilada em https://github.com/vszakats/harbour-cor ... hot-win.7z
O meu sistema compilou com a hbssl sem erro.

Ai vem a pergunta: a versão compilada do Viktor usa os fontes que nós baixamos pelo GIT ?

Fiquei meio confuso com isso, aversão compilada do Viktor (fontes atualizados penso eu) sem erro, a que eu baixo com o git tem erro.

Erro compilando Harbour - Fork

Enviado: 03 Fev 2017 18:40
por JoséQuintas
Já comentei por aqui, mas vamos recapitular:

Adoro Harbour 3.4 e MSVC. A única opção é gerar do zero.

Atualizei, gerei tudo, MINGW e MSVC, tudo normal.
Mas só uso o que faz parte do Harbour.
Não tenho libcurl, libmysql, e nada que precise baixar algum programa ou dll adicional.
Também não uso 64 bits, porque prefiro um EXE que rode em qualquer lugar.
No dia que usar alguma dessas coisas, vou pesquisar como fazer.

Estou brincando com HMG, HMG Extended e OOHG, só por causa disso comecei a gerar pra MINGW.
MINGW não é porque quero, é porque sou obrigado

Aqui é tudo com mesmo Harbour, versão única.
Se não for Harbour 3.4, não interessa, tem que ter muuuita vantagem pra deixar de usar o 3.4.

BCC não funciona com Harbour 3.4, então BCC não é opção. Ou será que BCC 10 funciona?

Erro compilando Harbour - Fork

Enviado: 03 Fev 2017 18:45
por JoséQuintas
Sobre o que contém o download dos binários do 3.4
Gerado a cada commit
harbour34.png

Erro compilando Harbour - Fork

Enviado: 03 Fev 2017 18:51
por asimoes
Ok Quintas,

Mas você verificou se teve erro a geração da hbssl?

Esse é o meu problema, a versão compilada do Viktor deu problema com um sistema que tenho com minigui exetend + mingw, não executa dá erro.
Outro com hwgui funcionou. Essa versão compilada pelo Viktor eu não posso usar.

Tenho que gerar o harbour a partir dos fontes, sempre atualizados como eu sempre fiz, compilando com mingw 6.3

Como ninguém comenta essas coisas aqui, fica difícil achar onde está o erro.

Repetindo eu gero o harbour como eu sempre fiz a partir do git pull nunca notei problemas sérios.
Até o dia 23/01 compilei normalmente, quando eu atualizei dia 31/01 começou o erro.