Indy10 Cannot Find TIdTextEncoding in IdSSLOpenSSLUtils lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- kevin.black · 2019-02-25 06:08 I was having issues with parts of Indy not being found so I uninstalled LazIndy and reinstalled it according to the instructions here: http://wiki.lazarus.freepascal.org/Indy_with_Lazarus I'm now getting (from IdSSLOpenSSLUtils) the message 'Error: Identifier not found TIndyTextEncoding'. I have read, in my attempts to debug, that TIndyTextEncoding is deprecated, but it is the Indy code that contains it (ie. it's not me putting it there), see attachment. https://stackoverflow.com/questions/28544592/why-is-tidtextencoding- default-undeclared Anyone have any idea of what should be here? Thanks, Kevin ---------------------------------------------------------------------- balazsszekely · 2019-02-25 06:57 QuoteI was having issues with parts of Indy not being found so I uninstalled LazIndy and reinstalled it according to the instructions here: http://wiki.lazarus.freepascal.org/Indy_with_Lazarus That indy version is ancient(10.5.8.0). You can get indy trunk(currently: 10.6.2.5494) with a svn client from here: https://svn.atozed.com:444/svn/Indy10 . Alternatively you can also donwload a zipped daily snapshot: https://indy.fulgan.com/ZIP/ ---------------------------------------------------------------------- kevin.black · 2019-02-26 02:56 @GetMem, Sorry, my bad. That was the process I followed, but the actual version of INDY installed is 10.6.2.5494 so I don't think it's an old version (or at least a version that is too old). Quote from: kevin.black on February 25, 2019, 07:08:50 amI'm now getting (from IdSSLOpenSSLUtils) the message 'Error: Identifier not found TIndyTextEncoding'. I have read, in my attempts to debug, that TIndyTextEncoding is deprecated, but it is the Indy code that contains it (ie. it's not me putting it there), see attachment. The real issue is that the build is failing because of what is suggested is a deprecated class? And I'm not sure of how to get round this (ie. TIndyTextEncoding in IdSSLOpenSSLUtils not found)? Kevin ---------------------------------------------------------------------- dsiders · 2019-02-26 04:30 Quote from: kevin.black on February 26, 2019, 03:56:23 am@GetMem, Sorry, my bad. That was the process I followed, but the actual version of INDY installed is 10.6.2.5494 so I don't think it's an old version (or at least a version that is too old). Quote from: kevin.black on February 25, 2019, 07:08:50 amI'm now getting (from IdSSLOpenSSLUtils) the message 'Error: Identifier not found TIndyTextEncoding'. I have read, in my attempts to debug, that TIndyTextEncoding is deprecated, but it is the Indy code that contains it (ie. it's not me putting it there), see attachment. The real issue is that the build is failing because of what is suggested is a deprecated class? And I'm not sure of how to get round this (ie. TIndyTextEncoding in IdSSLOpenSSLUtils not found)? Kevin There is no occurrence of TIndyTextEncoding anywhere in r5494 source code. There is for TIdTextEncoding. If that is really the error message, then there is some unit that is corrupt or from a previous version. ---------------------------------------------------------------------- Remy Lebeau · 2019-02-26 19:56 Quote from: kevin.black on February 26, 2019, 03:56:23 amThe real issue is that the build is failing because of what is suggested is a deprecated class? And I'm not sure of how to get round this (ie. TIndyTextEncoding in IdSSLOpenSSLUtils not found)? The REAL issue is that the IdSSLOpenSSLUtils.pas unit itself is old, predating Indy's removal of the TIdTextEncoding class in 10.6.0.0 (in favor of the newer IIdTextEncoding interface).  The IdSSLOpenSSLUtils.pas unit is not used by Indy anymore (it probably needs to be deleted at this point). Its code has been moved to other units (the DumpCert() function in question is now in the IdSSLOpenSSL.pas unit).  None of Indy's packages refer to IdSSLOpenSSLUtils.pas anymore.  So why is it being compiled at all?  I would guess the dbxserverapi project shown in the provided screenshot is outdated and needs to be updated to use an up-to-date version of Indy. ---------------------------------------------------------------------- kevin.black · 2019-04-17 00:51 @Remy, Apologies, I should respond to acknowledge your comment and complete the loop. Thank you for your advice. Regards, Kevin