blikblum/luipack

Cannot Install Chronology or LuiRest

Opened this issue · 1 comments

Hi,

Also posted to Lazarus forum.
I'm trying to install LuiPack with the online package manager. For the record Lazarus 2.0.0RC3 and Mojave (Parallels VM). Was using High Sierra, but using FPCUPDeluxe (another bit of desperation) the build I had wanted Mojave. I'm building for Darwin/x86_64 Cocoa. So essentially just a macOS 64 bit build.

Firstly Chronolog will unpack, but will not compile. The error is:

Compile package chronolog_package 0.1: Exit code 256, Errors: 1, Hints: 3
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Verbose: Free Pascal Compiler version 3.0.4 [2017/11/26] for x86_64
Verbose: Copyright (c) 1993-2017 by Florian Klaempfl and others
Verbose: Target OS: Darwin for x86_64
Verbose: Compiling chronolog_package.pas
Verbose: Compiling chronolog.pas
Verbose: Compiling ./cpu/cpu.pas
Verbose: Compiling ./cpu/basetype.pas
Verbose: Assembling (pipe) /Users/kevin/.lazarus/onlinepackagemanager/packages/luipack/chronolog/lib/x86_64-darwin/basetype.s
cpu.pas(137,24) Note: Values in enumeration types have to be ascending
cpu.pas(372,30) Fatal: Syntax error, "identifier" expected but ";" found   <<<<<===============??????
Verbose: Compilation aborted

Is there some compiler switch I need to be setting?

OK, well chronolog wasn't what I was after anyway, I was actually after luiRest, but, yes you guessed it, luiRest will not install when the IDE is being rebuilt (note: all other lui packages say they are up-to-date). Error is 'Cannot install luirest_package.lpk' and the detailed error message is:

luirestclient.pas(307,19) Hint: Parameter "Options" not used
luirestclient.pas(242,19) Hint: Parameter "Options" not used
luirestclient.pas(178,57) Hint: Parameter "ResourceTag" not used
luirestclient.pas(178,78) Hint: Parameter "Method" not used
luirestclient.pas(179,59) Hint: Parameter "ValidData" not used
luirestclient.pas(181,7) Hint: Parameter "ResponseCode" not used
luirestclient.pas(184,27) Verbose: Parameter "Sender" not used
Verbose: Assembling (pipe) /Users/kevin/.lazarus/onlinepackagemanager/packages/luipack/luirest/lib/x86_64-darwin/luirestclient.s
register_luirest.pas(30,31) Hint: Parameter "AProject" not used
Verbose: Assembling (pipe) /Users/kevin/.lazarus/onlinepackagemanager/packages/luipack/luirest/lib/x86_64-darwin/register_luirest.s
Verbose: Compiling luirestfastcgi.pas
luirestfastcgi.pas(9,12) Fatal: Cannot find custfcgi used by LuiRESTFastCGI of package luirest_package.  <<<<<==========???????
Verbose: Compilation aborted
 

Again, any ideas what I'm doing wrong. If you need more info just let me know, but the steps are fairly simple (after having tried to install the complete pack previously with chronology and luiRest NOT installing):

  1. Start online package manager
  2. Select luiPack
  3. Select luiRest under luiPack
  4. Click install

Thanks,
Kevin

Sorry for the delay. Chronolog uses cpu unit which contains some assembly code so is not portable.

The LuiREST error is strange. Says that is not finding custfcgi which is a default fpc unit. Can you check that this unit is installed in your system? You can try compiling a simple, command line application that just imports custfcgi ?