Indy problem on FreeBSD lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- BSaidus · 2017-04-24 06:55 Hello. Indy servers don't works on FreeBSD. to test : Just drop any server component, configure it and make  Active = true at design time. the executable wont run, and a dump core is generated. ah, another problem : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  {$IFDEF UNIX}   // For linux the user needs to set this variable to be accurate where used (mail, etc)  GOffsetFromUTC: TDateTime = 0{$IFDEF HAS_DEPRECATED}{$IFDEF USE_SEMICOLON_BEFORE_DEPRECATED};{$ENDIF} deprecated{$ENDIF};     {$IFDEF DARWIN}  GMachTimeBaseInfo: TTimebaseInfoData;    {$ENDIF}  {$ENDIF}  it give me a message : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  IdGlobal.pas(1889,105) Error: expected ;, but deprecated found Thanks for help. ---------------------------------------------------------------------- BSaidus · 2017-04-24 07:39 Hhhh!! for Server components, I've see on : https://github.com/skelter/Indy/tree/master/Lib/fpcnotes I must add define  : -dUseCThreads on project options and it works. thanks anyway  . ---------------------------------------------------------------------- Remy Lebeau · 2017-04-24 23:18 Quote from: BSaidus on April 24, 2017, 08:55:19 amIndy servers don't works on FreeBSD. In what way exactly? Quote from: BSaidus on April 24, 2017, 08:55:19 amto test : Just drop any server component, configure it and make  Active = true at design time. the executable wont run, and a dump core is generated. And what does it say exactly? Quote from: BSaidus on April 24, 2017, 08:55:19 amah, another problem : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  {$IFDEF UNIX}   // For linux the user needs to set this variable to be accurate where used (mail, etc)  GOffsetFromUTC: TDateTime = 0{$IFDEF HAS_DEPRECATED}{$IFDEF USE_SEMICOLON_BEFORE_DEPRECATED};{$ENDIF} deprecated{$ENDIF};     {$IFDEF DARWIN}  GMachTimeBaseInfo: TTimebaseInfoData;    {$ENDIF}  {$ENDIF}  it give me a message : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  IdGlobal.pas(1889,105) Error: expected ;, but deprecated found Which version of FreePascal are you using?  That error suggests USE_SEMICOLON_BEFORE_DEPRECATED is not defined, which it should be in FPC 2.4.4 - 2.6.1.  From 2.6.2 onwards, it is not needed anymore (see this discussion). ---------------------------------------------------------------------- BSaidus · 2017-04-25 08:34 Hi Remy ! The server components works well, I've just missing to define the use od CThread in the project options. Concerning the variable: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  {$IFDEF UNIX}   // For linux the user needs to set this variable to be accurate where used (mail, etc)  GOffsetFromUTC: TDateTime = 0{$IFDEF HAS_DEPRECATED}{$IFDEF USE_SEMICOLON_BEFORE_DEPRECATED};{$ENDIF} deprecated{$ENDIF};     {$IFDEF DARWIN}  GMachTimeBaseInfo: TTimebaseInfoData;    {$ENDIF}  {$ENDIF} when I push Ctrl+Space the lazarus IDE gives me Error : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  IdGlobal.pas(1889,105) Error: expected ;, but deprecated found   PS:  I use Lazarus 1.6.4/FPC 3.0.2 on FreeBSD 10.3 (GhostBSD). Thanks. ---------------------------------------------------------------------- Remy Lebeau · 2017-04-25 18:27 Quote from: BSaidus on April 25, 2017, 10:34:35 am PS:  I use Lazarus 1.6.4/FPC 3.0.2 on FreeBSD 10.3 (GhostBSD). As I said in my last reply, Indy does not define USE_SEMICOLON_BEFORE_DEPRECATED for FPC 3.x.  In the other discussion, it was already confirmed that the compiler happily accepts this code: Code: [Select]var   GOffsetFromUTC: TDateTime = 0 deprecated; But your error message suggests your compiler is expecting this code instead: Code: [Select]var   GOffsetFromUTC: TDateTime = 0; deprecated; You say the error happens when you press Ctrl+Space in the IDE, so maybe this is just a Lazarus bug?  Do you get the same error when you just compile the code normally? ---------------------------------------------------------------------- BSaidus · 2017-04-26 08:27 Ah !! The code while compiling works fine !!! I think that this is lazarus BUG thanks