Recent

Author Topic: [Solved] Can't find unit opensslsockets.  (Read 1460 times)

roxim22037@pro5g.com

  • Newbie
  • Posts: 2
[Solved] Can't find unit opensslsockets.
« on: December 22, 2022, 08:38:07 pm »
Windows 10 x86_64
FPC 3.2.2 x86_64
Lazarus 2.2.4 Win64 x86_64

I've been trying to install the LNet library via OnlinePackageManager but it fails at the point of rebuilding Lazarus with this error message.
Quote
opensslsockets.pp(81,12) Fatal: Can't find unit opensslsockets used by opkman_downloader

I've tried using different versions of FPC with no success.

Anyone got an idea to get around this?
« Last Edit: December 23, 2022, 08:08:21 pm by roxim22037@pro5g.com »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Can't find unit opensslsockets.
« Reply #1 on: December 23, 2022, 01:44:56 am »
I had same problem with my FPCUpdDeluxe installation, I have not found out what it cause but when I install/add a package via OnlinePackageManager it seems that the package file for OPM itself get corrupt and "loose" important path settings in FPC or Lazarus Configuration File(s).
All I can say, LNet was also one of the packages I had checked to install.
Since I wanted to continue without knowing what to do, I deleted my old installation and let installer create a new one.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Can't find unit opensslsockets.
« Reply #2 on: December 23, 2022, 02:17:49 am »
Quote
Messages, Warnings: 7
Warning: other unit files search path (aka unit path) of "KControlsLaz 1.7.3" contains "C:\Tools\FreePascal\config_lazarus\onlinepackagemanager\packages\kcontrols\source", which belongs to package "KControlsBase"
Warning: other unit files search path (aka unit path) of "pckUserControlDesign 2.33" contains "C:\Tools\FreePascal\config_lazarus\onlinepackagemanager\packages\UserControl\source", which belongs to package "pckUserControlRuntime"
Warning: other unit files search path (aka unit path) of "pckUserControlRuntime 2.33" contains "C:\Tools\FreePascal\config_lazarus\onlinepackagemanager\packages\UserControl\source", which belongs to package "pckUserControlDesign"
Warning: other unit files search path (aka unit path) of "pckUCDataConnector 2.32" contains "C:\Tools\FreePascal\config_lazarus\onlinepackagemanager\packages\UserControl\source", which belongs to package "pckUserControlDesign"
Warning: other unit files search path (aka unit path) of "dcpcrypt_laz 2.0.4.1" contains "C:\Tools\FreePascal\config_lazarus\onlinepackagemanager\packages\dcpcrypt-2.0.4.1\Ciphers", which belongs to package "dcpcrypt"
Warning: other unit files search path (aka unit path) of "KControlsBase 1.7.3" contains "C:\Tools\FreePascal\config_lazarus\onlinepackagemanager\packages\kcontrols\source", which belongs to package "KControlsLaz"
Warning: other sources path of package "lnetbase 0.6.6" contains directory "..\lib" which is already in the unit search path.
Build IDE: Exit code 2, Errors: 1, Warnings: 3, Hints: 4
Debug: C:\Tools\FreePascal\fpc\bin\x86_64-win64\make.exe: Entering directory `C:/Tools/FreePascal/lazarus'
Verbose: C:/Tools/FreePascal/fpc/bin/x86_64-win64/make.exe -C ide idepkg
Debug: make.exe[1]: Entering directory `C:/Tools/FreePascal/lazarus/ide'
Debug: ../tools/svn2revisioninc.exe .. revision.inc
Warning: svn not in path.
Verbose: C:/Tools/FreePascal/fpc/bin/x86_64-win64/make.exe --assume-new=lazarus.pp lazarus.exe OPT=' -WG @C:\Tools\FreePascal\config_lazarus\idemake.cfg'
Debug: make.exe[2]: Entering directory `C:/Tools/FreePascal/lazarus/ide'
Verbose: C:/Tools/FreePascal/fpc/bin/x86_64-win64/fpc.exe -gl -vbqewnhi -Sci -dlclwin32 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuinclude/win -Fuframes -Fu. -Fiinclude -Fiinclude/win64 -Fi../images -FE.. -FU../units/x86_64-win64/win32 -WG @C:\Tools\FreePascal\config_lazarus\idemake.cfg -dx86_64 lazarus.pp
Hint: Start of reading config file C:\Tools\FreePascal\fpc\bin\x86_64-win64\fpc.cfg
Hint: End of reading config file C:\Tools\FreePascal\fpc\bin\x86_64-win64\fpc.cfg
Hint: Start of reading config file C:\Tools\FreePascal\config_lazarus\idemake.cfg
Warning: PIC directive or switch ignored
Hint: End of reading config file C:\Tools\FreePascal\config_lazarus\idemake.cfg
Verbose: Free Pascal Compiler version 3.2.2-rrelease_3_2_2-0-g0d122c4953 [2022/11/25] for x86_64
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Win64 for x64
Verbose: Compiling lazarus.pp
Verbose: PPU Loading C:\Tools\FreePascal\fpc\units\x86_64-win64\openssl\opensslsockets.ppu
Verbose: PPU Source: opensslsockets.pp not available
Warning: Recompiling opensslsockets, checksum changed for C:\Tools\FreePascal\config_lazarus\onlinepackagemanager\packages\lnet\lazaruspackage\lib\x86_64-win64\openssl.ppu
opensslsockets.pp(81,12) Fatal: Can't find unit opensslsockets used by opkman_downloader
Verbose: Compilation aborted
Verbose: C:\Tools\FreePascal\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
Verbose: make.exe[2]: *** [lazarus.exe] Error 1
Debug: make.exe[2]: Leaving directory `C:/Tools/FreePascal/lazarus/ide'
Verbose: make.exe[1]: *** [idepkg] Error 2
Debug: make.exe[1]: Leaving directory `C:/Tools/FreePascal/lazarus/ide'
Debug: C:\Tools\FreePascal\fpc\bin\x86_64-win64\make.exe: *** [idepkg] Error 2
Debug: C:\Tools\FreePascal\fpc\bin\x86_64-win64\make.exe: Leaving directory `C:/Tools/FreePascal/lazarus'
This was my error log after installing packages, LNet also.
And picture show what happen when you not clean up before you do use FPCUpdelux and think it will install correct  >:D
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

balazsszekely

  • Guest
Re: Can't find unit opensslsockets.
« Reply #3 on: December 23, 2022, 07:56:52 am »
@roxim22037@pro5g.com
Quote
I've been trying to install the LNet library via OnlinePackageManager but it fails at the point of rebuilding Lazarus with this error message.
I've tried using different versions of FPC with no success.
Anyone got an idea to get around this?
I fixed lnet in OPM. Please try again.



@KodeZwerg
Quote
it seems that the package file for OPM itself get corrupt and "loose" important path settings in FPC or Lazarus Configuration File(s).
Oh boy!  :D  I agree that OPM has it's own quirks and peculiarities, but definitely did not get corrupt. Here is what happened:
Lnet provides its own version of openssl, which is just a copy of some old synapse unit. Since FPC also has a version of synapse and implicitly openssl.pas, the system(LazarusIDE) got confused. It's all there in the message window. The fun part is I always get the blame for unmaintained packages.

Quote
All I can say, LNet was also one of the packages I had checked to install.
Yes, unfortunately LNet dragged the whole IDE down.

Quote
Since I wanted to continue without knowing what to do, I deleted my old installation and let installer create a new one.
Please don't delete you installation next time. There is always lazarus.old.exe in the Lazarus main folder, just replace the newly created exe with the old one. When you install multiple packages and something goes wrong, replace the exe, then install the packages one by one until you find the culprit package.
« Last Edit: December 23, 2022, 08:01:42 am by GetMem »

roxim22037@pro5g.com

  • Newbie
  • Posts: 2
Re: Can't find unit opensslsockets.
« Reply #4 on: December 23, 2022, 08:02:11 pm »
@GetMem
Thank you so much!
It works now. :D

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2269
  • Fifty shades of code.
    • Delphi & FreePascal
Re: [Solved] Can't find unit opensslsockets.
« Reply #5 on: December 23, 2022, 09:35:09 pm »
Yeah I am absolute no professional in belonging to deal with FPC/Lazarus when something bad happen, not matter if on my own faults (99% of the time) or somebody else fault (the missing 1%) but that error message was just so ridiculous and driving me crazy at same time, because I was not watching from what path something is taken, I just read "loading unit opensslsockets.ppu, unit opensslsockets can not find unit opensslsockets.pp" = w.t.f.  :o

After re-install I found out that it should have been enough to delete that problematic line out of one of the configuration files (a package configuration file I guess)

Anyway, I am glad that informations helped to isolate and fix that nasty error, thank you GetMem  :-*
(I wonder if the rebuild IDE process is able to log package installations and when a package fail, to mark it temp as bad to investigate things but letting IDE compile or Roll-back to *.bak.exe version)
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

 

TinyPortal © 2005-2018