Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 9657 invoked from network); 2 May 2005 17:32:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2005 17:32:07 -0000 Received: (qmail 1530 invoked by uid 500); 2 May 2005 17:32:48 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 1406 invoked by uid 500); 2 May 2005 17:32:46 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 1366 invoked by uid 99); 2 May 2005 17:32:46 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from theoryx5.uwinnipeg.ca (HELO theoryx5.uwinnipeg.ca) (142.132.65.108) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 02 May 2005 10:32:46 -0700 Received: from theoryx5.uwinnipeg.ca (localhost.localdomain [127.0.0.1]) by theoryx5.uwinnipeg.ca (8.12.8/8.12.8) with ESMTP id j42HRHH3027660; Mon, 2 May 2005 12:27:17 -0500 Received: from localhost (randy@localhost) by theoryx5.uwinnipeg.ca (8.12.8/8.12.8/Submit) with ESMTP id j42HRH4F027656; Mon, 2 May 2005 12:27:17 -0500 Date: Mon, 2 May 2005 12:27:17 -0500 (CDT) From: Randy Kobes To: Octavian Rasnita cc: modperl@perl.apache.org, apreq-dev@httpd.apache.org Subject: Re: an unknown filter was not added: apreq2 In-Reply-To: <000501c54f37$bd5fe0a0$c2a2b451@ted> Message-ID: References: <000501c54f37$bd5fe0a0$c2a2b451@ted> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Mon, 2 May 2005, Octavian Rasnita wrote: > Hi, > > I have installed libapreq2 under Windows 2000 using ppm because I want to > use Apache2::Request. > > I have tried a simple module: > > package Test::Module; > > use strict; > use Apache2::RequestRec (); > use Apache2::RequestIO (); > use Apache2::Const -compile => ':common'; > use Apache2::Request (); > > sub handler { > my $r = shift; > > my $q = Apache2::Request->new($r); > > $r->content_type("text/html"); > > $r->print("test"); > > return Apache2::Const::OK; > } > > 1; > > I have assigned this handler to a certain path, and I have tested it, but > Apache was stopped with the following error window: > > Apache.exe - Application Error > The instruction at "0x028619b0" referenced memory at "0x0000000c". The > memory could not be "read". > > > I found the following errors in the error log: > [Mon May 02 19:04:54 2005] [error] an unknown filter was not added: apreq2 > [Mon May 02 19:04:56 2005] [notice] Parent: child process exited with status > 3221225477 -- Restarting. > [Mon May 02 19:04:57 2005] [notice] Apache/2.0.53 (Win32) PHP/5.0.0 > mod_perl/1.999.22 Perl/v5.8.6 configured -- resuming normal operations > ... > [Mon May 02 19:39:19 2005] [warn] (OS 64)The specified network name is no > longer available. : winnt_accept: Asynchronous AcceptEx failed. > > Do I need to use some special settings in httpd.conf in order to use > libapreq2, or there is a problem with libapreq2 (which seems to be in a > development phase)? It's true that libapreq2 is in a development phase, but it's sufficiently developed that the above basic error shouldn't occur. Have you specified, in httpd.conf, to load the module as LoadModule apreq_module modules/mod_apreq2.so (note that it's mod_apreq2.so, not mod_apreq.so). Also, for Win32, you may need LoadFile "/Path/to/libapreq2.dll" before that to load libapreq2.dll. If this doesn't help, are you using the mod_perl ppm package at http://theoryx5.uwinnipeg.ca/ppms/? Earlier mod_perl versions won't work with the libapreq2 ppm package (from the same site). > > Please tell me if it is a good idea to compile libapreq2 > under Windows using Visual Studio 6 instead of using that > package installed with ppm. or.... if there is another > method of getting the vars from query_string without > needing to parse it manually. If you have VC++ 6, then, in general, it's probably a good idea to compile extensions yourself, rather than relying on binary versions. Also, I've cc'd the apreq development list, as there may be people there who can help. -- best regards, randy kobes