Modifications needed to complile Firebird.pas under FPC
-------------------------------------------------------

                 Key: CORE-6207
                 URL: http://tracker.firebirdsql.org/browse/CORE-6207
             Project: Firebird Core
          Issue Type: Bug
          Components: API / Client Library
    Affects Versions: 4.0 Beta 1
         Environment: Linux Mint 18.3, FPC 3.0.4
            Reporter: Tony Whyman
            Priority: Blocker


This bug report is intended to record the changes to Firebird.pas needed for it 
to successfully compile under FPC 3.0.4. This is the result of preparation work 
for upgrading IBX for Lazarus to use new Firebird 4 features.

1. The reserved word "record" is used as a parameter name and needs to be 
escaped i.e. to "&record".

2. Unknown Types:

Replace:
    isc_tr_handle = ^integer32;
    isc_stmt_handle = ^integer32;

with

    isc_tr_handle = ^FixedInt;
    isc_stmt_handle = ^FixedInt;

3. Missing Types:

  ISC_USHORT  = word;  { 16 bit unsigned } 

  ISC_TIME_TZ = record
    utc_time: ISC_TIME;
    time_zone: ISC_USHORT;
  end;

  ISC_TIMESTAMP = record
    timestamp_date: ISC_DATE;
    timestamp_time: ISC_TIME;
  end;

  ISC_TIMESTAMP_TZ = record
    utc_timestamp: ISC_TIMESTAMP;
    time_zone: ISC_USHORT;
  end;

4. Remove or comment out:

  function fb_get_master_interface : IMaster; cdecl; external 'fbclient';

This is not an appropriate external function declaration for a dynamic link 
library and only applies to a static library.

When testing with FPC, if this line was not commented out, a linker error 
occurs when trying to link with the debug heap
manager (needed for testing for memory leaks).



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to