Re: Module initialization

2007-08-02 Thread Farokh Irani
On Aug 1, 2007, at 1:48 PM, Farokh Irani wrote: I must just be dense, but I've spent a whole bunch of time trying to figure exactly how I can put initialization code into my module. It's code that needs to run only once when apache (2.2.x) is starting up, so any pointers would be appreciated

Idle time?

2007-08-02 Thread Farokh Irani
Does apache support calling modules at idle time, ie after a time interval when there's nothing going on, calling the modules so they can get some processing time? Thanks! -- Farokh MCF Software...simply dependably

Re: [EMAIL PROTECTED]: Re: Broken APXS]

2007-07-23 Thread Farokh Irani
- Forwarded message from Eric Covener [EMAIL PROTECTED] - On 7/22/07, Mike [EMAIL PROTECTED] wrote: Greetings. apxs accepts only *.c files as its input. For other extensions it doesn't invoke libtool in compile mode and several different issues leading to empty Apache module

APXS question

2007-07-22 Thread Farokh Irani
I'm trying to set up a makefile using apxs to compile and link a module and I'm running into a couple of problems. If I use the following command line: apxs -ic -S CC=g++ -n mod_fancy mod_fancy.cpp config.cpp everything works fine. In my makefile, I have the following (this is a partial):

Re: APXS question

2007-07-22 Thread Farokh Irani
On 7/22/07, Farokh Irani [EMAIL PROTECTED] wrote: /usr/local/apache2/bin/apxs -i -n mod_fancy .libs/mod_fancy.so .libs/config.so /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' .libs/mod_fancy.so /usr/local/apache2/modules /usr/local/apache2/build/libtool

Re: APXS troubles

2007-07-21 Thread Farokh Irani
On Fri, Jul 20, 2007 at 11:39:35PM -0400, Farokh Irani wrote: I took a further look at apxs, and it appears that the bad coding for the source files continues. In my apxs around line 406, you'll find the following: foreach $s (@srcs) { my $slo = $s; $slo =~ s|\.c

Re: APXS issue.

2007-07-21 Thread Farokh Irani
On Wed, 2007-07-18 at 07:23 -0400, Farokh Irani wrote: See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. -- chmod 755 /usr/local/libexec

Re: APXS troubles

2007-07-20 Thread Farokh Irani
On Fri, 2007-07-20 at 08:36 +0200, Mike wrote: if ($f =~ m|\.c$|) { Here, bad coder! BAD! I don't know perl at all, so those were stabs in the dark. Any pointers on that would be appreciated. Try: if( $f =~ m/\.c$|\.cpp$|\.cc$/ ) OK, I tried this and while

Re: APXS troubles

2007-07-20 Thread Farokh Irani
On Fri, 2007-07-20 at 14:39 +0200, Mike wrote: On 7/20/07, Farokh Irani [EMAIL PROTECTED] wrote: So, somewhere there is still something going on with .c vs .cpp. I'll poke at apxs a bit and see if I can figure out why, but a crash course in perl wasn't what I was looking at doing right

Debian 4 issue

2007-07-15 Thread Farokh Irani
I've set up a Debian 4 machine and I'm trying to compile/install a small test module. I'm using APXS2 as follows: apxs2 -ic -S CC=g++ -n mod_fancy mod_fancy.cpp config.cpp It compiles, and installs the mod_fancy.so file in /usr/lib/apache2/modules. But, when I try to get apache to load it, I

Re: Possibly OT: g++ 4.0.1 on Mac OS X

2007-07-06 Thread Farokh Irani
On 06/07/07, Farokh Irani [EMAIL PROTECTED] wrote: I'm trying to link together a couple of .o files into a .so file using g++. The problem is that even though I have a -o specified, no file is generated and no error comes up. Any pointers on how to figure out what might be going on, or even

Re: Just starting module development

2007-03-12 Thread Farokh Irani
Farokh Irani wrote: I'm trying to convert a plug-in that ran under WebSTAR as well as under Microsoft IIS to an Apache 2 module and I was wondering if anyone had any pointer or sample code that I should look at to make life easier. The WebSTAR code handles multiple threads (I haven't looked

Just starting module development

2007-03-05 Thread Farokh Irani
I'm trying to convert a plug-in that ran under WebSTAR as well as under Microsoft IIS to an Apache 2 module and I was wondering if anyone had any pointer or sample code that I should look at to make life easier. The WebSTAR code handles multiple threads (I haven't looked at the IIS code) so I