Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-10

Mac OS X : Error Building lazarus with FPC 2.5.1

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi all,

I just did an svn update for Lazarus and FPC and I'm getting the following error

Compiling lclmemmanager.pas
lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here
lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here
lclmemmanager.pas(104,1) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcppc returned an error exitcode (normal if you did not specify a source file to be compiled)
make[1]: *** [alllclunits.ppu] Error 1
make: *** [lcl] Error 2

I know that FPC 2.5.1 is not officially supported, but was wondering if anyone has a work-around.

Thanks,

Dominique.

Reply by email

Vincent Snijders
to Unknown author
Show quoted text 20 lines
Hi all, I just did an svn update for Lazarus and FPC and I'm getting the following error Compiling lclmemmanager.pas lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here lclmemmanager.pas(104,1) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/bin/ppcppc returned an error exitcode (normal if you did not specify a source file to be compiled) make[1]: *** [alllclunits.ppu] Error 1 make: *** [lcl] Error 2 I know that FPC 2.5.1 is not officially supported, but was wondering if anyone has a work-around.

http://mantis.freepascal.org/view.php?id=14712
Workaround: update to an earlier fpc revision until we have catched up.

Vincent

Reply by email

Ondrej
to Unknown author: I just did an svn update for Lazarus and FPC and I'm getting the following error…
Show quoted text 8 lines
I just did an svn update for Lazarus and FPC and I'm getting the following error Compiling lclmemmanager.pas lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here

I just had the same error and was able to fix it like this:

  public
    property Capacity; //: Longint read FCapacity write SetCapacity;
  end;

There were a few similar errors in other units, also very easy to fix in a similar way.

HTH
TOndrej

Reply by email

Mattias Gaertner
to Ondrej
Show quoted text 17 lines
> I just did an svn update for Lazarus and FPC and I'm getting the > following error > > Compiling lclmemmanager.pas > lclmemmanager.pas(100,37) Error: Cannot access a private field of > an object here > lclmemmanager.pas(100,53) Error: Cannot access a private field of > an object here I just had the same error and was able to fix it like this: public property Capacity; //: Longint read FCapacity write SetCapacity; end; There were a few similar errors in other units, also very easy to fix in a similar way.

Fixed.

Mattias

Reply by email

Unknown author
to Mattias Gaertner

Thanks for the fix, compiles now.

Dominique

Mattias Gaertner wrote 30 lines
On Sat, 3 Oct 2009 17:44:51 +0200 Ondrej wrote: > > I just did an svn update for Lazarus and FPC and I'm getting the > > following error > > > > Compiling lclmemmanager.pas > > lclmemmanager.pas(100,37) Error: Cannot access a private field of > > an object here > > lclmemmanager.pas(100,53) Error: Cannot access a private field of > > an object here > > I just had the same error and was able to fix it like this: > > public > property Capacity; //: Longint read FCapacity write SetCapacity; > end; > > There were a few similar errors in other units, also very easy to fix > in a similar way. Fixed. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email