Forum > Packages and Libraries

[Solved] Can't find unit opensslsockets.

(1/2) > >>

roxim22037@pro5g.com:
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
--- End quote ---

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

Anyone got an idea to get around this?

KodeZwerg:
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.

KodeZwerg:

--- 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'
--- End quote ---
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

GetMem:
@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?

--- End quote ---
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).
--- End quote ---
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.
--- End quote ---
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.
--- End quote ---
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.

roxim22037@pro5g.com:
@GetMem
Thank you so much!
It works now. :D

Navigation

[0] Message Index

[#] Next page

Go to full version