LCL changes has broken ability to compile Cocoa Lazarus builds
Original Reporter info from Mantis: MIS5
-
Reporter name:
Original Reporter info from Mantis: MIS5
- Reporter name:
Description:
When compiling you will get errors like this:
cocoaprivate.pas(189,14) Error: There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
cocoaprivate.pas(195,14) Error: There is no method in an ancestor class to be overridden: "acceptsFirstMouse(NSEvent):Boolean;"
cocoaprivate.pas(189,14) Error: Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
cocoaprivate.pas(195,14) Error: Mismatch between number of declared parameters and number of colons in message string.
cocoaprivate.pas(254,14) Error: There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
cocoaprivate.pas(254,14) Error: Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
cocoaprivate.pas(273,14) Error: There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
cocoaprivate.pas(280,14) Error: There is no method in an ancestor class to be overridden: "acceptsFirstMouse(NSEvent):Boolean;"
cocoaprivate.pas(273,14) Error: Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
cocoaprivate.pas(280,14) Error: Mismatch between number of declared parameters and number of colons in message string.
cocoaprivate.pas(314,14) Error: There is no method in an ancestor class to be overridden: "acceptsFirstResponder:Boolean;"
cocoaprivate.pas(325,14) Error: There is no method in an ancestor class to be overridden: "acceptsFirstMouse(NSEvent):Boolean;"
cocoaprivate.pas(314,14) Error: Objective-C messages require their Objective-C selector name to be specified using the "message" directive.
cocoaprivate.pas(325,14) Error: Mismatch between number of declared parameters and number of colons in message string.
cocoaprivate.pas(366,1) Fatal: There were 14 errors compiling module, stopping
Fatal: Compilation aborted
Steps to reproduce:
Either self using lazbuild of fpcduluxe to recompile IDE exposes the issue
Additional information:
CCRDude writes here
http://forum.lazarus.freepascal.org/index.php?topic=43024.0
"
CocoaPrivate.pas, which is part of the LCL; but it refers to ancestors in NSControl -> NSView -> NSResponder, which are defined in FPC package cocoaint.
Digging further, the return type of these two functions is bad. In FPC, it's BOOL = boolean8; in LCL, it's Boolean.
"