#1 2018-07-02 02:40:14

erick
Member
Registered: 2015-09-09
Posts: 155

Compatibility issue with FPC 3.0.4

Hi Ab,

I recently decided to switch much of my server environment from Win64 to Linux, and began converting my various mORMot systems from Delphi to NewPascal as a first step.  If they worked under NewPascal I figured it would be an easier upgrade to Linux.  NP doesn't support Linux at this time, but it would force me to be FPC compatible and that's half the battle.

I noticed one compatibility issue with the latest SynPDF and NewPascal/Win32, it doesn't compile because there are the wrong number of arguments to the function which opens WMF files.  Just try to compile, you'll get the error.

Anyways I set up my FPC 3.0.4 environment with Lazarus 1.8.4 (I believe both are the latest) and yesterday's nightly mORMot build (June 30) on a Centos 7 system.  However, it can't compile any mormot app (eg. TestSQL3.pas) because I get an error that TypInfo.PRecInitData does not exist, on line 92 of SynFPCTypInfo.pas. Error: Error in type definition.

type
  /// some type definition to avoid inclusion of TypInfo in main SynCommons.pas
PRecInitData = TypInfo.PRecInitData;

I thought you'd want to know about this.  If I am not running the preferred Linux/FPC/Lazarus environment, please correct me.

Thanks
Erick (Canada)

Offline

#2 2018-07-02 03:44:45

erick
Member
Registered: 2015-09-09
Posts: 155

Re: Compatibility issue with FPC 3.0.4

Hmmm, given the pointer to use fpcupdeluxe, I used it.  I tried to upgrade to 3.1.1 but it left me with 3.0.4, and indicated to add mormot, and still get the error when compiling.

Erick

Offline

#3 2018-07-02 20:33:05

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,670
Website

Re: Compatibility issue with FPC 3.0.4

Use the "trunk" button.

Offline

#4 2018-07-03 03:41:25

erick
Member
Registered: 2015-09-09
Posts: 155

Re: Compatibility issue with FPC 3.0.4

Thanks.

Offline

Board footer

Powered by FluxBB