10-18-2018, 11:58 PM
I presume there is a little problem in Indy for FPC 3.0.4, Lazarus 1.8.4, Debian x86_64:
Compile package indylaz 10.6.2: Exit code 256, Errors: 2, Hints: 4
IdSSLOpenSSLHeaders.pas(17956,49) Hint: C arrays are passed by reference
IdSSLOpenSSLHeaders.pas(17958,64) Hint: C arrays are passed by reference
IdSSLOpenSSLHeaders.pas(17963,68) Hint: C arrays are passed by reference
IdSSLOpenSSLHeaders.pas(19230,65) Hint: Local variable "LLen" does not seem to be initialized
IdSSLOpenSSLHeaders.pas(19571,10) Error: function header doesn't match the previous declaration "GetCryptLibHandle:Int64;"
IdSSLOpenSSLHeaders.pas(18191,10) Error: Found declaration: GetCryptLibHandle:QWord;
The following patch avoid this error:
Index: trunk/Lib/Protocols/IdSSLOpenSSLHeaders.pas
===================================================================
--- trunk/Lib/Protocols/IdSSLOpenSSLHeaders.pas (revision 5478)
+++ trunk/Lib/Protocols/IdSSLOpenSSLHeaders.pas (working copy)
@@ -832,6 +832,9 @@
sockets,
{$ENDIF}
SysUtils,
+ {$IFDEF FPC}
+ DynLibs, // better add DynLibs only for fpc
+ {$ENDIF}
IdCTypes;
//temp for compile tests
@@ -18901,10 +18904,7 @@
IdGlobalProtocols,
IdResourceStringsProtocols,
IdResourceStringsOpenSSL,
- IdStack
- {$IFDEF FPC}
- , DynLibs // better add DynLibs only for fpc
- {$ENDIF};
+ IdStack;
{$IFNDEF OPENSSL_NO_HMAC}
procedure HMAC_Init_ex(ctx : PHMAC_CTX; key : Pointer; len : TIdC_INT;
I'd like to suggest it to Atozed Team. Maybe will be useful to commit in trunk.
Thanks,
G.A. Moennich
Compile package indylaz 10.6.2: Exit code 256, Errors: 2, Hints: 4
IdSSLOpenSSLHeaders.pas(17956,49) Hint: C arrays are passed by reference
IdSSLOpenSSLHeaders.pas(17958,64) Hint: C arrays are passed by reference
IdSSLOpenSSLHeaders.pas(17963,68) Hint: C arrays are passed by reference
IdSSLOpenSSLHeaders.pas(19230,65) Hint: Local variable "LLen" does not seem to be initialized
IdSSLOpenSSLHeaders.pas(19571,10) Error: function header doesn't match the previous declaration "GetCryptLibHandle:Int64;"
IdSSLOpenSSLHeaders.pas(18191,10) Error: Found declaration: GetCryptLibHandle:QWord;
The following patch avoid this error:
Index: trunk/Lib/Protocols/IdSSLOpenSSLHeaders.pas
===================================================================
--- trunk/Lib/Protocols/IdSSLOpenSSLHeaders.pas (revision 5478)
+++ trunk/Lib/Protocols/IdSSLOpenSSLHeaders.pas (working copy)
@@ -832,6 +832,9 @@
sockets,
{$ENDIF}
SysUtils,
+ {$IFDEF FPC}
+ DynLibs, // better add DynLibs only for fpc
+ {$ENDIF}
IdCTypes;
//temp for compile tests
@@ -18901,10 +18904,7 @@
IdGlobalProtocols,
IdResourceStringsProtocols,
IdResourceStringsOpenSSL,
- IdStack
- {$IFDEF FPC}
- , DynLibs // better add DynLibs only for fpc
- {$ENDIF};
+ IdStack;
{$IFNDEF OPENSSL_NO_HMAC}
procedure HMAC_Init_ex(ctx : PHMAC_CTX; key : Pointer; len : TIdC_INT;
I'd like to suggest it to Atozed Team. Maybe will be useful to commit in trunk.
Thanks,
G.A. Moennich