Version 149 not building on RPI5 (trixie)

1 post / 0 new
PB4PT
Version 149 not building on RPI5 (trixie)

pulling version 149 and building it I ran into this build error:

CqrlogImproved/src/./lnet/lib/lcommon.pp(470,13) Error: (5000) Identifier not found "TZInfo"

To fix it I made this change:

diff --git a/src/lnet/lib/lcommon.pp b/src/lnet/lib/lcommon.pp
index 487a127..fd74bf0 100644
--- a/src/lnet/lib/lcommon.pp
+++ b/src/lnet/lib/lcommon.pp
@@ -466,9 +466,11 @@ function TZSeconds: Integer; inline;
begin
{$IF FPC_FULLVERSION > 30202}
Result := unix.TZSeconds;
-{$ELSE}
+{$ELSEIF DECLARED(TZInfo)}
Result := TZInfo.Seconds;
- //if compile fails try to change "TZInfo.Seconds" to "unixutil.Tzseconds"
+{$ELSE}
+ // e.g. Debian's FPC 3.2.2 has no TZInfo; offset lives in UnixUtil
+ Result := UnixUtil.Tzseconds;
{$ENDIF}
end;