Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 22673 invoked from network); 11 May 2005 04:31:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2005 04:31:52 -0000 Received: (qmail 43635 invoked by uid 500); 11 May 2005 04:35:28 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 43623 invoked by uid 500); 11 May 2005 04:35:27 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 43608 invoked by uid 99); 11 May 2005 04:35:27 -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 mail.logilune.com (HELO mail.logilune.com) (195.80.154.36) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 10 May 2005 21:35:27 -0700 Received: from [127.0.0.1] (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 56758D6DF4; Wed, 11 May 2005 06:31:44 +0200 (CEST) Message-ID: <42818AAC.2050408@stason.org> Date: Wed, 11 May 2005 00:31:40 -0400 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050322 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Stas Bekman CC: mod_perl Dev Subject: Re: [mp2] mismatch in perl modules mmn References: <428040D6.7020608@stason.org> In-Reply-To: <428040D6.7020608@stason.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stas Bekman wrote: > Hmm, for some reason I get t/api/module.t failing on perl's test modules > when buildiing with 2.0.49: > > my $mmn_major = $cfg->{httpd_info}{MODULE_MAGIC_NUMBER_MAJOR}; > my $mmn_minor = $cfg->{httpd_info}{MODULE_MAGIC_NUMBER_MINOR}; > for (my $modp = $top_module; $modp; $modp = $modp->next) { > my $name = $modp->name; > ok $name; > t_debug("Testing module: " . $modp->name); > ok t_cmp $modp->ap_api_major_version, $mmn_major; > # fails the next line > ok $modp->ap_api_minor_version <= $mmn_minor; > t_debug(sprintf "minor: api=%d, mmn_=%d", > $modp->ap_api_minor_version, $mmn_minor); > ok $modp->module_index >= 0; > my $cmds = $modp->cmds; > ok !defined($cmds) || ref($cmds) eq 'Apache2::Command'; > } > > > # Testing module: TestDirective::perlloadmodule4 > # expected: 20020903 > # received: 20020903 > ok 49 > not ok 50 > # minor: api=9, mmn_=7 > ok 51 > ok 52 > ok 53 > > apache modules are just fine: > > # Testing module: core.c > # expected: 20020903 > # received: 20020903 > ok 289 > ok 290 > # minor: api=7, mmn_=7 > ok 291 > ok 292 > > gozer, what your smokes say? or is it still a planned thing to set up > things for modperl? OK, I see the reason for this problem, we get includes for unrelated source directories. I build with: perl Makefile.PL MP_GENERATE_XS=1 MP_USE_DSO=1 MP_DEBUG=1 MP_TRACE=1 MP_USE_GTOP=0 MP_APXS=/home/stas/httpd/prefork-2.0.49/bin/apxs MP_CCOPTS='-DMP_IOBUFSIZE=16384' MP_MAINTAINER=1 && make && make test So it should use the include dir -I/home/stas/httpd/prefork-2.0.49/include/ but instead it includes -I/home/stas/apache.org/modperl-2.0/../httpd-2.0/include, which it shouldn't even know about. Looks like again we get hit by too much guesswork. As a result of that mod_perl get compiled with the wrong includes. -- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org