Sign in Join

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

Mailing lists / fpc-pascal / 2004-08

FPC 1.9.4: fpc.cfg and Linux unit.

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Arne Hanssen

1) I have one problem with 1.9.4 compared to 1.0.10: The Linux unit seems not to be recognized properly; the 'stat' record type seems to be undefined, f.ex.:

Free Pascal Compiler version 1.9.4 [2004/05/30] for i386
Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Linux for i386
Compiling source/pascal/Utils/dircomp.pas
dircomp.pas(155,10) Error: Identifier not found "stat"
dircomp.pas(155,14) Error: Error in type definition
dircomp.pas(169,54) Warning: range check error while evaluating
constants
dircomp.pas(176,6) Error: Identifier not found "FStat"
dircomp.pas(178,5) Error: Identifier not found "ChMod"
dircomp.pas(178,37) Error: Illegal qualifier
dircomp.pas(178,45) Error: Illegal expression
dircomp.pas(179,8) Error: Identifier not found "linuxerror"
dircomp.pas(179,46) Error: Identifier not found "linuxerror"
dircomp.pas(179,93) Error: Illegal expression
...
It compiles fine under 1.0.10!

2) And for both versions:
The doc states that, if using option '-n', the compiler skips the default config file and tries to reed '~/.fpc.cfg' (among others). But I can't get this to work,
1.9.4 says: "Fatal, Can't find unit SYSTEM"
1.0.10 says: "Fatal, Can't find unit SYSLINUX"

Am I missing something? If I got this to work I could easily fire up 1.0.10 for sources using the Linux unit and have my system set up for 1.9.4 by default. As it seems now I have to mess with the default config file (/etc/fpc.cfg) which I would prefer not to. I've tried experimenting with the PPC_CONFIG_PATH, but no success.

Vennlig hilsen / Best regards |\ ___,,--, _ Arne Hanssen, Senja, Norway /,`--'' \-,,__,'/ http://www.tuxic.net/ |,4 ) )_ ) /~-----' ---------------------------------'---^~(_/-_)--(_/_)-------
Marco van de Voort
to Arne Hanssen
1) I have one problem with 1.9.4 compared to 1.0.10: The Linux unit seems not to be recognized properly; the 'stat' record type seems to be undefined, f.ex.:

1.9.x has a brand new unix rtl, most calls are now in baseunix/unix and prefixed with "fp"

For urgent 1.0.x legacy, the 1.0.x linux unit is available in 1.9.x as "oldlinux", however while 100% the same as 1.0.10's, oldlinux is not entangled with system anymore, and this might cause small incompabilities.

For background info, see:

http://www.stack.nl/~marcov/unixrtl.pdf

Show quoted text 6 lines
2) And for both versions: The doc states that, if using option '-n', the compiler skips the default config file and tries to reed '~/.fpc.cfg' (among others). But I can't get this to work, 1.9.4 says: "Fatal, Can't find unit SYSTEM" 1.0.10 says: "Fatal, Can't find unit SYSLINUX"

The path where the compiler can find the RTL is in fpc.cfg. So it can't find system because you specified -n

This means you will have to add the path to your desired RTL manually with -Fu (check the -Fu line in your fpc.cfg, the one with an asterisk at the end)

Olle Raab
to Marco van de Voort

04-08-14 18.54, skrev Marco van de Voort följande:

Show quoted text 14 lines
> 1) I have one problem with 1.9.4 compared to 1.0.10: > The Linux unit seems not to be recognized properly; the 'stat' record > type seems to be undefined, f.ex.: 1.9.x has a brand new unix rtl, most calls are now in baseunix/unix and prefixed with "fp" For urgent 1.0.x legacy, the 1.0.x linux unit is available in 1.9.x as "oldlinux", however while 100% the same as 1.0.10's, oldlinux is not entangled with system anymore, and this might cause small incompabilities. For background info, see: http://www.stack.nl/~marcov/unixrtl.pdf

This is really brand new... it is dated 1 jan 2005.. :)

Olle