[fpc-devel] To Joost on 13228 and 13280
Hi Joost, Can't add notes to resolved reports so I write here instead. :) I assumed the FCL-web patches/changes I submitted will be applied in chronological order so there might be a little snag there at the moment. It seems that now 13228 and 13280 are both applied (with your modifications) but it might not be enough because 13280 needs an earlier submitted patch http://bugs.freepascal.org/view.php?id=132254 FCL-web might not work without this. Sorry about the mess of so many patches/changes submitted, it's just during the development of all the examples (submitted in 0013250 and 0013288) these bugs/shortcomings were discovered. To sum it up, here are the list of all the mantis reports for FCL-web at the moment: 1. http://bugs.freepascal.org/view.php?id=13228 Status: Closed. Done. 2. http://bugs.freepascal.org/view.php?id=13254 Status: Assigned, not applied yet. Contains the changes in 13228 (1.) and 13250 (5.) with additional fixes/changes. 3. http://bugs.freepascal.org/view.php?id=13280 Status: Closed. Done. Might not work without 13254 (2.) though 4. http://bugs.freepascal.org/view.php?id=13287 Status: Not assigned yet Session related bug fixes for apache modules. 5. http://bugs.freepascal.org/view.php?id=13250 Status: Assigned, not applied yet Contains example programs (they need the above patches to work). 6. http://bugs.freepascal.org/view.php?id=13288 {Status: Not assigned yet) Additional example programs (they need the above patches to work). 7. http://bugs.freepascal.org/view.php?id=13251 Status: Not assigned yet Lazarus fweb change for generated program stubs' "uses" clause So 2. and 4. are still needed for fcl-web (and the example programs in 5. and 6.) to work. If it would be easier for you, I can check out the current fcl-web package from the SVN trunk and create one patch using my local fcl-web changes. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc binary for OpenBSD 4.4
On Fri, March 13, 2009 19:57, Constantine Cusulos wrote: > Before posting here, i asked a question about binary emulation on > openbsd-misc (http://marc.info/?l=openbsd-misc&m=123688274008042&w=2). > If i combine the answers i got there with a little openbsd-misc > archive-searching, i can say that OpenBSD's emulation capabilities are > at least problematic nowdays. > > So, my answer to my initial question would be, most probably, no. > > Regarding a "fresh start", as Marco van de Voort put it, i have found > some info in the wiki (namely > http://wiki.freepascal.org/Porting_Free_Pascal and > http://wiki.freepascal.org/RTL_development_articles). Yes, I believe that this should be the right place to start. > @Tomas Hajny >> The other would be only >> creating assembler files on the source platform using -s parameter and >> copying these to the target platform to assemble and link the ppc386/fpc >> binary there (possibly after adjusting some paths in the linker script). > > I do not fully understand this process. From the fpc man page: > > -s Tells the compiler not to call the assembler and linker. > Instead, the compiler writes a script, PPAS.BAT under DOS, or ppas.sh > under Linux, which can then be executed to produce an executable. > > There is not much info beyond that. So, a shell script is produced under > linux? That could be a potential problem since OpenBSD uses the korn > shell and linux uses the bash shell. I don't think this should be a real problem. As far as I know, the differences between Korn shell and bash aren't so dramatic as far as I remember (well, certainly not so big compared to e.g. C shell) and the created shell script is just a simple sequence of invocations of external commands. If this really becomes a problem, you'd need to solve it for native compiler too. However, the main problem is certainly the non-availability of an (up to date) OpenBSD RTL support; admittedly, I didn't know (or rather remember) that noone touched it since the FPC 1.x times. Tomas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc binary for OpenBSD 4.4
Before posting here, i asked a question about binary emulation on openbsd-misc (http://marc.info/?l=openbsd-misc&m=123688274008042&w=2). If i combine the answers i got there with a little openbsd-misc archive-searching, i can say that OpenBSD's emulation capabilities are at least problematic nowdays. So, my answer to my initial question would be, most probably, no. Regarding a "fresh start", as Marco van de Voort put it, i have found some info in the wiki (namely http://wiki.freepascal.org/Porting_Free_Pascal and http://wiki.freepascal.org/RTL_development_articles). @Tomas Hajny The other would be only creating assembler files on the source platform using -s parameter and copying these to the target platform to assemble and link the ppc386/fpc binary there (possibly after adjusting some paths in the linker script). I do not fully understand this process. From the fpc man page: -s Tells the compiler not to call the assembler and linker. Instead, the compiler writes a script, PPAS.BAT under DOS, or ppas.sh under Linux, which can then be executed to produce an executable. There is not much info beyond that. So, a shell script is produced under linux? That could be a potential problem since OpenBSD uses the korn shell and linux uses the bash shell. In any case, if anybody has a few pointers on how i could begin a fresh start, please submit them. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: FPC 2.2.4 rc1 Copy() function issue?
Sooky Boo wrote: Found a solution. Copy() only works for one level deep and since using fpc 2.2.4 the array became two levels deep. Solution copy array A to array B using copy, then for each element of array B copy nested array from A to B. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel But that is not a bug: that is by design and is also the way Delphi (and other languages) should and do behave.. Only a record with simple types (incl. shortstrings) are fully copied with a move(). Not pointer dependencies. smime.p7s Description: S/MIME Cryptographic Signature ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: FPC 2.2.4 rc1 Copy() function issue?
Found a solution. Copy() only works for one level deep and since using fpc 2.2.4 the array became two levels deep. Solution copy array A to array B using copy, then for each element of array B copy nested array from A to B. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc binary for OpenBSD 4.4
On Fri, March 13, 2009 15:50, Constantine Cusulos wrote: > I would like to compile fpc on my OpenBSD4.4/i386 system. The buildfaq > (http://www.stack.nl/~marcov/buildfaq.pdf) requires to have a usable fpc > binary in order to compile fpc source. > > OpenBSD has emulation for binaries from linux and FreeBSD so i got the > corresponding binaries from Ubuntu/i386 and FreeBSD/i386. Emulation > didn't work. That means that i was not able to use the freepascal > compiler on my system with either of those binaries. > > Is there a way i can compile fpc on OpenBSD4.4/i386? Well, do you ask whether there's a way you can compile fpc _on_ OpenBSD, or create fpc _for_ that OpenBSD? For the former the answer is probably "no" (if you tried the emulation and it didn't work). If your goal is "just" having fpc working on your platform at the end, you can build it on one of the supported platforms (e.g. Linux or FreeBSD). There are two ways for doing it (I believe there's some information on cross-compilation on our Wiki among others). One way is using assembler (as) and linker (ld) running on the source platform (e.g. Linux or FreeBSD) and supporting the target platform (OpenBSD). However, that often requires you to copy some files from the target platform (and you need to find the right ones, etc.), so this may not be the easiest option. The other would be only creating assembler files on the source platform using -s parameter and copying these to the target platform to assemble and link the ppc386/fpc binary there (possibly after adjusting some paths in the linker script). Tomas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc binary for OpenBSD 4.4
In our previous episode, Dani?l Mantione said: > > Is there a way i can compile fpc on OpenBSD4.4/i386? > > The OpenBSD code in the rtlis unmaintained, perhaps Marco can give an idea > about the state of that code. There is none. OpenBSD was never ported to 2.x. Moreover, when the previous port was done, OpenBSD was still a.out, and a major version older. The best way would be to start fresh. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc binary for OpenBSD 4.4
In our previous episode, Constantine Cusulos said: > I would like to compile fpc on my OpenBSD4.4/i386 system. The buildfaq > (http://www.stack.nl/~marcov/buildfaq.pdf) requires to have a usable fpc > binary in order to compile fpc source. > > OpenBSD has emulation for binaries from linux and FreeBSD so i got the > corresponding binaries from Ubuntu/i386 and FreeBSD/i386. Emulation > didn't work. That means that i was not able to use the freepascal > compiler on my system with either of those binaries. This has been mentioned before: http://bugs.freepascal.org/view.php?id=10342 It seems like the OpenBSD emulation modes are not working anymore or not complete. > Is there a way i can compile fpc on OpenBSD4.4/i386? At the moment, no. Getting to the bottom of the emulation modes (asking on OpenBSD lists) would be the best solution. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] fpc binary for OpenBSD 4.4
Op Fri, 13 Mar 2009, schreef Constantine Cusulos: I would like to compile fpc on my OpenBSD4.4/i386 system. The buildfaq (http://www.stack.nl/~marcov/buildfaq.pdf) requires to have a usable fpc binary in order to compile fpc source. OpenBSD has emulation for binaries from linux and FreeBSD so i got the corresponding binaries from Ubuntu/i386 and FreeBSD/i386. Emulation didn't work. That means that i was not able to use the freepascal compiler on my system with either of those binaries. Is there a way i can compile fpc on OpenBSD4.4/i386? The OpenBSD code in the rtlis unmaintained, perhaps Marco can give an idea about the state of that code. Since many platform specific code is shared with FreeBSD & Darwin, it can be brought back to life with relative ease. If a bootstrap compiler is missing it may be possible to compile an OpenBSD execitable on another system. If all else fails, the assembler files can be generated on a Linux system, transfered to OpenBSD and assembled/linked there. But this has almost never been necessary. Daniël___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] FPC 2.2.4 rc1 Copy() function issue?
I am using fpc 2.2.4 rc1 and I have a dynamic array of records which I Copy() to another variable, the copied array has reference pointers to the original array, I don't think this was the case in earlier versions of fpc. Anyone know a work around? I could make a function the sets the lengths of the array and then sets each property of the record but the record definition sometimes changes and could lead to broken code. Thanks ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] fpc binary for OpenBSD 4.4
I would like to compile fpc on my OpenBSD4.4/i386 system. The buildfaq (http://www.stack.nl/~marcov/buildfaq.pdf) requires to have a usable fpc binary in order to compile fpc source. OpenBSD has emulation for binaries from linux and FreeBSD so i got the corresponding binaries from Ubuntu/i386 and FreeBSD/i386. Emulation didn't work. That means that i was not able to use the freepascal compiler on my system with either of those binaries. Is there a way i can compile fpc on OpenBSD4.4/i386? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel