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

4 posts / 0 new
Last post
dj3ei
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.

dj3ei
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
begin
if isItACall(msgList[index]) then
msgCall:=msgList[index]
- 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
CqDir:=msgList[index];
end;

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;
begin
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
Sender=EReadError
Exception=Error reading dmData.PPI: Unknown property: "PPI"
Stack trace:
$000000000049F866
$000000000049EA99
$00000000006B73DD
$00000000006AF181
$0000000000498639
$000000000045BAF5
TApplication.HandleException Error reading dmData.PPI: Unknown property: "PPI"
Stack trace:
$000000000049F866
$000000000049EA99
$00000000006B73DD
$00000000006AF181
$0000000000498639
$000000000045BAF5
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.

dj3ei
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?

dj3ei
Provide reproducable build environment via Docker (PR).

Here is something that seems to work: https://github.com/ok2cqr/cqrlog/pull/183