Recent

Author Topic: [Solved] LNet "Forward declaration not solved" in trunk, Linux  (Read 397 times)

sstvmaster

  • Sr. Member
  • ****
  • Posts: 312
Today i want to update my trunk installation via fpcupdeluxe, then i got this error.

I don't know how to solve this problem.

I use Linux Mint.

Quote
...
(3104) Compiling debuginstructions.pas
(3104) Compiling tacustomsource.pas
(3104) Compiling tamath.pas
/home/user/Lazarus/trunk/config_lazarus/onlinepackagemanager/packages/lnet/lazaruspackage/lclnet.pas(45,15) Error: (5005) Forward declaration not solved "HandleIgnoreError(TLHandle);"
/home/user/Lazarus/trunk/config_lazarus/onlinepackagemanager/packages/lnet/lazaruspackage/lclnet.pas(46,15) Error: (5005) Forward declaration not solved "HandleIgnoreWrite(TLHandle);"
/home/user/Lazarus/trunk/config_lazarus/onlinepackagemanager/packages/lnet/lazaruspackage/lclnet.pas(47,15) Error: (5005) Forward declaration not solved "HandleIgnoreRead(TLHandle);"
/home/user/Lazarus/trunk/config_lazarus/onlinepackagemanager/packages/lnet/lazaruspackage/lclnet.pas(48,15) Error: (5005) Forward declaration not solved "InternalUnplugHandle(TLHandle);"
/home/user/Lazarus/trunk/config_lazarus/onlinepackagemanager/packages/lnet/lazaruspackage/lclnet.pas(50,15) Error: (5005) Forward declaration not solved "HandleEvents(Int64;LongWord);"
/home/user/Lazarus/trunk/config_lazarus/onlinepackagemanager/packages/lnet/lazaruspackage/lclnet.pas(58,14) Error: (5005) Forward declaration not solved "AddHandle(TLHandle):System.Boolean;"
/home/user/Lazarus/trunk/config_lazarus/onlinepackagemanager/packages/lnet/lazaruspackage/lclnet.pas(85) Fatal: (10026) There were 6 errors compiling module, stopping
(3104) Compiling debuggerpropertiesbase.pas
Fatal: (1018) Compilation aborted
Error: /home/user/Lazarus/trunk/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
Error: (lazarus) Compile package lnetvisual 0.6.6: stopped with exit code 1
(3104) Compiling ./units/gtk3/laz.virtualpanningwindow.pas
(3104) Compiling tadrawutils.pas
(3104) Compiling talinepatterns.pas
(3104) Compiling tageometry.pas
Error: (lazarus) Compile package TurboPowerIProDsgn 0.0: terminated
Error: (lazarus) Compile package MemDSLaz 1.2.1: terminated
Error: (lazarus) Compile package ProjTemplates 1.0: terminated
Error: (lazarus) Compile package LazSerialPort 0.6: terminated
Error: (lazarus) Compile package lazdaemon 0.9.9: terminated
Error: (lazarus) Compile package jcfidelazarus 2.0: terminated
Error: (lazarus) Compile package InstantFPCLaz 1.0: terminated
Error: (lazarus) Compile package fpcunitide 0.1: terminated
Error: (lazarus) Compile package DateTimeCtrlsDsgn 1.5.1: terminated
Error: (lazarus) Compile package ExternHelp 1.3: terminated
Error: (lazarus) Compile package CmdLineDebuggerBase 0.0: terminated
Error: (lazarus) Compile package ChmHelpPkg 0.2.1: terminated
Error: (lazarus) Compile package laz.virtualtreeview_package 5.5.3.1: terminated
Error: (lazarus) Compile package TAChartLazarusPkg 1.0: terminated
Error: (lazarus) Compile package SynEdit 1.0: terminated
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 1"
Error: (lazbuild) Building IDE: Compile AutoInstall Packages failed

fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: UserIDE): lazbuild returned error code 512
Details: .


ERROR: Fpcupdeluxe fatal error !
Sequencer (UserIDE): Failure running fpcupdeluxe: error executing sequence UserIDE
Sequencer (Lazarus): Failure running fpcupdeluxe: error executing sequence Lazarus
Sequencer (Only): Failure running fpcupdeluxe: error executing sequence Only
« Last Edit: July 05, 2026, 10:07:49 pm by sstvmaster »
greetings Maik

Windows, Linux
- Lazarus 4.8 (stable) + fpc 3.2.2 (stable)
- Lazarus 4.99 (trunk) + fpc 3.3.1 (main/trunk)

sstvmaster

  • Sr. Member
  • ****
  • Posts: 312
Re: LNet "Forward declaration not solved" in trunk, Linux
« Reply #1 on: July 03, 2026, 08:20:37 pm »
Hi,

i think i found the problem. It's related to GTK3 under trunk.

In "lclnet.pas" add this after line 77:

Code: Pascal  [Select][+][-]
  1. {$ifdef LCLGTK3}
  2.   {$i lclgtkeventer.inc}
  3. {$endif}
  4.  

then the compilation with fpcupdeluxe works.
greetings Maik

Windows, Linux
- Lazarus 4.8 (stable) + fpc 3.2.2 (stable)
- Lazarus 4.99 (trunk) + fpc 3.3.1 (main/trunk)

n7800

  • Hero Member
  • *****
  • Posts: 729
  • Lazarus IDE contributor
    • GitLab profile
Re: LNet "Forward declaration not solved" in trunk, Linux
« Reply #2 on: July 04, 2026, 08:14:50 pm »
Am I correct in understanding that the LNet package from OPM has a bug? Then it's best to report it on its bug tracker.

cdbc

  • Hero Member
  • *****
  • Posts: 2861
    • http://www.cdbc.dk
Re: LNet "Forward declaration not solved" in trunk, Linux
« Reply #3 on: July 04, 2026, 09:57:39 pm »
Hi
Are you actually using 'LNet'?!?
If its use is just "petty-cash" then I'd swap LNet out and 'fcl-net' in, because LNet, has more issues, at least last time I looked...
My 2 cents worth
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

wp

  • Hero Member
  • *****
  • Posts: 13625
Re: LNet "Forward declaration not solved" in trunk, Linux
« Reply #4 on: July 05, 2026, 12:26:06 am »
Updated OPM with the LNet version from https://github.com/almindor/lnet in which the gtk3 compilation issue is fixed. But I doubt that the library is working as expected. If there are any LNet users out there, please give feedback.

n7800

  • Hero Member
  • *****
  • Posts: 729
  • Lazarus IDE contributor
    • GitLab profile
Re: [Solved] LNet "Forward declaration not solved" in trunk, Linux
« Reply #5 on: July 05, 2026, 11:39:50 pm »
Judging by the warning on the wiki page, it is indeed not recommended for use.

 

TinyPortal © 2005-2018