Author Topic: Lazarus Release Candidate 1 of 5.0  (Read 14506 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 5.0
« Reply #30 on: October 17, 2026, 08:46:40 pm »
Windows 11. During the installation, I received several messages from Windows Defender about suspicious files.
Same on Win 10; no such messages on Win 7.

On Win 11 I got notifications that Defender wanted to upload some files (asking if it should).
But neither windows-event-viewer, nor protection history give any details which ones that are.


The installer contains a few executables. Only those build by us are signed (lazarus.exe, startlazarus.exe, lazbuild.exe, fpc.exe, ppc...exe, IIRC lhelp, IIRC one or 2 others). All the others (gnu tools, ld, make, ...) are not build by us, and aren't code signed.

All installers, and many (but not all) of the files in it (after a test run of the installer) have been submitted to virustotal, and not given any reports (IIRC one of the 32 bit files got 1 of 50, but that is normal for 32bit exes nowadays)

Obviously as soon as you install package and rebuild lazarus, it will no longer be code signed.
« Last Edit: October 17, 2026, 08:48:30 pm by Martin_fr »

CM630

  • Hero Member
  • *****
  • Posts: 1842
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Release Candidate 1 of 5.0
« Reply #31 on: October 17, 2026, 09:17:05 pm »
I got a list of the files it wanted to sumbit. All of them had a .TMP extension, totally 4 or 5 files. I will uninstall ans reinstall to see if I will get some info.

Edit: Done. No messages shown this time.
« Last Edit: October 17, 2026, 09:27:48 pm by CM630 »
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 5.0
« Reply #32 on: October 17, 2026, 09:25:03 pm »
I got a list of the files it wanted to sumbit. All of them had a .TMP extension, totally 4 or 5 files. I will uninstall ans reinstall to see if I will get some info.

That probably is caused by inno setup. I don't know its internal workings, but it probably saves the files during unpacking.

Did they come with checksums?

Though, if its before they got their final name, then defender may pick up on some of the no-exe files too? Don't know. Afaik, some files have debug info (ppu/o) and even that can be a trigger. (Windows sees that as binary data, and could assume it is later loaded into a process)

T

  • Newbie
  • Posts: 3
Re: Lazarus Release Candidate 1 of 5.0
« Reply #33 on: October 17, 2026, 09:27:31 pm »
I installed 5.0RC1 as a secondary install (on Windows 11 Pro).

When I try to open the Online Package Manager I see an error "Could not initialize OpenSSL library" and no packages loaded...
So, I put OpenSSL DLLs in the root dir of Lazarus 5 (libcrypto-1_1-x64.dll, libssl-1_1-x64.dll) and the Online Package Manager is working now.

I installed the packages required for my project without any problems, and my project compiled without errors.

Is this something new in Lazarus 5 (using OpenSSL in the online package manager)?

Aquineas

  • Newbie
  • Posts: 5
Re: Lazarus Release Candidate 1 of 5.0
« Reply #34 on: October 17, 2026, 09:28:43 pm »
I couldn't find any log files (or references to log files) in those directories,

I found one of my VM can reproduce the issues => logs do not contain any info. But being able to reproduce should be enough to get it fixed.
I will have to check with the maintainer.

Thanks for the report.
Thanks for a great set of tools. Now if I can reliably get it working with an MCP server, I think it will be huge.

CM630

  • Hero Member
  • *****
  • Posts: 1842
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Release Candidate 1 of 5.0
« Reply #35 on: October 17, 2026, 09:57:26 pm »

That probably is caused by inno setup. I don't know its internal workings, but it probably saves the files during unpacking.

Did they come with checksums?

Though, if its before they got their final name, then defender may pick up on some of the no-exe files too? Don't know. Afaik, some files have debug info (ppu/o) and even that can be a trigger. (Windows sees that as binary data, and could assume it is later loaded into a process)
I reinstalled, the messages were not shown again, maybe the info from thebfirst installed is stored by WD. I have never seen such messages before. I will install on another PC next week, probably Monday.
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

dbannon

  • Hero Member
  • *****
  • Posts: 3927
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 1 of 5.0
« Reply #36 on: October 18, 2026, 02:02:03 am »
OK, so on Linux I just built my (30K lines) app, gtk2, gtk3, Qt5, Qt6 on x86_64 and cross compiled to Win32, win64, armhf, aarch64 and x86-32. 

Only issue I see is "DeleteDirectory" is deprecated: "use the overload with Force parameter". Bit annoying in that the 'Force' version does not exist in 4.8 so will require some ifdef if we are to build on a number of installs.  But that is a very minor issue.

And, of course, the ugly Wayland issues but nothing can be done at your end about them. (I normally use Qt5 set to use xcb and that is perfect.)

Looking pretty good folks, thanks heaps !

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 19978
  • Pointless static linking author
Re: Lazarus Release Candidate 1 of 5.0
« Reply #37 on: October 18, 2026, 10:15:33 am »
Davo,

Would't it be better to add a small compatibility unit for your code that exposes the 5.0 code for force? I see no code that will not compile.
Any "programmer" that knows only one programming language is not a programmer

CM630

  • Hero Member
  • *****
  • Posts: 1842
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Lazarus Release Candidate 1 of 5.0
« Reply #38 on: October 18, 2026, 10:42:00 am »
...
When I try to open the Online Package Manager I see an error "Could not initialize OpenSSL library" and no packages loaded...
So, I put OpenSSL DLLs in the root dir of Lazarus 5 (libcrypto-1_1-x64.dll, libssl-1_1-x64.dll) and the Online Package Manager is working now.
...

Where did you get that files from? I need for 32 bit lazarus? I do not have them on the HDD.
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 5.0
« Reply #39 on: October 18, 2026, 10:44:59 am »
...
When I try to open the Online Package Manager I see an error "Could not initialize OpenSSL library" and no packages loaded...
So, I put OpenSSL DLLs in the root dir of Lazarus 5 (libcrypto-1_1-x64.dll, libssl-1_1-x64.dll) and the Online Package Manager is working now.
...

Where did you get that files from? I need for 32 bit lazarus? I do not have them on the HDD.

I asked around. I am not the expert on the topic. I got the following answer.

Quote
This must be caused by the recent switch to https due to https://gitlab.com/freepascal.org/lazarus/lazarus/-/work_items/42599. Maybe the user has an incompatible openssl? I just copied the dlls from our site into my Laz/main installation folder (next to lazarus.exe), and did not get see an error. So, maybe the user should try the dlls from https://gitlab.com/freepascal.org/lazarus/binaries/-/tree/main/i386-win32/openssl?ref_type=heads (for 32 bit) and https://gitlab.com/freepascal.org/lazarus/binaries/-/tree/main/x86_64-win64/openssl?ref_type=heads for 64 bit.

32bit: https://gitlab.com/freepascal.org/lazarus/binaries/-/tree/main/i386-win32/openssl?ref_type=heads
64bit: https://gitlab.com/freepascal.org/lazarus/binaries/-/tree/main/x86_64-win64/openssl?ref_type=heads

d4eva

  • New Member
  • *
  • Posts: 37
Re: Lazarus Release Candidate 1 of 5.0
« Reply #40 on: October 18, 2026, 11:10:28 am »
...
When I try to open the Online Package Manager I see an error "Could not initialize OpenSSL library" and no packages loaded...
So, I put OpenSSL DLLs in the root dir of Lazarus 5 (libcrypto-1_1-x64.dll, libssl-1_1-x64.dll) and the Online Package Manager is working now.
...

Where did you get that files from? I need for 32 bit lazarus? I do not have them on the HDD.

I asked around. I am not the expert on the topic. I got the following answer.

Quote
This must be caused by the recent switch to https due to https://gitlab.com/freepascal.org/lazarus/lazarus/-/work_items/42599. Maybe the user has an incompatible openssl? I just copied the dlls from our site into my Laz/main installation folder (next to lazarus.exe), and did not get see an error. So, maybe the user should try the dlls from https://gitlab.com/freepascal.org/lazarus/binaries/-/tree/main/i386-win32/openssl?ref_type=heads (for 32 bit) and https://gitlab.com/freepascal.org/lazarus/binaries/-/tree/main/x86_64-win64/openssl?ref_type=heads for 64 bit.

32bit: https://gitlab.com/freepascal.org/lazarus/binaries/-/tree/main/i386-win32/openssl?ref_type=heads
64bit: https://gitlab.com/freepascal.org/lazarus/binaries/-/tree/main/x86_64-win64/openssl?ref_type=heads

I had the same issue when tried running trunk version on the Lazarus installed fpcupdeluxe. At first I got some cryptic ssl error, then I fired up procmon and noticed that it tries to load libcrypto-3-x64.dll from some location under program files, but that file was very old and I guess that's the reason. After I deleted it, I got normal "Cannot initialize OpenSSL" error. As I'm building those dll files myself regularly (using the latest LTS version openssl-3.5.9), I copied libcrypto-3-x64.dll libssl-3-x64.dll to C:\fpcupdeluxe\lazarus\ and OPM started working again. I could send latest ang greatest 32 and 64 bit dlls to someone to be included into Lazarus, if that's an option :) I'm using msys2 to build them.

Jonax

  • Jr. Member
  • **
  • Posts: 58
    • Jonax stuff
Re: Lazarus Release Candidate 1 of 5.0
« Reply #41 on: October 18, 2026, 12:49:20 pm »
I spawned a new Debian 13 VM for the new Lazarus.

I've only made a Hello Laz5 so far but no issues encountered. The colors seems to behave better so that's a plus.

Looking forward to programming with the Lazarus 5.  8-)

dbannon

  • Hero Member
  • *****
  • Posts: 3927
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 1 of 5.0
« Reply #42 on: October 18, 2026, 12:51:55 pm »
Davo,

Would't it be better to add a small compatibility unit for your code that exposes the 5.0 code for force? I see no code that will not compile.
Possibly, but I imagine just a couple of $IFDEFs, I only use DeleteDirectory twice in the project. But I have not looked yet to see what the 'Force' actually does, is it a new thing turned on or an old thing turned off. But the source indicates the existing definition will be removed in 6.99, a bit sudden.

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12820
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 1 of 5.0
« Reply #43 on: October 18, 2026, 12:56:17 pm »
But the source indicates the existing definition will be removed in 6.99, a bit sudden.

Sudden, not really, imho...

That means the old will be present in all of 5.0, 5.2, 5.x and 6.0, 6.2, 6.4 ...

6.99 is the runner up for 7.0 (in which it will then be no longer exist)

bpranoto

  • Full Member
  • ***
  • Posts: 192
Re: Lazarus Release Candidate 1 of 5.0
« Reply #44 on: October 18, 2026, 05:14:46 pm »
Menu "Windows -> Tabs for project" only shows 3 entries while there are more opened files.

Please look at the attachment. There are 14 project files opened in the editor, however Windows -> Tabs for project only shows 3 files.

O/S: Ubuntu 22.04
Widgetset: gtk3

 

TinyPortal © 2005-2018