looking for some advice. I am writing a small program to connect to a web server via https and when the programs attempts to connect a exception occurs because it cannot find the (version of ) openssl installed...
BACKGROUND
* Installed/using lazarus 4.0 RC2 on Linux Mint.
* Using ssl 3.0.13.
On viewing openssl.pas...
{ ADD NEW ONES WHEN THEY APPEAR!
Always make .so/dylib first, then versions, in descending order!
Add "." .before the version, first is always just "" }
DLLVersions: array[1..19] of string = ('', '.1.1', '.11', '.10', '.1.0.6', '.1.0.5', '.1.0.4', '.1.0.3',
'.1.0.2', '.1.0.1','.1.0.0','.0.9.8', ...
Would like to use the version installed on laptop. Thought about rebuilding after adding '.3' to the list as per what I saw in fpc source code on github but then I have to remake ...
XXXXXXXXXXXXX:/usr/share/fpcsrc/3.2.2/packages/openssl$ make
/usr/bin/ppcx64 fpmake.pp -n -Fu../../rtl -Fu../../packages/paszlib -Fu../../packages/fcl-process -Fu../../packages/hash -Fu../../packages/libtar -Fu../../packages/fpmkunit
Fatal: Can't find unit system used by fpmake
Fatal: Compilation aborted
make: *** [Makefile:2481: fpmake] Error 1
Tried as root as well! And yes, I know should not do not it in these folders. I cannot remember if the 'installer' blows the folders away after completing.
Thought I might fppkg and get more recent version of openssl but I always get an error about the configuration not existing...
XXXXXXXXXXXXXXX:/usr/share/fpcsrc/3.2.2/packages/openssl$ fppkg -V
Warning: The directory "/etc/fppkgconf.d/" of the include-mask "/etc/fppkgconf.d/*.conf" does not exist
Version: 3.3.1
and as an aside, on page
https://wiki.freepascal.org/fppkgit refers to the system wide configuration file as /etc/fppkg.cfg and so a little unsure what to do about this, as in, having a "user-specific configuration file" that I can use within lazarus. And it also states on that page
"When fppkg is started it first tries to load fppkg.cfg from a user-specific location. If a user-specific version can not be found fppkg searches for a system-wide fppkg.cfg. See the table for the exact location of these files. If both files do not exist a configuration file is created. When the current user is a superuser, a system-wide configuration file is made, else a user-specific one. When creating the configuration file fppkg tries some reasonable defaults for all settings."
So here is what I want to do.... replace/update the openssl package that is installed as part of fpc that is used within lazarus.
Any ideas and advice greatly appreciated. Thanks,