[fpc-pascal] fpcup fails on Linux

2015-04-17 Thread Juha Manninen
I tried installing FPC using fpcup on some Linux systems, now on XUbuntu.
Both "fixes" and "trunk" give an error with fpjson. On Windows I can
install both without problems. Do I need another package from Ubuntu
repos?

Here "fixes" is set to branch fixes_3_0 :

./fpcup_linux_x86 --fpcURL="fixes"
--only="FPCcleanonly,FPCgetonly,FPCbuildonly" --verbose

...
The installer encountered the following error:
External command "/home/juha/development/fpc/compiler/ppc386 -Tlinux
-FEbin/i386-linux -FUunits/i386-linux/
-Fu/home/juha/development/fpc/rtl/units/i386-linux/
-Fu/home/juha/development/fpc/units/i386-linux/fcl-base
-Fu/home/juha/development/fpc/units/i386-linux/paszlib
-Fu/home/juha/development/fpc/units/i386-linux/hash
-Fu/home/juha/development/fpc/units/i386-linux/rtl-extra -Ur -Xs -O2
-n -Fu/home/juha/development/fpc/rtl/units/i386-linux
-Fu/home/juha/development/fpc/packages/paszlib/units/i386-linux
-Fu/home/juha/development/fpc/packages/fcl-process/units/i386-linux
-Fu/home/juha/development/fpc/packages/hash/units/i386-linux
-Fu/home/juha/development/fpc/packages/libtar/units/i386-linux
-Fu/home/juha/development/fpc/packages/fpmkunit/units/i386-linux
-Fu/home/juha/development/fpc/packages/fcl-json/units/i386-linux
-di386 -dRELEASE -viq rstconv.pp" failed with exit code 256. Console
output:
Target OS: Linux for i386
Compiling rstconv.pp
Fatal: Can't find unit variants used by fpjson
Fatal: Compilation aborted
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpcup fails on Linux

2015-04-17 Thread Juha Manninen
I found a similar error from last December, experienced by Waldo Kitty :
  https://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg32256.html
but there was no solution.

Why it happens only with rstconv.pp? Many units were already compiled
before that.
My test system is a fresh XUbuntu, 32-bit. No FPC was installed before
using fpcup.

Can everybody else build FPC on Linux?

Juha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpcup fails on Linux

2015-04-17 Thread Michael Van Canneyt



On Fri, 17 Apr 2015, Juha Manninen wrote:


I found a similar error from last December, experienced by Waldo Kitty :
 https://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg32256.html
but there was no solution.

Why it happens only with rstconv.pp? Many units were already compiled
before that.
My test system is a fresh XUbuntu, 32-bit. No FPC was installed before
using fpcup.

Can everybody else build FPC on Linux?


Yes, I can (but I do not use fpcup).

I did a small fix, added a dependency on rtl-objpas, where the variants unit is 
located.
Rev 30618.

Can you please test if this fixes the issue for you ?

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpcup fails on Linux

2015-04-17 Thread Juha Manninen
On Fri, Apr 17, 2015 at 3:27 PM, Michael Van Canneyt
 wrote:
> I did a small fix, added a dependency on rtl-objpas, where the variants unit
> is located.
> Rev 30618.
>
> Can you please test if this fixes the issue for you ?

Using "trunk" now in the command.
It looks different but still fails.
I really wonder what makes the difference because fpcup takes pretty
much the same steps that a person would do.

...
Start compiling package utils-fpdoc for target i386-linux.
   Compiling fpdoc/BuildUnit_utils_fpdoc.pp
   Compiling fpdoc/dglobals.pp
The installer encountered the following error:
External command "/home/juha/development/fpc/compiler/ppc386 -Tlinux
-FUfpdoc/units/i386-linux/
-Fu/home/juha/development/fpc/rtl/units/i386-linux/
-Fu/home/juha/development/fpc/units/i386-linux/fcl-base
-Fu/home/juha/development/fpc/units/i386-linux/fcl-xml
-Fu/home/juha/development/fpc/units/i386-linux/fcl-passrc
-Fu/home/juha/development/fpc/units/i386-linux/fcl-process
-Fu/home/juha/development/fpc/units/i386-linux/chm -Ur -Xs -O2 -n
-Fu/home/juha/development/fpc/rtl/units/i386-linux
-Fu/home/juha/development/fpc/packages/paszlib/units/i386-linux
-Fu/home/juha/development/fpc/packages/fcl-process/units/i386-linux
-Fu/home/juha/development/fpc/packages/hash/units/i386-linux
-Fu/home/juha/development/fpc/packages/libtar/units/i386-linux
-Fu/home/juha/development/fpc/packages/fpmkunit/units/i386-linux
-Fu/home/juha/development/fpc/packages/fcl-json/units/i386-linux
-di386 -dRELEASE -S2h -viq fpdoc/BuildUnit_utils_fpdoc.pp" failed with
exit code 256. Console output:
Target OS: Linux for i386
Compiling fpdoc/BuildUnit_utils_fpdoc.pp
Compiling fpdoc/dglobals.pp
dglobals.pp(26,38) Fatal: Can't find unit StrUtils used by dGlobals
Fatal: Compilation aborted
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpcup fails on Linux

2015-04-17 Thread Michael Van Canneyt



On Fri, 17 Apr 2015, Juha Manninen wrote:


On Fri, Apr 17, 2015 at 3:27 PM, Michael Van Canneyt
 wrote:

I did a small fix, added a dependency on rtl-objpas, where the variants unit
is located.
Rev 30618.

Can you please test if this fixes the issue for you ?


Using "trunk" now in the command.
It looks different but still fails.
I really wonder what makes the difference because fpcup takes pretty
much the same steps that a person would do.

...
Start compiling package utils-fpdoc for target i386-linux.
  Compiling fpdoc/BuildUnit_utils_fpdoc.pp
  Compiling fpdoc/dglobals.pp
The installer encountered the following error:
External command "/home/juha/development/fpc/compiler/ppc386 -Tlinux
-FUfpdoc/units/i386-linux/
-Fu/home/juha/development/fpc/rtl/units/i386-linux/
-Fu/home/juha/development/fpc/units/i386-linux/fcl-base
-Fu/home/juha/development/fpc/units/i386-linux/fcl-xml
-Fu/home/juha/development/fpc/units/i386-linux/fcl-passrc
-Fu/home/juha/development/fpc/units/i386-linux/fcl-process
-Fu/home/juha/development/fpc/units/i386-linux/chm -Ur -Xs -O2 -n


These paths are not correct.
They should be
-Fu/home/juha/development/fpc/packages/fcl-base/units/i386-linux
etc.

I also do not see the rtl-objpas path appearing ?

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] IsATTY

2015-04-17 Thread David Copeland
This function is a part the unit oldlinux. Is there a replacement for it
somewhere? I have looked in the Linux, Unix, etc units but didn't see it.

Thanks,
Dave Copeland.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] IsATTY

2015-04-17 Thread Henry Vermaak
On Fri, Apr 17, 2015 at 09:55:26AM -0400, David Copeland wrote:
> This function is a part the unit oldlinux. Is there a replacement for it
> somewhere? I have looked in the Linux, Unix, etc units but didn't see it.

It's in termio.

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] IsATTY

2015-04-17 Thread David Copeland
On 04/17/2015 10:49 AM, Henry Vermaak wrote:
> On Fri, Apr 17, 2015 at 09:55:26AM -0400, David Copeland wrote:
>> This function is a part the unit oldlinux. Is there a replacement for it
>> somewhere? I have looked in the Linux, Unix, etc units but didn't see it.
> It's in termio.
>
> Henry
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Thanks very much!

Dave.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] CRTI.O and CRTN.O not found

2015-04-17 Thread Peter
On 15/04/15 05:39, Anthony Walter wrote:
> Peter: I always install the build-essentials package whenever I setup
> a debian system, yet I occasionally get both -crti.o not found and
> -crtn.o not found
>
> Bart: That first google result you linked relates to mavericks and not
> debian
>
>
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

If you are sure the files are in /usr somewhere, then you possibly need
to set an explicit path to them in /etc/fpc
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] CRTI.O and CRTN.O not found

2015-04-17 Thread Peter
On 17/04/15 16:45, Peter wrote:
> On 15/04/15 05:39, Anthony Walter wrote:
>> Peter: I always install the build-essentials package whenever I setup
>> a debian system, yet I occasionally get both -crti.o not found and
>> -crtn.o not found
>>
>> Bart: That first google result you linked relates to mavericks and not
>> debian
>>
>>
>> ___
>> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> If you are sure the files are in /usr somewhere, then you possibly need
> to set an explicit path to them in /etc/fpc
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
That should have been fpc.cfg, but maybe lazarus has other settings?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] fptemplate example wrong?

2015-04-17 Thread Luca Olivetti
Hello,

I was following the simpletemplate example for fptemplate, where, in
webmodule.pas, it says:

  //ModuleTemplate is a web module global property
  //To use the Template propery of the current web action (which is
visible in
  //the object inspector for every Action), use
  //(Sender as TFPWebAction).Template.FileName := 'mytemplate1.html';
and so on.
  ModuleTemplate.FileName := 'mytemplate1.html';//best to use full path here
  ModuleTemplate.AllowTagParams := true;
  ModuleTemplate.OnReplaceTag := @func1callReplaceTag;


but it didn't work in my program.
It turns out that the correct OnReplaceTag event to assign is the one of
the module itself and not of ModuleTemplate, i.e.:

instead of

ModuleTemplate.OnReplaceTag := ...

it should be

OnReplaceTag :=

I'm using it in a standalone server app, and I used the OnGetParam event
(AllowTagParams is false, I previously tried OnReplaceTag just like the
example), while the example is for a cgi/fastcgi app, but I don't think
that makes a difference.

Bye
-- 
Luca
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fptemplate example wrong?

2015-04-17 Thread leledumbo
> but it didn't work in my program. 

The example works just fine with embedded server, only need to adjust path
to the template. So you might want to send a minimal example that shows it
doesn't work as you describe.

> It turns out that the correct OnReplaceTag event to assign is the one of 
> the module itself and not of ModuleTemplate, i.e.:

There's on OnReplaceTag in TFPWebModule...

It's very likely that you misunderstood fpWeb application flow.



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/fptemplate-example-wrong-tp5721613p5721614.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpcup fails on Linux

2015-04-17 Thread Stéphane Aulery
Le vendredi 17 avril 2015 à 01:39:40, Juha Manninen a écrit :
> I found a similar error from last December, experienced by Waldo Kitty :
>   https://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg32256.html
> but there was no solution.
> 
> Why it happens only with rstconv.pp? Many units were already compiled
> before that.
> My test system is a fresh XUbuntu, 32-bit. No FPC was installed before
> using fpcup.
> 
> Can everybody else build FPC on Linux?

I have build fpc directly form trunk Wednesday on Debian testing amd64, all 
rights!.

-- 
Stéphane Aulery
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal