[fpc-pascal] Problems with broken (or unclear) download urls for fpc-solaris
Hello, I wanted to download the latest freepascal for Sparc Solaris . Issue 1: Opened the http://www.freepascal.org/download.var, clicked on the "SPARC Solaris" link. It opened the page for selecting the mirror. Clicked on Sourceforge , which lead to : http://sourceforge.net/projects/freepascal/files/ The problem here is that this page doesn't seem to contain any Solaris stuff . Issue 2: I went back to the mirror selection, and clicked on ftp.freepascal.org . This link is ok , but it contains the 2.4.2 sparc solaris FPC . This is not consistent with the main download page (http://www.freepascal.org/download.var) , which implies that 2.6.0 is available for the entire list of platforms and operating systems (which includes the SPARC solaris ... ). Perhaps it's worth taking a look at the download page , so that it presents in a clearer way which FPC version is available for each platform ? For example create a separate section for the less-supported platforms.The way it is now, it implies that 2.6 is available for all the platforms - which is unfortunately false. I currently have ssh access to some Sparc Solaris servers. Does it involve a lot of work to create the solaris builds ? Best regards, Adrian M ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Extended SVN class available
Working on fpcup, Ludo Brands and I extended the fppkg SvnCommand unit. Functionality: - detects svn clients automatically (even a few well-known if not in path on Windows); client path can be specified by user, too. - checkout, update commands; default HEAD, but you can specify a desired revision - lets you perform a checkoutorupdate command: updates a directory if possible, otherwise checks out (with HEAD/desired revision) - detects when you're trying to update an existing SVN repo with the wrong remote URL - detects when you're using an SVN client version that's too old to work with the remote server - get diffs for any local changes (including subdirectories) - revert command - command to get commit log - command to get local revision The code can be found in fpcup (e.g. https://bitbucket.org/reiniero/fpcup/src; you can also checkout with hg or download an archive with all files) in svnclient.pas and I hope it can be useful for others as well. It uses an extended TProcess unit, but used to be based on regular TProcess and should be adaptable quite quickly, if necessary. Comments, improvement ideas of course very welcome as well. Thanks, Reinier ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Problems with broken (or unclear) download urls for fpc-solaris
Adrian Maier wrote: Hello, I wanted to download the latest freepascal for Sparc Solaris . Issue 1: Opened the http://www.freepascal.org/download.var, clicked on the "SPARC Solaris" link. It opened the page for selecting the mirror. Clicked on Sourceforge , which lead to : http://sourceforge.net/projects/freepascal/files/ The problem here is that this page doesn't seem to contain any Solaris stuff . Issue 2: I went back to the mirror selection, and clicked on ftp.freepascal.org . This link is ok , but it contains the 2.4.2 sparc solaris FPC . This is not consistent with the main download page (http://www.freepascal.org/download.var) , which implies that 2.6.0 is available for the entire list of platforms and operating systems (which includes the SPARC solaris ... ). Perhaps it's worth taking a look at the download page , so that it presents in a clearer way which FPC version is available for each platform ? For example create a separate section for the less-supported platforms.The way it is now, it implies that 2.6 is available for all the platforms - which is unfortunately false. I currently have ssh access to some Sparc Solaris servers. Does it involve a lot of work to create the solaris builds ? I don't know to what extent anybody is routinely producing Solaris/SPARC releases. I try to test the compiler on v10 (and to a limited extent on v8) on a fairly regular basis, but I started off with [checks] 2.4.2, had to do a bit of hacking to get it installed (see http://mantis.freepascal.org/view.php?id=18271) and then compiled newer versions from there. In practical terms, you might need to be on 2.7 since there are a couple of code generation bugs that weren't backported to 2.6- this affects both Solaris and Linux. Lazarus 0.9.30-fixed should compile and run on v10 now that some alignment patches have been incorporated. In all cases, you need the freeware gas, gld, gmake and probably gtar etc., and need to be careful with your paths. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64
Hi list, I've submitted a patch (21579) to allow win64 dbtestframework compilation. It does that by disabling support for some databases. Oracle, PostgreSQL, MS SQL Server and Sybase connectors are not built on Win64: see packages\fcl-db\src\sqldb\postgres\fpmake.pp Speculated with Lacak2 in mantis issue. I suspected they're disabled because of lack of driver/client support. Searched through FPC and FPC dev lists on Oracle 64 and found nothing.. If lack of driver/client support was the reason, the current situation may have changed: PostgreSQL 9 has support for Windows x64, e.g. http://www.enterprisedb.com/products-services-training/pgbindownload Oracle instant client for Windows x64 (the download size makes it... not so instant though) http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html FreeTDS can, at least in theory, be compiled for Windows 64 bit systems. This covers MS SQL Server and Sybase. I'll leave the patch as is, unless driver support was the issue, in which case it might make sense to re-enable these connectors... Thanks, Reinier ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Problems with broken (or unclear) download urls for fpc-solaris
On Wed, Mar 28, 2012 at 10:45, Mark Morgan Lloyd wrote: > Adrian Maier wrote: >> >> Hello, >> >> I wanted to download the latest freepascal for Sparc Solaris . >> >> Issue 1: >> Opened the http://www.freepascal.org/download.var , clicked on >> the "SPARC Solaris" link. >> It opened the page for selecting the mirror. >> Clicked on Sourceforge , which lead to : >> http://sourceforge.net/projects/freepascal/files/ >> >> The problem here is that this page doesn't seem to contain any Solaris >> stuff . >> >> Issue 2: >> I went back to the mirror selection, and clicked on ftp.freepascal.org . >> This link is ok , but it contains the 2.4.2 sparc solaris FPC . >> >> This is not consistent with the main download page >> (http://www.freepascal.org/download.var) , which implies that 2.6.0 >> is available for the entire list of platforms and operating systems >> (which includes the SPARC solaris ... ). >> >> Perhaps it's worth taking a look at the download page , so that it >> presents in a clearer way which FPC version is available for each >> platform ? For example create a separate section for the >> less-supported platforms. The way it is now, it implies that 2.6 >> is available for all the platforms - which is unfortunately false. >> >> >> >> I currently have ssh access to some Sparc Solaris servers. Does it >> involve a lot of work to create the solaris builds ? > > > I don't know to what extent anybody is routinely producing Solaris/SPARC > releases. I try to test the compiler on v10 (and to a limited extent on v8) > on a fairly regular basis, but I started off with [checks] 2.4.2, had to do > a bit of hacking to get it installed (see > http://mantis.freepascal.org/view.php?id=18271) and then compiled newer > versions from there. The server is a SunOS 5.10 . Uname -a : SunOS bebrxsu005 5.10 Generic_147440-07 sun4u sparc SUNW,SPARC-Enterprise Solaris I'll try to find some time for installing the 2.4.2 and building the 2.6. Thanks for the link : the comments will be useful in case i encounter problems . > In practical terms, you might need to be on 2.7 since there are a couple of > code generation bugs that weren't backported to 2.6- this affects both > Solaris and Linux. Lazarus 0.9.30-fixed should compile and run on v10 now > that some alignment patches have been incorporated. I am hoping that 2.6 would be enough (not targetting lazarus) . Compiling a development version would be painful because there is no way to directly access the svn server ... > In all cases, you need the freeware gas, gld, gmake and probably gtar etc., > and need to be careful with your paths. The server has the GNU make and tar . But the as and ld are not GNU. And i have no admin rights : so i can install software only in the home dir. -- Adrian M ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64
Am 28.03.2012 10:29, schrieb Reinier Olislagers: Oracle instant client for Windows x64 (the download size makes it... not so instant though) http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html It's called "instant" client, because it does not need any installation compared to the "usual" client. Note: I had yet no real success with the Oracle connection on Windows (32 Bit). I'm still investigating the exact reasons, so I can report approbiate bugs (one reason seems to be that the calling convention in the oracle interface unit is wrong). Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64
On 28-3-2012 11:04, Sven Barth wrote: > Am 28.03.2012 10:29, schrieb Reinier Olislagers: >> Oracle instant client for Windows x64 (the download size makes it... not >> so instant though) >> http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html > It's called "instant" client, because it does not need any installation > compared to the "usual" client. I know, don't get me started on ORACLE_HOME etc... Do you know why it's not compiled on Win64? > Note: I had yet no real success with the Oracle connection on Windows > (32 Bit). I'm still investigating the exact reasons, so I can report > approbiate bugs (one reason seems to be that the calling convention in > the oracle interface unit is wrong). Can't remember whether I've tried running it at all... But since it has been committed surely it must have been working for at least some people!??! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Problems with broken (or unclear) download urls for fpc-solaris
Adrian Maier wrote: On Wed, Mar 28, 2012 at 10:45, Mark Morgan Lloyd wrote: Adrian Maier wrote: Hello, I wanted to download the latest freepascal for Sparc Solaris . Issue 1: Opened the http://www.freepascal.org/download.var, clicked on the "SPARC Solaris" link. It opened the page for selecting the mirror. Clicked on Sourceforge , which lead to : http://sourceforge.net/projects/freepascal/files/ The problem here is that this page doesn't seem to contain any Solaris stuff . Issue 2: I went back to the mirror selection, and clicked on ftp.freepascal.org . This link is ok , but it contains the 2.4.2 sparc solaris FPC . This is not consistent with the main download page (http://www.freepascal.org/download.var) , which implies that 2.6.0 is available for the entire list of platforms and operating systems (which includes the SPARC solaris ... ). Perhaps it's worth taking a look at the download page , so that it presents in a clearer way which FPC version is available for each platform ? For example create a separate section for the less-supported platforms.The way it is now, it implies that 2.6 is available for all the platforms - which is unfortunately false. I currently have ssh access to some Sparc Solaris servers. Does it involve a lot of work to create the solaris builds ? I don't know to what extent anybody is routinely producing Solaris/SPARC releases. I try to test the compiler on v10 (and to a limited extent on v8) on a fairly regular basis, but I started off with [checks] 2.4.2, had to do a bit of hacking to get it installed (see http://mantis.freepascal.org/view.php?id=18271) and then compiled newer versions from there. The server is a SunOS 5.10 . Uname -a : SunOS bebrxsu005 5.10 Generic_147440-07 sun4u sparc SUNW,SPARC-Enterprise Solaris I'll try to find some time for installing the 2.4.2 and building the 2.6. Thanks for the link : the comments will be useful in case i encounter problems . If you get stuck having a copy of my fpc.cfg might help. Email me in the address in my sig (below), I'll be at my desk intermittently. In practical terms, you might need to be on 2.7 since there are a couple of code generation bugs that weren't backported to 2.6- this affects both Solaris and Linux. Lazarus 0.9.30-fixed should compile and run on v10 now that some alignment patches have been incorporated. I am hoping that 2.6 would be enough (not targetting lazarus) . Compiling a development version would be painful because there is no way to directly access the svn server ... But you should still be able to get a snapshot of the development version. However you might find you have to work in a progression: 2.4.2 (possibly via 2.4.4) to 2.6.0 to 2.7.1. The issues are in floating point and variant handling, you'll see them on Mantis if you look for SPARC. In all cases, you need the freeware gas, gld, gmake and probably gtar etc., and need to be careful with your paths. The server has the GNU make and tar . But the as and ld are not GNU. And i have no admin rights : so i can install software only in the home dir. I'd have thought that would have been OK, once you'd got paths set up. If you have problems use the compiler's -vt switch, since this will give you a blow-by-blow account of what's being looked for: gmake NOGDB=1 OPT='-O- -gl -vt' all Note that there are some things that I haven't tested. For example, on various Linux targets I've got a (Lazarus) app that uses PostgreSQL's listen/notify with a lot of pointer checks etc... I've never looked at that on either Solaris or Windows (which isn't where I want to go today). -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64
Am 28.03.2012 11:12, schrieb Reinier Olislagers: On 28-3-2012 11:04, Sven Barth wrote: Am 28.03.2012 10:29, schrieb Reinier Olislagers: Oracle instant client for Windows x64 (the download size makes it... not so instant though) http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html It's called "instant" client, because it does not need any installation compared to the "usual" client. I know, don't get me started on ORACLE_HOME etc... Do you know why it's not compiled on Win64? Do you want the reason why it's not compiled in the view of fpmake (a) or in a technical view (b)? (a) No wonder as the OS list for Oracle is "SqldbConnectionOSes-SqldbWithoutPosgresOSes" (b) Maybe nobody needed it yet. I myself might be the first one at all who wanted to interface with Oracle on Windows directly without ODBC. ;) Note: I had yet no real success with the Oracle connection on Windows (32 Bit). I'm still investigating the exact reasons, so I can report approbiate bugs (one reason seems to be that the calling convention in the oracle interface unit is wrong). Can't remember whether I've tried running it at all... But since it has been committed surely it must have been working for at least some people!??! Maybe it was only really tested on Linux... Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Database questions re 21579: [Patch] Dbtestframework compilationf fixes for Win64
On 28-3-2012 11:36, Sven Barth wrote: > Am 28.03.2012 11:12, schrieb Reinier Olislagers: >> On 28-3-2012 11:04, Sven Barth wrote: >>> Am 28.03.2012 10:29, schrieb Reinier Olislagers: >> Do you know why it's not compiled on Win64? > > Do you want the reason why it's not compiled in the view of fpmake (a) > or in a technical view (b)? (b): (a) is already mentioned in my bug report and my mail to this list... > (b) Maybe nobody needed it yet. I myself might be the first one at all > who wanted to interface with Oracle on Windows directly without ODBC. ;) > Maybe it was only really tested on Linux... Mmm... could be... Thanks Sven, if I get no other answers I think I'll propose a patch that builds Oracle, PostgreSQL, MSSQL and Sybase on Win64... Thanks, Reinier ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] SysUtils.GetEnvironmentVariable
Hi, I think SysUtils.GetEnvironmentVariable has a problem. I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes works on WinXP, others not. But never worked on Win7. I asked some friends to test on Linux and did not work too. My FPC is 2.6.1 rev 20648 on WinXP. The test: 1- Create a Environment Variable (eg: FOO). 2- Try this: procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage(SysUtils.GetEnvironmentVariable('FOO')); end; Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] SysUtils.GetEnvironmentVariable
On Wed, 28 Mar 2012, Marcos Douglas wrote: Hi, I think SysUtils.GetEnvironmentVariable has a problem. I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes works on WinXP, others not. But never worked on Win7. I asked some friends to test on Linux and did not work too. My FPC is 2.6.1 rev 20648 on WinXP. The test: 1- Create a Environment Variable (eg: FOO). 2- Try this: procedure TForm1.Button1Click(Sender: TObject); begin ShowMessage(SysUtils.GetEnvironmentVariable('FOO')); end; Just tested. Works fine on linux, provided the environment variable is defined BEFORE the program is started, and in the terminal that starts the program. (perfectly normal on linux) So if you run the program under the IDE, the environment variable must be defined in the session that starts the IDE, BEFORE the ide is started. Cannot comment on Windows, but I would be very surprised if it does not work, since many of our programs rely on it. There again, be careful WHEN you define the environment variable. Before or after starting the application. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Request redirection + login session in fpweb
I'm currently building a web app using HTTP server application project + fpweb + tiopf (with sqlite backend). However, I'm stuck in this scenario: Imagine a user log's in to my web app, which could be done from any page (it's part of the layout), how can I: Save login data in session, in case the login is successful, and reuse it in certain pages requiring login Redirect the request back to its referer (I could get the referer from ARequest.Referer) FYI, I've been able to login simply by using TtiObjectList.FindByProps. If you need to see current code, it's attached. http://free-pascal-general.1045716.n5.nabble.com/file/n5602126/tkd1depok.zip tkd1depok.zip -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Request-redirection-login-session-in-fpweb-tp5602126p5602126.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/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] SysUtils.GetEnvironmentVariable
On Wed, Mar 28, 2012 at 6:40 PM, Michael Van Canneyt wrote: > > > > On Wed, 28 Mar 2012, Marcos Douglas wrote: > >> Hi, >> >> I think SysUtils.GetEnvironmentVariable has a problem. >> I tried to use GetEnvironmentVariable on WinXP and Win7. Sometimes >> works on WinXP, others not. But never worked on Win7. >> >> I asked some friends to test on Linux and did not work too. >> >> My FPC is 2.6.1 rev 20648 on WinXP. >> >> The test: >> 1- Create a Environment Variable (eg: FOO). >> 2- Try this: >> >> procedure TForm1.Button1Click(Sender: TObject); >> begin >> ShowMessage(SysUtils.GetEnvironmentVariable('FOO')); >> end; >> > > Just tested. > > Works fine on linux, provided the environment variable is defined BEFORE > the program is started, and in the terminal that starts the program. > (perfectly normal on linux) > > So if you run the program under the IDE, the environment variable must be > defined in the session that starts the IDE, BEFORE the ide is started. > > Cannot comment on Windows, but I would be very surprised if it does not > work, since many of our programs rely on it. > > There again, be careful WHEN you define the environment variable. Before > or after starting the application. I know that I have to define the environment variable before or after starting the application or IDE. As I said, works in WinXP... but I had a little problem with a client using Win7 so, I talked about this on lazarus-br list and asked to somebody do the test on Win7 and they said the test did not work so, I wrote here. Marcos Douglas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal