View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0031008 | Lazarus | Widgetset | public | 2016-11-25 10:27 | 2016-11-27 12:52 |
Reporter | josh | Assigned To | Juha Manninen | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | MAC | OS | OSX | ||
Product Version | 1.7 (SVN) | ||||
Summary | 0031008: LAzarus Trunk BROKEN :- Wrong Number of parametsrs specified for CompareText | ||||
Description | Trying to install Lazarus and FPC Trunk; but when trying to compile codetools; it bombs out with following errors. I have cleaned out the folder prior to install. /Users/josh/Lazarus_Trunk/lazarus/components/codetools/fileprocs.pas(1354,12) Error: (3026) Wrong number of parameters specified for call to "CompareText" /Users/josh/Lazarus_Trunk/fpc/units/i386-darwin/univint/MacOSAll.ppu:StringCompare.pas(376,10) Error: (5088) Found declaration: CompareText(Pointer;Pointer;SmallInt;SmallInt;Handle):SmallInt; /Users/josh/Lazarus_Trunk/lazarus/components/codetools/fileprocs.pas(1565,15) Error: (3026) Wrong number of parameters specified for call to "CompareText" /Users/josh/Lazarus_Trunk/fpc/units/i386-darwin/univint/MacOSAll.ppu:StringCompare.pas(376,10) Error: (5088) Found declaration: CompareText(Pointer;Pointer;SmallInt;SmallInt;Handle):SmallInt; fileprocs.pas(2549) Fatal: (10026) There were 4 errors compiling module, stopping Fatal: (1018) Compilation aborted Error: /Users/josh/Lazarus_Trunk/fpc/bin/i386-darwin/ppc386 returned an error exitcode | ||||
Steps To Reproduce | Download and compile lazarus trunk | ||||
Tags | No tags attached. | ||||
Fixed in Revision | r53468 | ||||
LazTarget | - | ||||
Widgetset | Carbon | ||||
Attached Files |
|
|
CompareText is in SysUtils. Why does your compiler not find it there? Please do a clean build of everything. Usually it helps. This kind of configuration problems should be asked in mailing list or forum actually. |
|
I resolve this as it is clearly a local configuration etc. issue. In future please ask in the forum first before reporting such errors. |
|
Please see forum post http://forum.lazarus.freepascal.org/index.php/topic,34645.150.html |
|
Right, it was a valid issue after all. I added the "SysUtils." in front of CompareText. The best fix could be to move this: {$IFnDEF Windows} uses {$IFDEF darwin} MacOSAll, {$ENDIF} Unix; {$ENDIF} from implementations section to top of interface uses section. The unit later in the list always takes precedence. |
|
The SysUtils.comparetext works as in post. Also adding {$IFnDEF Windows} {$IFDEF darwin} MacOSAll, {$ENDIF} Unix, {$ENDIF} to the File Procs Uses statement at Line 35, and removing from implementation also works. This is the better option. Has svn been updated?; so I can test this also. It takes about 90 minutes for me to download and test of complete trunk ( removing all previous data). |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-11-25 10:27 | josh | New Issue | |
2016-11-25 14:48 | Juha Manninen | Note Added: 0096228 | |
2016-11-25 14:49 | Juha Manninen | Note Edited: 0096228 | View Revisions |
2016-11-26 11:10 | Juha Manninen | LazTarget | => - |
2016-11-26 11:10 | Juha Manninen | Note Added: 0096244 | |
2016-11-26 11:10 | Juha Manninen | Status | new => resolved |
2016-11-26 11:10 | Juha Manninen | Resolution | open => unable to reproduce |
2016-11-26 11:10 | Juha Manninen | Assigned To | => Juha Manninen |
2016-11-27 11:10 | josh | Note Added: 0096289 | |
2016-11-27 11:51 | Juha Manninen | Status | resolved => assigned |
2016-11-27 11:51 | Juha Manninen | Resolution | unable to reproduce => reopened |
2016-11-27 11:56 | Juha Manninen | Fixed in Revision | => r53468 |
2016-11-27 11:56 | Juha Manninen | Note Added: 0096290 | |
2016-11-27 11:56 | Juha Manninen | Status | assigned => resolved |
2016-11-27 11:56 | Juha Manninen | Resolution | reopened => fixed |
2016-11-27 12:51 | josh | Note Added: 0096292 | |
2016-11-27 12:52 | josh | Note Edited: 0096292 | View Revisions |