Hi,
I try to install Zeos 6.6.4 on a Mac with OSX (Leopard) and FreePascal 2.2.2, Lazarus 0.9.26.1.
XCode is installed. Lazarus is running well.
I get at the installation/compile the following error messages:
Any idea?
-------------------------------------------------------------------------
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(96,19) Hint: Type "IntegerArray" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(97,19) Hint: Type "PIntegerArray" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(99,27) Hint: Type "PPointer" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(100,27) Hint: Type "PByte" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(101,27) Hint: Type "PBoolean" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(102,27) Hint: Type "PShortInt" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(103,27) Hint: Type "PSmallInt" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(104,27) Hint: Type "PInteger" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(105,27) Hint: Type "PLongInt" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(106,27) Hint: Type "PSingle" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(107,27) Hint: Type "PDouble" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(108,27) Hint: Type "PWordBool" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(109,27) Hint: Type "PCardinal" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(110,27) Hint: Type "PInt64" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(111,27) Hint: Type "PPChar" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(112,27) Hint: Type "PLongWord" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(114,27) Hint: Type "PWord" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(151,13) Hint: Type "HMODULE" redefinition
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(208,13) Hint: Conversion between ordinals and pointers is not portable
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(213,30) Hint: Conversion between ordinals and pointers is not portable
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(218,19) Hint: Conversion between ordinals and pointers is not portable
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/core/ZCompatibility.pas(236) Warning: Implicit uses of Variants unit
"Compiling package zcore 6.6.3" completed
/Developer/lazarus/components/ZEOSDBO-6.6.4-stable/src/plain/ZPlainLoader.pas(1,1) Fatal: Can't find unit libc used by ZPlainLoader
[bug_fixed] MacOS X (Leopard) installation problem Lazarus
Moderators: gto, EgonHugeist
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Using the libc unit might not be necessary when using FPC. I think that unit was mainly needed for kylix.
Try to replace
by
I can't promise this can be done for every occurence of the libc unit, but if we don't try we'll never know.
Can you help us?
Mark
Try to replace
Code: Select all
implementation
uses
{$IFNDEF UNIX}
Windows,
{$ELSE}
libc,
{$ENDIF}
Code: Select all
implementation
uses
{$IFNDEF UNIX}
Windows,
{$ELSE}
{$IFNDEF FPC}
libc,
{$ENDIF}
{$ENDIF}
Can you help us?
Mark
Hi Mark,
you're right!
I had to modify the ZPlainLoader, ZPlainFirebird10, ZPlainFirebird15, ZPlainFirebird20
in the way you suggested.
Then the ZeosLib compiles without an error message.
Here's my uses section for the files:
----------------------------------
uses SysUtils,
{$IFNDEF UNIX}
Windows,
{$ELSE}
{$IFNDEF FPC}
libc,
{$ENDIF}
{$ENDIF}
ZMessages;
----------------------------------
Regards,
Tibor
you're right!
I had to modify the ZPlainLoader, ZPlainFirebird10, ZPlainFirebird15, ZPlainFirebird20
in the way you suggested.
Then the ZeosLib compiles without an error message.
Here's my uses section for the files:
----------------------------------
uses SysUtils,
{$IFNDEF UNIX}
Windows,
{$ELSE}
{$IFNDEF FPC}
libc,
{$ENDIF}
{$ENDIF}
ZMessages;
----------------------------------
Regards,
Tibor