Recent

Author Topic: Indy10 Cannot Find TIdTextEncoding in IdSSLOpenSSLUtils  (Read 945 times)

kevin.black

  • Full Member
  • ***
  • Posts: 122
Indy10 Cannot Find TIdTextEncoding in IdSSLOpenSSLUtils
« on: February 25, 2019, 07:08:50 am »
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

GetMem

  • Hero Member
  • *****
  • Posts: 3459
Re: Indy10 Cannot Find TIdTextEncoding in IdSSLOpenSSLUtils
« Reply #1 on: February 25, 2019, 07:57:15 am »
Quote
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
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/
« Last Edit: February 25, 2019, 08:01:22 am by GetMem »

kevin.black

  • Full Member
  • ***
  • Posts: 122
Re: Indy10 Cannot Find TIdTextEncoding in IdSSLOpenSSLUtils
« Reply #2 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).

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.

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

  • Full Member
  • ***
  • Posts: 208
Re: Indy10 Cannot Find TIdTextEncoding in IdSSLOpenSSLUtils
« Reply #3 on: February 26, 2019, 05:30:39 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).

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.

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.
Lazarus 2.0.2 / FPC 3.0.4 / Windows 8.1 64-bit

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 616
    • Lebeau Software
Re: Indy10 Cannot Find TIdTextEncoding in IdSSLOpenSSLUtils
« Reply #4 on: February 26, 2019, 08:56:52 pm »
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)?

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.
« Last Edit: February 26, 2019, 09:05:51 pm by Remy Lebeau »
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

kevin.black

  • Full Member
  • ***
  • Posts: 122
Re: Indy10 Cannot Find TIdTextEncoding in IdSSLOpenSSLUtils
« Reply #5 on: April 17, 2019, 02:51:38 am »
@Remy,

Apologies, I should respond to acknowledge your comment and complete the loop. Thank you for your advice.

Regards,
Kevin