LNet package from online package manager fails to compile on Linux Qt5
Original Reporter info from Mantis: void09
-
Reporter name: void09
Original Reporter info from Mantis: void09
- Reporter name: void09
Description:
It fails on Linux/qt5 but is successful on Linux/gtk2 or windows.
These are the errors:
Compile package lnetvisual 0.6.6: Exit code 1, Errors: 6, Warnings: 1
Warning: The selected debug format is not supported on the current target, not changing the current setting
lclnet.pas(45,15) Error: Forward declaration not solved "HandleIgnoreError(TLHandle);"
lclnet.pas(46,15) Error: Forward declaration not solved "HandleIgnoreWrite(TLHandle);"
lclnet.pas(47,15) Error: Forward declaration not solved "HandleIgnoreRead(TLHandle);"
lclnet.pas(48,15) Error: Forward declaration not solved "InternalUnplugHandle(TLHandle);"
lclnet.pas(50,15) Error: Forward declaration not solved "HandleEvents(Int64;LongWord);"
lclnet.pas(58,14) Error: Forward declaration not solved "AddHandle(TLHandle):Boolean;"
Steps to reproduce:
Adding the .lpk from github manually ( https://github.com/almindor/lnet ) works. (But I had to remove .lazarus first because it had leftovers from the failed online package install that would conflict with the git version).
Trying now on fpc-svn and this does not work anymore (vs 3.0.4 before).
Removing the ifdefs in lclnet.pas and leaving only this " {$i lclgtkeventer.inc} // identical code ;)" fixes it and I can compile.
Additional information:
Not sure what's going on as i'm a beginner, but I think there's a bug somewhere :)
Mantis conversion info:
- Mantis ID: 36449
- OS: Linux
- OS Build: Manjaro
- Platform: x86-64
- Version: 2.0.6