Yes, you are right.
I just comment out the options within fpc.cfg after I got the asm files
(*.s) for study.
On 8/21/2012 00:53, Sven Barth wrote:
Am 21.08.2012 09:35, schrieb ABorka:
This is exactly what I needed.
"-alr -sr -Amasm" does it. I just put them into my "fpc.cfg&q
It would be nice to see it work with objdump also, but not a priority.
With your help guys I was able to get the needed output using the
fpc.cfg and the FPC parameters you guys mentioned.
Thanks for the help
<...snip...>
On 8/21/2012 00:19, Sergei Gorelkin wrote:
21.08.2012 10:32,
This is exactly what I needed.
"-alr -sr -Amasm" does it. I just put them into my "fpc.cfg" .
Thanks for all the help guys.
On 8/21/2012 00:16, Jonas Maebe wrote:
On 21 Aug 2012, at 08:32, ABorka wrote:
On 8/20/2012 22:37, Sergei Gorelkin wrote:
-R switch controls pars
l syntax
assembly but AT&T.
Anyone had experience with something like this (display the disassembled
code of a project unit/object_file in Intel syntax, with source code lines)?
Thanks for any help
On 8/20/2012 22:37, Sergei Gorelkin wrote:
21.08.2012 5:38, ABorka пишет:
Is there a way
/20/2012 21:38, ABorka wrote:
Is there a way to see the generated ".s" assembly files as Intel
syntax instead
of the AT&T one?
The -Rintel flag does not seem to work, or I am doing something wrong.
Tried command line and fpc.cfg both, on win32 and win64, latest SVN .
what c
Is there a way to see the generated ".s" assembly files as Intel syntax
instead of the AT&T one?
The -Rintel flag does not seem to work, or I am doing something wrong.
Tried command line and fpc.cfg both, on win32 and win64, latest SVN .
___
fpc-devel
Hi,
Win32 .exe compiled on Win64 computer, latest SVN build.
I am trying to multiply 2 Integers (Declared as LongInt but sometimes
need to use it as LongWord) and put the result into a QWord (64bit
unsigned) result variable on Win32.
However, it seems that the result is always cut to 32bit.
C
SVN 22101 works
Thx
On 8/17/2012 00:45, Thomas Schatzl wrote:
Hi,
On Fri, 2012-08-17 at 00:37 -0700, ABorka wrote:
The error comes during the
make all OS_TARGET=win64 CPU_TARGET=x86_64 <=== error comes here
[..]
Can you please update to latest or make sure you're on the latest
reepascal.org] On Behalf Of ABorka
Sent: Friday, August 17, 2012 9:05 AM
To: FPC developers' list
Subject: [fpc-devel] Crosscompiling problem on Win7 64bit
Hi,
I was not able to create a cross-compiled version of the SVN trunk FPC for
some reason.
Win7 64bit (FPC 2.6.0 -> 2.7.1)
Hi,
I was not able to create a cross-compiled version of the SVN trunk FPC
for some reason.
Win7 64bit (FPC 2.6.0 -> 2.7.1)
1. Brand new system, installed the 2.6.0 FPCOK
2. Compiled the default 32bit FPC OK
3. Tried to compile the 64bit cross library and getting the following:
"Err
On 9/25/2011 02:54, Felipe Monteiro de Carvalho wrote:
Hello,
Accessing http://bugs.freepascal.org/login_page.php
Using the following user agent (Opera in Mac OS X):
Opera/9.80 (Macintosh; Intel Mac OS X 10.6.1; U; en) Presto/2.9.168
Version/11.50
I get:
HTTP/1.1 400 Bad Request
Date: Sun, 2
OK, I just updated to the latest SVN trunk for FPC and Lazarus, and
recompiled them on Linux ("make clean all" as user, then "sudo make
install").
I deleted ~./lazarus to have only the basic packages at first.
After executing "startlazarus" as a user from my home dir like I did a
million times
sysutils.pp(243,40) Error: Identifier not found "Mode"
sysutils.pp(819,3) Warning: Symbol "GetLocaleFormatSettings" is not portable
sysutils.pp(1277) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
___
fpc-devel maillist
Latest FPC SVN 17459:
Doing a "make all OS_TARGET=win64 CPU_TARGET=x86_64" crosscompiling with
32bit FPC gives the following error:
=
make -C fpmkunit bootstrap
make[3]: Entering directory `c:/fpc_svn/packages/fpmkunit'
C:/pp/bin/i386-win32/gmkdir.exe -p units_bs/i386-win32
C:\pp\bi
Latest FPC SVN
"make clean" results in:
.
.
.
make -C fppkg distclean
make[2]: Entering directory `/fpc_svn/packages/fppkg'
make[2]: *** No rule to make target `distclean'. Stop.
make[2]: Leaving directory `/fpc_svn/packages/fppkg'
make[1]: *** [fppkg_distclean] Error 2
make[1]: Leaving directory
On 4/13/2011 00:07, michael.vancann...@wisa.be wrote:
On Mon, 11 Apr 2011, ABorka wrote:
<...snip...>
OK, found the problem:
fpweb does not set the content length properly when there was an
exception or error message, it uses the content length from the action
event handler.
For examp
On 4/13/2011 00:07, michael.vancann...@wisa.be wrote:
<...snip...>
On Mon, 11 Apr 2011, ABorka wrote:
OK, found the problem:
fpweb does not set the content length properly when there was an
exception or error message, it uses the content length from the action
event handler.
For example,
entered as
http://bugs.freepascal.org/view.php?id=19153
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
On 4/12/2011 01:31, ABorka wrote:
On 4/12/2011 00:01, michael.vancann...@wisa.be wrote:
On Mon, 11 Apr 2011, ABorka wrote:
I was playing today with fpweb a little, and found a simply
reproducible minor problem.
When one creates a new CGI or FCGI application and creates a simple
default
Hi,
How do we debug an FCGI application from within Lazarus? The RUN
function is disabled in the RUN menu, so I can not start it up after
putting some break points in the IDE.
AB
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://list
On 4/12/2011 00:01, michael.vancann...@wisa.be wrote:
On Mon, 11 Apr 2011, ABorka wrote:
I was playing today with fpweb a little, and found a simply
reproducible minor problem.
When one creates a new CGI or FCGI application and creates a simple
default action, but NOT setting the "ha
I was playing today with fpweb a little, and found a simply reproducible
minor problem.
When one creates a new CGI or FCGI application and creates a simple
default action, but NOT setting the "handled := true;" within the event
handler, then some kind of exception happens within fpweb when the
WinXP 32bit, latest FPC SVN trunk, everything is default, not cross
compiling
1. "make all" creates all the units properly, into the right places.
2. "make install" gets to the fcl-web package, and the files are copied
into "../.." (basically the "units/i386-win32/fcl-web" directory gets
crea
On 4/9/2011 14:37, Joost van der Sluis wrote:
On Sat, 2011-04-09 at 13:05 -0700, ABorka wrote:
Just like the "make install" does not copy the FCL-web units to the
right place, "make clean" does not remove them either. Here is the output:
.
.
.
C:/pp/bin/i386-win32/make.EXE
Just like the "make install" does not copy the FCL-web units to the
right place, "make clean" does not remove them either. Here is the output:
.
.
.
C:/pp/bin/i386-win32/make.EXE -C fcl-web distclean
make.EXE[2]: Entering directory `C:/fpc_svn/packages/fcl-web'
make.EXE[2]: Nothing to be done fo
On 4/9/2011 12:43, ABorka wrote:
On 4/9/2011 11:26, Joost van der Sluis wrote:
On Sat, 2011-04-09 at 00:22 -0700, ABorka wrote:
Is it intentional that the fcl-web package is not copied when "make
install" is called?
"make all" compiles the units properly, they are just
On 4/9/2011 11:26, Joost van der Sluis wrote:
On Sat, 2011-04-09 at 00:22 -0700, ABorka wrote:
Is it intentional that the fcl-web package is not copied when "make
install" is called?
"make all" compiles the units properly, they are just not copied by
"make install"
Is it intentional that the fcl-web package is not copied when "make
install" is called?
"make all" compiles the units properly, they are just not copied by
"make install".
I've tried the latest SVN trunk version on WinXP 32bit.
___
fpc-devel maillist
https://forums.codegear.com/thread.jspa?threadID=52117&tstart=0
We can check it out and do some comparisons now.
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
...snip...
The only thing I've noticed is that with XML the "text" MySQL fields
are not coming over to ExtJS, they only say "(MEMO)" . Is that because
XML does not allow UTF8 or something?
No, this is a bug. I fixed it already in JSON (since I use that), but
not yet in XML.
Some non-"text" fi
I implemented b), see revision 15859.
Tested it, and it seems to work nicely both for JSON and XML.
I'm using the AfterDataToJSON and AfterDataToXML events to
replace/insert the correct "total" now.
The only thing I've noticed is that with XML the "text" MySQL fields are
not coming over to E
...snip...
Exceptions are usually caught and transformed to the correct response.
I coded an event that allows to influence this process.
Michael.
Yes, the ones raised within FCL-web are caught. I was thinking about the
ones raised within the developer's code, when handling the actions, or
...snip...
I will add an 'AfterFormatResult' or so event; Likewise I will add a
AfterRow event, so it is possible to append extra data to a row. I think
we should do this for both XML and JSON, so the row/response elements
can easily be accessed. The question is now, a) do I make this a
TNotifyEv
...snip...
Well, I have no idea. As far as I know, the 'total' is only needed for
display purposes in a paging grid. You'd need to run a second query
which
counts the number of records that would be returned if no paging was
requested.
Michael.
I understand.
However, how do we send back our ow
...snip...
2. How can I provide the correct "total" for the response if I only
loaded exactly the records requested by ExtJS into the dataset but not
the whole table?
Ex: Have a table with 1000 records, I'm on page 2 of the grid that has
a page limit of 50 records.
Of the total 1000 records, only
Hi,
1. Should not the JSON replies have a "total" returned always like the
XML replies?
Right now "total" is not returned if the "start"/"limit" is not passed
to the formatter.
2. How can I provide the correct "total" for the response if I only
loaded exactly the records requested by ExtJS i
..snip...
We can add the "rows" for convenience, but nevertheless the error handler
must also handle the 'response' case.
Michael.
Hi Michael,
I've created an updated ExtJS error handler for the demo programs that
handle all these response messages from FCL-web without the need to
change th
...snip...
I don't 100% agree: the exception() handler must also be able to handle
'response'.
If there is a server crash or so (which will result in a 500 error code)
, it must also be able to handle that.
We can add the "rows" for convenience, but nevertheless the error handler
must also hand
...snip...
> ExtJS however, will only have 'remote' type if the server response is
proper for it (having a root /which is "rows"/ in our case), all other
cases instead of 'remote' it has the type 'response', regardless of our
"success" property being true or false.
>
>Unfortunately, the ExtJS
did some more testing:
ROUND 4
1. minor note: We should not forget that field names are case sensitive
in ExtJS, so any database field names need to be entered exactly:
ex:
fields: ["id","login","name","email", "lastlogin"]
is not the same as
fields: ["ID","LOGIN","NAME","EMAIL", "
On 6/7/2010 16:40, Leonardo M. Ramé wrote:
Hi, when I use html templates with tags that contains inner tags, the
ReplaceTag event is fired only once, for the 1st order tag, but not for
the inner tags.
Example, a home page containing a header (a tag) and a body which
contains another tag like, fo
Hi, is it possible to call actions this way?:
http://host/cgi-bin/myprog/action1
instead of
http://host/cgi-bin/myprog?action=action1
I thougth that the designed behavior was to call any action by its name like:
http://host/cgi-bin/myprog/action1
http://host/cgi-bin/myprog/action2
But that w
On 5/4/2010 11:40, Vincent Snijders wrote:
Jonas Maebe schreef:
On 04 May 2010, at 15:29, Graeme Geldenhuys wrote:
So to be able to compile Win64 apps, we need two installations. The
Win64 download (17MB) and the i386 download (35MB).
* now installation is more complex than it needs to be.
It seems it got closed, but I'm not sure it is really fixed (can't add
notes now).
http://bugs.freepascal.org/view.php?id=12594
In D5 the DFM files are something like this with bitbuttons:
.
.
.
object BitBtn1: TBitBtn
Left = 96
Top = 52
Width = 75
Height = 25
TabOrder = 1
Thanks for the help.
It appears that the GetLastOSError is 9 for these errors.
In the errno.inc for Linux, that is
ESysEBADF = 9;{ Bad file number }
I'm not exactly sure what this means though.
Right now as a workaround, when this happens, I do a sleep(100) and
retry the page genera
294692
For now, I'm retrying again the page generation if an exception happens.
So far seems to be working, but will need more time to really see. It
was rare to happen.
AB
On 3/14/2010 16:08, Jonas Maebe wrote:
On 14 Mar 2010, at 23:39, ABorka wrote:
I have a CGI application with a data
Hi,
I have a CGI application with a datamodule that is using templates to
generate the response pages (accessing a MySQL database through ZEOS).
Every once in a while, I'm getting an "Unable to open file" exception
that points to one of the templates the website is using.
What could be the pr
When creating a web application, for example CGI Application in Lazarus,
and adding an action to the web module, the automatically generated
procedure name only contains a number and not the given action name.
For example, creating an action with a name ABC will generate a
OnRequest procedure
Thanks Jonas, using 2.4.0 for the 1st compile worked.
I guess I shouldn't wait months before recompiling the latest SVN :)
On 2/13/2010 02:15, Jonas Maebe wrote:
On 13 Feb 2010, at 11:10, ABorka wrote:
My ppc386.exe is v2.5.1 compiled back in September
Building FPC svn trunk has a
My ppc386.exe is v2.5.1 compiled back in September
Is there a place when I can download the newer binary files/utils needed
for the compile if that is the problem?
On 2/13/2010 01:56, Jonas Maebe wrote:
On 13 Feb 2010, at 03:06, ABorka wrote:
gives the following error for "make all&
gives the following error for "make all" (win xp 32bit)
C:/pp/bin/i386-win32/ppc386.exe -Ur -Xs -O2 -n -Fui386 -Fusystems
-FuC:/.../fpc_svn/rtl/units/i386-win32 -Fii386 -FE. -FUi386/u
nits/i386-win32 -dRELEASE -di386 -dGDB -dBROWSERLOG -Fux86 pp.pas
optcse.pas(166,24) Warning: Converting point
I am trying to make a working example for FCGI with Apache 2.2 on
Windows but does not seem to be successful.
Created a simple FCGI program with 1 action replying with a "hello
world" as a response to the http request.
However, could not find any examples as how to set up the Apache
httpd.co
Fresh lazarus svn checkout rev21988 on Linux
Compiling lazconfigstorage.pas
lresources.pp(2250,17) Error: Identifier not found "vaQWord"
lresources.pp(2250,17) Error: Constant Expression expected
lresources.pp(2250,17) Error: duplicate case label
lresources.pp(5514) Fatal: There were 3 errors co
Well, according to Apple the number is 50M :
http://www.theiphoneblog.com/2009/09/10/apple-music-event-numbers-30m-iphones-20m-ipod-touches-75k-apps-18b-downloads/
dmitry boyarintsev wrote:
But $1K is peanuts if the finished application will be presented to 30-40
million people for download.
You guys are correct about the pricing, of course.
But $1K is peanuts if the finished application will be presented to
30-40 million people for download.
Considering what I read about obj C development... I think many
people/companies would happily pay the price to have some nice language
for
How is freepascal's iphone development compares to this latest mono way
of creating native iphone apps?
http://arstechnica.com/open-source/news/2009/09/monotouch-drops-net-into-apples-walled-app-garden.ars
Reading the wiki it is not really a snap to set it up to be able to
develop iphone apps.
lNet latest SVN revision 2316 gives
.
.
.
Target OS: Win32 for i386
Compiling ludp.pp
ludp.pp(84,26) Error: Identifier not found "LADDR_BR"
ludp.pp(116) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
.
.
.
with the latest FPC svn rev 13686
Aleš Katona wrote:
W
No, just with the latest FPC/Lazarus SVN
Vincent Snijders wrote:
ABorka schreef:
Hi,
Trying to send emails and load web pages from Lazarus/FPC programs.
Since the latest Indy cannot be compiled and used in
Lazarus/Freepascal at the moment (it seems at least so), I have tried
to start using
Hi,
Trying to send emails and load web pages from Lazarus/FPC programs.
Since the latest Indy cannot be compiled and used in Lazarus/Freepascal
at the moment (it seems at least so), I have tried to start using lNet.
However, it seems it does not compile either.
The lNet SVN gives:
.
.
.
Compi
e) but its exported function isn't called,
I'm using the same code ABorka used in this example.
This is my configuration:
Free Pascal Compiler version 2.2.4-3 [2009/06/03] for i386
Copyright (c) 1993-2008 by Florian Klaempfl
Linux debian 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686
Done as
http://bugs.freepascal.org/view.php?id=13965
Joost van der Sluis wrote:
Op woensdag 10-06-2009 om 17:19 uur [tijdzone -0700], schreef ABorka:
Adding fcgi-support was only two hours work. Other systems can be added
> as wel. Next on my list is a native web-server using lnet, so t
If the "custom" variants need to stay then the descriptions for each
must state exactly what is the difference between the custom and not
custom and when they should be used.
Currently, anyone who is not an FPC/Lazarus professional developer
already, cannot decide based on the description.
I d
> Adding fcgi-support was only two hours work. Other systems can be added
> as wel. Next on my list is a native web-server using lnet, so that
> debugging is even easier. (I'm absolutely sure that posting all messages
> about fcl-web not supportinf fcgi was more work then actually adding the
> sup
fillchar(tmp, sizeof(tmp), #0);
gives the Hint: Local variable "tmp" does not seem to be initialized
message upon compilation, which should not happen because it is actually
the initialization.
___
fpc-devel maillist - fpc-devel@lists.freepascal.o
he
ShowMessage('Redirected to:' + dest);
should work as is. But it does not.
UTF8 and ANSI conversion problems cannot happen here because "dest" is a
URL so the UTF8 and ANSI characters are the same.
Jonas Maebe wrote:
On 24 May 2009, at 04:32, ABorka wrote:
In FPC/Lazaru
Hi,
I came across some strange thing while making a simple program using
Indy 10.
If I use an IdHTTP object to load a web page that redirects to another
one, the new destination URL is not passed properly through the event
handler.
Whether this is an indy or fpc problem, I'm not sure.
Here
Hi,
In /packages/fcl-web/src/fpweb.pp
line 445
Is the CheckSession(ARequest); intentionally included in the commented
out part, or a new line is needed before it?
Cheers
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepa
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)
I agree. The current ways to debug FPC/Lazarus programs are not up to
the standards even compared to 10-15 years ago Delphi debugging.
Most developers does not want to start digging the underlying
RTL/Component, etc. source codes to figure out what they should enter
into the watch window expre
anyone is
interested what is in there (don't panic, only about 50 something lines).
AB
Joost van der Sluis wrote:
Op zaterdag 28-02-2009 om 22:06 uur [tijdzone -0800], schreef ABorka:
I posted the following patch as
http://bugs.freepascal.org/view.php?id=13254
(includes the changes post
AB
Joost van der Sluis wrote:
Op zaterdag 28-02-2009 om 22:06 uur [tijdzone -0800], schreef ABorka:
I posted the following patch as
http://bugs.freepascal.org/view.php?id=13254
(includes the changes posted in 13250 and 13228 too)
It takes soo long before the patches are applied because they ar
Hi,
I posted the following patch as
http://bugs.freepascal.org/view.php?id=13254
(includes the changes posted in 13250 and 13228 too)
1. Added: CGI and Apache applications' temporary uploaded files will be
deleted after a request is handled /html forms with file upload(s)/ so
the files are no
So when someone compiles the FPC from SVN, which httpd and apr sources
will be used for /packages/fcl-web/src/fpapache.pp ?
There are httpd13 httpd20 and httpd22 directories with some identical
unit names (httpd, apr) that are used in fpapache.pp .
Joost van der Sluis wrote:
Op donderdag 26-02-
Hi,
I stumped into a little confusing part regarding how it is determined
what source and unit files are used by Lazarus and the FPC compiler.
By moving my mouse over a function/procedure call, Lazarus displays the
source code file where that item is declared.
However, it seems that if there
oved, its just a simple rebuild Lazarus
from the Tools menu after a clean install.
Michael Van Canneyt wrote:
On Wed, 18 Feb 2009, ABorka wrote:
Hi,
I'm getting
"componenttreeview.pas(41,18) Fatal: Can't find unit ComponentTreeView used by
ObjectInspector"
On this compu
Hi,
I'm getting
"componenttreeview.pas(41,18) Fatal: Can't find unit ComponentTreeView
used by ObjectInspector"
On this computer (win32, XP) rebuilding Lazarus does not work.
Steps:
1. Clear all lazarus/fpc directories (except the c:\pp\bin\i386-win32\
so there's a working FPC compiler left
Nice thread - as always when unicode handling is brought up :)
There should really be a decision and feature list as soon as possible
so the implementation can go on. There is really no need to spend a year
on these decisions.
Proper unicode handling strategy/implementation with backward and
Hi,
Are strings not zero terminated? I have a function declared:
function myfunc(s :String; i: Integer):String;
When going through the string "s" with asm instructions, it does not
seem to have a zero byte at the end. Is this normal or something is not
OK (maybe now with utf8 strings as defau
True, but if the programs only run on PCs (Windows and Linux on Intel
processors in this case) it should work. Not everyone who considers
using FPC/Lazarus wants to run the compiled programs on 15 platforms.
Sometimes all that is needed is 1 platform.
There are some encrypting/decrypting functio
Thanks. It seems that
mov al, dl
as well as
xor al, dl
gives error too. I created a bug report
http://bugs.freepascal.org/view.php?id=12595
Daniël Mantione wrote:
Op Sat, 8 Nov 2008, schreef ABorka:
Hi,
I'm converting a Delphi program to FPC/lazarus and I did hit a snag
with a
Hi,
I'm converting a Delphi program to FPC/lazarus and I did hit a snag with
an asm code part (win32, latest fpc and lazarus svn trunk is used).
I know it is probably simple to fix, but I cannot seem to be able to
figure it out:
function something(s :String; i: Integer):String;
var tmp:Array[
It seems everything works now with the latest apache servers both on
Windows and Linux.
Submitted 3 patches:
fcl-web patch : http://bugs.freepascal.org/view.php?id=12373
fcl/packages/fcl-web/
httpd22 patch : http://bugs.freepascal.org/view.php?id=12374
fcl/packages/httpd22/
lazarus patch : ht
.2.8, didn't test on 2.2.3) even with
the exports changes. Even with only 1 default action in the web module
saying "hello world" when called.
Felipe Monteiro de Carvalho wrote:
On 10/5/08, ABorka <[EMAIL PROTECTED]> wrote:
If the assignfile is called, it already screws the
p and waiting.
Any thoughts?
AB
Jonas Maebe wrote:
On 24 Sep 2008, at 10:58, ABorka wrote:
I'm not sure that something is changed to make it incompatible.
The apache modules compiled on windows are only crashing if multiple
requests are coming at the same time, and they are crushing at
Hi Felipe,
The problem is only there (checked now on apache 2.2.3 also with the
latest svn fpc /11864/ and lazarus /16875/ trunk) if
{$ifdef WINDOWS}//!! not needed
exports test_module name 'test_module1';
{$endif}//!! not needed
is there. If the ifdef is removed and the exports instr
:)
The C example still works with ap_hook_handler, maybe they made it a
macro or something?
I believe the translation was for apache 2.2.3 header files, based on
the ap_mmn.inc included in fpc/packages/httpd22
In the comments there we can see
* 20051115.2 (2.2.2) added inreslist member to
ed by apache.
Felipe Monteiro de Carvalho wrote:
On Thu, Oct 2, 2008 at 10:53 PM, ABorka <[EMAIL PROTECTED]> wrote:
It works under Windows with apache 2.2.9 which is even newer version, but
not on Linux with apache 2.2.8 . Is it still needed to be checked on older
Apache versions?
Yes, i
It works under Windows with apache 2.2.9 which is even newer version,
but not on Linux with apache 2.2.8 . Is it still needed to be checked on
older Apache versions?
Felipe Monteiro de Carvalho wrote:
On Thu, Oct 2, 2008 at 10:14 PM, ABorka <[EMAIL PROTECTED]> wrote:
Any suggesti
;t locate API module structure").
The length of module_struct (module = module_struct) is correct compared
to the C compiled working apache modules.
Did these example programs work before fpc supported "exports test_module"?
Jonas Maebe wrote:
>
> On 28 Sep 2008, at 10:15, A
programs
included in the fcl package directory httpd22/examples)
The record length for module_struct and request_rec are the same for the
fpc compiled apache module and a C compiled module, still the fpc
compiled one does not work.
Marco van de Voort wrote:
In our previous episode, ABorka said:
On
empty web page
is returned. Everything works under Windows, but not on Linux.
ABorka wrote:
On Linux (Ubuntu 8.04), latest SVN, in fpc/packages/httpd22/...
in httpd.inc inside request_rec:
{ body byte count, for easy access }
bytes_sent: apr_off_t;
{ Last modified time of the
On Linux (Ubuntu 8.04), latest SVN, in fpc/packages/httpd22/...
in httpd.inc inside request_rec:
{ body byte count, for easy access }
bytes_sent: apr_off_t;
{ Last modified time of the requested resource }
mtime: apr_time_t;
in apr.pas :
apr_off_t = Int64;
apr_int64_t = Int64
Nevermind, on Ubuntu the request_rec is only 384 bytes for FPC instead
of 412.
But that still does not explain why the handler function is not even
getting called by apache.
ABorka wrote:
OK, after 4 days of pulling my (remaining) hair out I was able to
compile a basic C apache module on
OK, after 4 days of pulling my (remaining) hair out I was able to
compile a basic C apache module on Ubuntu 8.04 (apache 2.2.8).
It seems both fpc/lazarus (not working apache module) and the C compiled
(working apache module) one shows
sizeof(request_rec) = 412
sizeof(module_struct) = 56
So
In the apache module examples in /fpc/packages/httpd22/examples/ all of
them has a
"Free Pascal only supports exporting variables on Windows" note there
and something like
{$ifdef WINDOWS}
exports
test_module name 'test_module';
{$endif}
With Apache 2.2.8 and 2.2.9 (the two I can test) on Li
For me in Windows XP 32bit/ FPC (apache modules load properly):
sizeof(request_rec)=416
sizeof(module_struct)=56
For me in Ubuntu 8.04 32bit/ FPC (apache modules don't load):
sizeof(request_rec)=412
sizeof(module_struct)=56
Used exactly the same files to compile a project on Ubuntu but for some
Well, it seems we have some progress now.
The
WaitForThreadTerminate(BeginThread(@__dummythread), 300);
seems to fix it on Windows. At least for 2 concurrent requests. For some
reason Apache cannot seem to want to run more than 2 requests at a time.
If more comes in at a time, the first 2 start
I'm not sure that something is changed to make it incompatible.
The apache modules compiled on windows are only crashing if multiple
requests are coming at the same time, and they are crushing at
function/procedure returns (Yes, on Linux it is even worse, since no
module gets even loaded by apa
so ignored them.
The crash did not go away. At least on Windows, Apache loads the module
and executes it sometimes. On Linux the apache modules compiled don't
even load.
AB
Michael Van Canneyt wrote:
On Mon, 22 Sep 2008, ABorka wrote:
After some more debugging the result is even strang
multaneous caller.
When the procedure contains any try/except it is guaranteed not
returning (crashing) after the work is finished for the 2nd caller (2nd
simultaneaous request).
The first simultaneous caller always works without a problem.
Any suggestions?
ABorka wrote:
win32, latest L
1 - 100 of 112 matches
Mail list logo