Current master at 0ec63ce7ce doesn't compile on my Debian machine

4 posts / 0 new
Last post
Current master at 0ec63ce7ce doesn't compile on my Debian machine

I tried to compile the git repo's commit 0ec63ce7ce and that doesn't compile for me.

The interesting lines from the build output seem to be:

/home/cqrlog/build/src/fMonWsjtx.pas(1427,16) Error: (3205) Illegal qualifier
/home/cqrlog/build/src/fMonWsjtx.pas(1672,32) Error: (3205) Illegal qualifier
fMonWsjtx.pas(1881) Fatal: (10026) There were 2 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Error: (lazarus) Compile Project, Target: cqrlog: stopped with exit code 256
ERROR: failed compiling of project /home/cqrlog/build/src/cqrlog.lpi
Makefile:9: recipe for target 'cqrlog' failed
make: *** [cqrlog] Error 2

This is an attempt to compile on a Debian stretch machine.

Exception=Error reading dmData.PPI: Unknown property

I fixed the problem with

--- a/src/fMonWsjtx.pas
+++ b/src/fMonWsjtx.pas
@@ -1424,7 +1424,7 @@ begin

// check if it is a small locator with 4 digits format AA00, RR73 or report R+00, R-00
If (
- (Call.length = 4) and
+ (length(Call) = 4) and
(Call[1] in ['A'..'R']) and
(Call[2] in ['A'..'R']) or
@@ -1669,7 +1669,7 @@ begin
if isItACall(msgList[index]) then
- else if msgList[index].Length < 5 then //extensions 4chr and below with wsjt-x v2.0
+ else if length(msgList[index]) < 5 then //extensions 4chr and below with wsjt-x v2.0

Then I ran into another problem, which I "fixed" with

--- a/src/dData.pas
+++ b/src/dData.pas
@@ -4081,7 +4081,7 @@ var
Connection : TMySQL57Connection;
Connection := TMySQL57Connection.Create(self);
- Connection.SkipLibraryVersionCheck := True;
+ // Connection.SkipLibraryVersionCheck := True;
Connection.KeepConnection := True;

result := Connection

Now the thing compiles, but when starting that alpha cqrlog, I get

$ cqrlog
[FORMS.PP] ExceptionOccurred
Exception=Error reading dmData.PPI: Unknown property: "PPI"
Stack trace:
TApplication.HandleException Error reading dmData.PPI: Unknown property: "PPI"
Stack trace:
Closing ini file ...

As a wild experiment, I moved to a different name my $HOME/.config/cqrlog (so that directory doesn't exist), but that did not help.

Compiling under Ubuntu and running under Debian seems to work.

Using Docker, I compiled the same with the development environment in a Ubuntu-based Docker container. It compiled. I then installed this on my Debian Stretch box. It seems to run.

Not sure what to make out of this. Apparently, compilation under Debian is not supported?

Provide reproducable build environment via Docker (PR).

Here is something that seems to work: