Re: Using APR based C++ classes in Apache2 module

2013-05-02 Thread Ralf Mattes
it? :-) Am I missing something here? No you, but your linker. Where is 'foo_register_config_ptr' defined? And before any further investigation: you don't by chance try to compile with a C++ compiler? If so, You know about name mangling? If not, it's time for some C vs. C++ readup HTH Ralf

graceful dead

2010-02-04 Thread Ralf Mattes
hello list, just a quick question: is there any Apache api to request from within a module a child process (or thread for that matter) to die? I have a module where returning 500 followed by a suicide seems to be the best way to deal with some error conditions. TIA Ralf Mattes

Re: Config File Lines not ASCII?

2008-12-02 Thread Ralf Mattes
meaning to the backslash? That's a jolly ol' C-thing (that java and similar languages happily copy). What is happening to these strings? Nothing - bat that seems to be expected. HTH Ralf Mattes Thanks

Re: mod_proxy chaining with a .pac file

2008-01-24 Thread Ralf Mattes
On Wed, 2008-01-23 at 22:19 +, Giovanni Donelli wrote: Are you talking about a JS lib or a code that does what I need, support for .pac proxy chaning? The later. Sorry, that library wasn't linked to from your original post, but it can be found on the wikipedia page. Here's a direct link:

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Ralf Mattes
On Wed, 2008-01-23 at 11:48 -0700, Joe Lewis wrote: Ralf Mattes wrote: On Wed, 2008-01-23 at 11:12 -0700, Joe Lewis wrote: Giovanni Donelli wrote: I am trying to make Apache follow the same rules as the browser Realize that the browser doesn't get

Re: Specifying a different target directory for APXS

2007-12-14 Thread Ralf Mattes
before? Can a target folder be specified or is that not possible? Never needed to change that part of the build process. HTT Ralf Mattes Any help is greatly appreciated. Subra On Dec 13, 2007 12:05 PM, Subra A Narayanan [EMAIL PROTECTED] wrote: Hello folks, I use the following

Re: Specifying a different target directory for APXS

2007-12-14 Thread Ralf Mattes
. I got the impression that everyone considered this a no-so-good idea HTH Ralf Mattes

Re: Strange segmentation fault

2007-07-30 Thread Ralf Mattes
On Mon, 2007-07-30 at 20:22 +0200, Mike wrote: On Mon, Jul 30, 2007 at 06:31:58PM +0200, [EMAIL PROTECTED] wrote: Sorry I don't understand the reply. You are telling me that it should be possibile or not? I always use r-pool to allocate memory in my module, but not for libxml2. It has

Re: Strange segmentation fault

2007-07-30 Thread Ralf Mattes
your server uses the prefork-mpm. Could you give me a hint to solve my problem? Best regards Enable core dumps and examine the core file - you might need to recompile at least your module with debugging information enabled. HTH Ralf Mattes Marco

Re: APXS question

2007-07-22 Thread Ralf Mattes
On Sun, 2007-07-22 at 11:32 -0400, Farokh Irani wrote: 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.

Re: APXS troubles

2007-07-20 Thread Ralf Mattes
On Fri, 2007-07-20 at 12:38 +0100, Jeremy Sowden wrote: Farokh Irani wrote: 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

Re: APXS troubles

2007-07-20 Thread Ralf Mattes
to work. Passing the '.libs/mod_fancy.o .libs/config.o' seems a quick fix. I wonder if it's worth the effort. NOTE: I've sucessfully compiled C++ modules, but 'I somehow always give my sorce files '*.c' extentions. HTH Ralf Mattes Kind regards.

Re: APXS troubles

2007-07-19 Thread Ralf Mattes
(@args) { if ($f =~ m|\.c$|) { Here, bad coder! BAD! push(@srcs, $f); } else { push(@objs, $f); } } HTH Ralf Mattes Thanks.

Re: APXS issue.

2007-07-18 Thread Ralf Mattes
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

Re: APXS issue.

2007-07-18 Thread Ralf Mattes
! ;-) Cheers, Ralf Mattes

Re: Debian 4 issue

2007-07-15 Thread Ralf Mattes
On Sun, 2007-07-15 at 10:44 -0400, Farokh Irani wrote: No - you are not! You are using g++-4... which is a C++ compiler. Are you aware of C++ name mangling? Did you declare your exported symbols 'extern C'? Um, yes, already done. extern C module AP_MODULE_DECLARE_DATA fancy_module;

Re: a thanks and C++ new overloading

2007-03-29 Thread Ralf Mattes
On Thu, 2007-03-29 at 08:44 -0400, Sam Carleton wrote: Folks, I want to say thank you for taking the time to help me out with getting my module up and going. It is so VERY refreshing to be developing in such a well thought out and structured environment. By day I am working in VB.Net on

Re: a thanks and C++ new overloading

2007-03-29 Thread Ralf Mattes
On Thu, 2007-03-29 at 10:39 -0400, Sam Carleton wrote: On 3/29/07, Ralf Mattes [EMAIL PROTECTED] wrote: Well, please consider all I say with a certain amount of doubt since I'm not a C++ developer (only did one C++ module, the rest was plain C) and favor C (or Obj. C) over C

Re: how to get started?

2007-03-27 Thread Ralf Mattes
On Tue, 2007-03-27 at 10:58 -0400, Sam Carleton wrote: On 3/27/07, Ralf Mattes [EMAIL PROTECTED] wrote: On Mon, 2007-03-26 at 22:05 -0400, Sam Carleton wrote: Ok folks, I am developing on Windows. I have VC6, VS2005, and Cygwin installed. I would prefer ot use VS2005, but VC6

Re: reference out of date?

2007-03-27 Thread Ralf Mattes
On Tue, 2007-03-27 at 13:20 -0700, John David Duncan wrote: Hi, It's a very useful book, even though it predates apache 2. Hmm, it sure was a very useful book until recently - since it pretty much was _the_ only book on Apache module development. I was always amazed at the lack of