Sign in Join

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

Mailing lists / fpc-devel / 2006-07

Apache headers

19 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

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

Felipe Monteiro de Carvalho

Hello,

I am translating the headers for apache 2.0.58 (should work with any 2.0.x), specifically to generate Apache modules with Free Pascal.

My question is: Do you guys want this to be included on fpc? If not I can just add it to Lazarus Code and Component repository. Either way is good for me.

thanks,

Felipe Monteiro de Carvalho

Reply by email

Graeme Geldenhuys
to Felipe Monteiro de Carvalho

Seing that is is a non-visual set of classes/API's, I would think that FPC is the best place for it to live. After all, FPC already contains other header translations as well as CGI units.

Graeme.

Felipe Monteiro de Carvalho wrote 16 lines
Hello, I am translating the headers for apache 2.0.58 (should work with any 2.0.x), specifically to generate Apache modules with Free Pascal. My question is: Do you guys want this to be included on fpc? If not I can just add it to Lazarus Code and Component repository. Either way is good for me. thanks, -- Felipe Monteiro de Carvalho _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel
There's no place like 127.0.0.1

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho: I am translating the headers for apache 2.0.58 (should work with any 2.0.x), specifically…
Felipe Monteiro de Carvalho wrote 8 lines
Hello, I am translating the headers for apache 2.0.58 (should work with any 2.0.x), specifically to generate Apache modules with Free Pascal. My question is: Do you guys want this to be included on fpc? If not I can just add it to Lazarus Code and Component repository. Either way is good for me.

Oh YES !! :-)

I _ASBOLUTELY_ want this in FPC. It's GREAT news that you translated them, Wonderful job !!

Michael.

Reply by email

Vincent Snijders
to Michael Van Canneyt
Michael Van Canneyt wrote 17 lines
On Mon, 3 Jul 2006, Felipe Monteiro de Carvalho wrote: > Hello, > > I am translating the headers for apache 2.0.58 (should work with any > 2.0.x), specifically to generate Apache modules with Free Pascal. > > My question is: Do you guys want this to be included on fpc? If not I > can just add it to Lazarus Code and Component repository. Either way > is good for me. Oh YES !! :-) I _ASBOLUTELY_ want this in FPC. It's GREAT news that you translated them, Wonderful job !!

Are they going to be in 2.0.4? If not, I _ABSOLUTELY_ ( ;-) )want them available as a separate download from Lazarus-CCR.

Vincent

Reply by email

Peter Vreman
to Vincent Snijders
Show quoted text 16 lines
>> I am translating the headers for apache 2.0.58 (should work with any >> 2.0.x), specifically to generate Apache modules with Free Pascal. >> >> My question is: Do you guys want this to be included on fpc? If not I >> can just add it to Lazarus Code and Component repository. Either way >> is good for me. > > Oh YES !! :-) > > I _ASBOLUTELY_ want this in FPC. It's GREAT news that you translated > them, Wonderful job !! > Are they going to be in 2.0.4? If not, I _ABSOLUTELY_ ( ;-) )want them available as a separate download from Lazarus-CCR.

They are too late to be included in 2.0.4.

Reply by email

Vincent Snijders
to Peter Vreman
Peter Vreman wrote 16 lines
>>> I am translating the headers for apache 2.0.58 (should work with any >>> 2.0.x), specifically to generate Apache modules with Free Pascal. >>> >>> My question is: Do you guys want this to be included on fpc? If not I >>> can just add it to Lazarus Code and Component repository. Either way >>> is good for me. >> Oh YES !! :-) >> >> I _ASBOLUTELY_ want this in FPC. It's GREAT news that you translated >> them, Wonderful job !! >> > Are they going to be in 2.0.4? If not, I _ABSOLUTELY_ ( ;-) )want them > available as > a separate download from Lazarus-CCR. They are too late to be included in 2.0.4.

OK.

Felipe, can you put them on Lazarus CCR too, at least until the headers are part of a fpc release?

Vincent

Reply by email

Marco van de Voort
to Peter Vreman: They are too late to be included in 2.0.4.
> available as > a separate download from Lazarus-CCR. They are too late to be included in 2.0.4.

I agree. For the rest some clarification:

A hasty/late inclusion can work counterproductive, because if some prob is found that generally requires people to update , this means they have to deinstall the old one manually too, instead of just installing, with all risks (left behind ppu's) etc.

Therefore: Only include something in releases if it is usuable for the coming 6-9 months without updating.

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 6 lines
On 7/4/06, Vincent Snijders wrote: > Felipe, can you put them on Lazarus CCR too, at least until the headers are > part of > a fpc release? Sure I can =) I should have a first release in 1 week + some days.

Please send them to me when you are ready with them, then I'll put them in SVN for FPC.

Michael.

Reply by email

Felipe Monteiro de Carvalho
to Michael Van Canneyt

Hello,

The headers are now available for download. The are explanations about how to make a simple module, example code, internal details and a download link of the bindings here:

http://www.freepascal.org/wiki/index.php?title=FPC_and_Apache_Modules

I translated mod_example from apache source code, and latter I should translate other modules too. Most of my tests were on Windows, so it would be nice if people test on Unix.

The headers aren´t fully translated yet. I would say about 90% done, but is more then enougth for people to start playing with them. I will wait until the headers stabilize before sending for FPC subversion. Please submit bug reports!

There is also an easter egg! The apache libraries put some strange prefixes and suffixes on function names, like many c libraries do. So I developed a software to list all exported functions of a dll. I thought it could help others doing binding work, so I released it as a Lazarus example, here:
http://wiki.lazarus.freepascal.org/index.php/Libview

thanks a lot,

Felipe Monteiro de Carvalho

Reply by email

ik
to Felipe Monteiro de Carvalho

OT (more or less), I wish to create a very important mod for Apache that will divide error log based on virtual host. Do you know a good resource to use ? Does the current translated mod_example, can help me achieve that ?

Ido

Felipe Monteiro de Carvalho wrote 31 lines
Hello, The headers are now available for download. The are explanations about how to make a simple module, example code, internal details and a download link of the bindings here: http://www.freepascal.org/wiki/index.php?title=FPC_and_Apache_Modules I translated mod_example from apache source code, and latter I should translate other modules too. Most of my tests were on Windows, so it would be nice if people test on Unix. The headers aren´t fully translated yet. I would say about 90% done, but is more then enougth for people to start playing with them. I will wait until the headers stabilize before sending for FPC subversion. Please submit bug reports! There is also an easter egg! The apache libraries put some strange prefixes and suffixes on function names, like many c libraries do. So I developed a software to list all exported functions of a dll. I thought it could help others doing binding work, so I released it as a Lazarus example, here: http://wiki.lazarus.freepascal.org/index.php/Libview thanks a lot, -- Felipe Monteiro de Carvalho _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Felipe Monteiro de Carvalho
to ik
ik wrote
OT (more or less), I wish to create a very important mod for Apache that will divide error log based on virtual host. Do you know a good resource to use ? Does the current translated mod_example, can help me achieve that ?

I do plan to create some tutorials about technical details of modules, but for specific things like that I advise you to join the official apache-modules mailling list, for modules developers, and ask there:

http://httpd.apache.org/lists.html#http-modules

Or search the archives of that list. Because althought I translated the headers, I am not yet familiar of all details of modules.

thanks,

Felipe Monteiro de Carvalho

Reply by email

Michael Van Canneyt
to Felipe Monteiro de Carvalho: The headers are now available for download. The are explanations about how to make a…
Felipe Monteiro de Carvalho wrote 11 lines
Hello, The headers are now available for download. The are explanations about how to make a simple module, example code, internal details and a download link of the bindings here: http://www.freepascal.org/wiki/index.php?title=FPC_and_Apache_Modules I translated mod_example from apache source code, and latter I should translate other modules too. Most of my tests were on Windows, so it would be nice if people test on Unix.

Felipe, there is an easier way to export the variable on Linux. I've added a small entry to the Wiki page. I haven't been able to test it yet, but it should work as indicated

Michael.

Reply by email

Micha Nelissen
to Felipe Monteiro de Carvalho: The headers are now available for download. The are explanations about how to make a…
Felipe Monteiro de Carvalho wrote 5 lines
The headers are now available for download. The are explanations about how to make a simple module, example code, internal details and a download link of the bindings here: http://www.freepascal.org/wiki/index.php?title=FPC_and_Apache_Modules

I think using 'httpd' as unit name is a bit too generic. There are many more things httpd could mean besides Apache module headers. Maybe 'apache' or 'apache_mod' or so, instead.

Micha

Reply by email

Michael Van Canneyt
to Micha Nelissen
Micha Nelissen wrote 10 lines
Felipe Monteiro de Carvalho wrote: > The headers are now available for download. The are explanations about > how to make a simple module, example code, internal details and a > download link of the bindings here: > > http://www.freepascal.org/wiki/index.php?title=FPC_and_Apache_Modules I think using 'httpd' as unit name is a bit too generic. There are many more things httpd could mean besides Apache module headers. Maybe 'apache' or 'apache_mod' or so, instead.

Under Delphi, it's called httpd too; so from a compatibility point of view, this is not such a bad idea. (although it might be httpd2, for version 2)

Michael.

Reply by email

Felipe Monteiro de Carvalho
to Micha Nelissen: I think using 'httpd' as unit name is a bit too generic. There are many more things httpd…
Micha Nelissen wrote
I think using 'httpd' as unit name is a bit too generic. There are many more things httpd could mean besides Apache module headers. Maybe 'apache' or 'apache_mod' or so, instead.

I just used the same name the c headers use.

I also used just httpd instead of httpd2 because I plan to put each version of the headers (1.3, 2.0.x, 2.2.x) into one directory. So you can write a module, add unit httpd, and add the appropriate directory to the compiler search path and compile your module for one of this 3 possible versions.

thanks,

Felipe Monteiro de Carvalho

Reply by email

Inoussa OUEDRAOGO
to Inoussa OUEDRAOGO: COOL !!! That is a GOOD NEW. So it will be possible to make Web Services with FPC/Lazarus…

Hi

For the record, I just uploaded the 0.3.1 of the Web Service Toolkit with an Apache module sample ( tested on WinXP SP2, Apache 2.0.58 ) !

Question : Are there any chance to see the interface memory leak ( http://www.freepascal.org/mantis/view.php?id=7281 ) resolved in the upcoming fpc 2.0.4 ?

Thanks,
Regards, Inoussa.

2006/7/4, Inoussa OUEDRAOGO :

Show quoted text 8 lines
> Felipe Monteiro de Carvalho > Just for the record, my first Free Pascal Apache module just worked =) COOL !!! That is a GOOD NEW. So it will be possible to make Web Services with FPC/Lazarus for Apache! using the Web Service Toolkit ;-)

Reply by email