Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 6849 invoked from network); 29 May 2008 04:55:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 May 2008 04:55:00 -0000 Received: (qmail 5814 invoked by uid 500); 29 May 2008 04:55:02 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 5791 invoked by uid 500); 29 May 2008 04:55:02 -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 5780 invoked by uid 99); 29 May 2008 04:55:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 21:55:01 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 207.173.203.201 is neither permitted nor denied by domain of david@kineticode.com) Received: from [207.173.203.201] (HELO smtp.kineticode.com) (207.173.203.201) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 May 2008 04:54:11 +0000 Received: from [192.168.1.104] (c-24-21-175-208.hsd1.mn.comcast.net [24.21.175.208]) by smtp.kineticode.com (Postfix) with ESMTPSA id 016EF5081C1; Wed, 28 May 2008 21:49:07 -0700 (PDT) Cc: dev@perl.apache.org Message-Id: <1FE3EC41-B1B7-4AB0-9DFB-8687F622C4ED@kineticode.com> From: "David E. Wheeler" To: Philippe M. Chiasson In-Reply-To: <481030D5.9030702@ectoplasm.org> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v924) Subject: Re: Bus Error with mod_perl 2.04 Date: Wed, 28 May 2008 21:54:26 -0700 References: <9EE60171-AE84-47B8-B72F-607AE4D3EB14@kineticode.com> <480EEB44.3050206@ectoplasm.org> <481030D5.9030702@ectoplasm.org> X-Mailer: Apple Mail (2.924) X-Virus-Checked: Checked by ClamAV on apache.org On Apr 24, 2008, at 00:03, Philippe M. Chiasson wrote: > Nah, the core file by itself is not exactly super usefull. You just =20= > have > to figure out how to get a debugging build. Also, I've tried to =20 > reproduce > this on OS X/Apache 2.2.8 prefork/ Perl 5.10 without any luck. > > Can you post the exact details on how you built each of these ? > > For me, it goes something like: > > perl> ./Configure -des \ > -Doptimize=3D-g \ > -Dprefix=3D$HOME/opt/perl.org/perl/5.10.0/debug For me: perl-5.10.0> sh Configure -des \ -Duseshrplib\ -Dprefix=3D/usr/local/perl-5.10.0.d \ -Doptimize=3D'-g' > apache> CFLAGS=3D"-g" ./configure \ > --with-included-apr \ > --with-mpm=3Dprefork \ > --enable-maintainer-mode \ > --enable-modules=3Dall \ > --neable-mods-shared=3Dmax \ > --prefix=3D$HOME/opt/apache.org/httpd/2.2.8/prefork-debug For me: httpd-2.2.8>export CPPFLAGS=3D"-I/usr/local/include" export LDFLAGS=3D"-L/usr/local/lib" export CFLAGS=3D"-DAP_UNSAFE_ERROR_LOG_UNESCAPED -g" ./configure \ --prefix=3D/usr/local/apache2 \ --with-mpm=3Dprefork \ --enable-dav \ --enable-dav-fs \ --enable-log-config \ --enable-authn-file \ --enable-authz-host \ --enable-authz-group \ --enable-authz-user \ --prefix=3D/usr/local/apache2.d \ --enable-mods-shared=3D"rewrite info worker proxy deflate mod_auth =20 include ssl env mime-magic auth_digest expires dav dav_fs perl" So I added the -g to CFLAGS. I didn't have that before. Instead I used =20= --enable-maintainer-mode as documented in = http://perl.apache.org/docs/2.0/devel/debug/c.html#Analyzing_Dumped_Core_F= iles Is that out of date, perhaps? > mod_perl> perl Makefile.PL \ > MP_APXS=3D$HOME/opt/apache.org/httpd/2.2.8/prefork-debug/bin/apxs > MP_MAINTAINER=3D1 \ > MP_DEBUG=3D1 For me: mod_perl-2.0.4>/usr/local/perl-5.10.0.d/bin/perl Makefile.PL \ MP_AP_PREFIX=3D/usr/local/apache2.d \ MP_MAINTAINER=3D1 \ MP_PROMPT_DEFAULT=3D1 \ The above URL doesn't have the MP_MAINTAINER=3D1 bit, but I followed =20 your lead. Should it have that? Ah, bloody hell! Now I get this: # make cd "src/modules/perl" && make cc -I/usr/local/src/mod_perl-2.0.4/src/modules/perl -I/usr/local/src/=20 mod_perl-2.0.4/xs -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/=20 local/apache2.d/include -fno-common -DPERL_DARWIN -no-cpp-precomp -=20 DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/=20 local/perl-5.10.0.d/lib/5.10.0/darwin-2level/CORE -DMOD_PERL -Wall -=20 Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror =20= -Wdeclaration-after-statement -DMP_COMPAT_1X -DMP_DEBUG -DMP_TRACE -=20 DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g \ -c mod_perl.c && mv mod_perl.o mod_perl.lo In file included from /usr/local/perl-5.10.0.d/lib/5.10.0/=20 darwin-2level/CORE/perl.h:2382, from modperl_perl_includes.h:65, from modperl_common_includes.h:24, from mod_perl.h:21, from mod_perl.c:17: /usr/local/perl-5.10.0.d/lib/5.10.0/darwin-2level/CORE/handy.h:85:1: =20 error: "bool" redefined In file included from /usr/include/mach-o/dyld.h:29, from /usr/include/apr-1/apr_portable.h:166, from /usr/local/apache2.d/include/http_protocol.h:31, from modperl_apache_includes.h:30, from mod_perl.h:20, from mod_perl.c:17: /usr/lib/gcc/i686-apple-darwin9/4.0.1/include/stdbool.h:36:1: error: =20 this is the location of the previous definition cc1: warnings being treated as errors In file included from modperl_perl_includes.h:65, from modperl_common_includes.h:24, from mod_perl.h:21, from mod_perl.c:17: /usr/local/perl-5.10.0.d/lib/5.10.0/darwin-2level/CORE/perl.h:3969: =20 warning: function declaration isn=92t a prototype In file included from modperl_io_apache.h:22, from modperl_io.h:20, from mod_perl.h:83, from mod_perl.c:17: /usr/local/perl-5.10.0.d/lib/5.10.0/darwin-2level/CORE/perliol.h:173: =20= warning: function declaration isn=92t a prototype mod_perl.c: In function =91modperl_response_handler=92: mod_perl.c:1019: warning: unused variable =91rcfg=92 make[1]: *** [mod_perl.lo] Error 1 make: *** [modperl_lib] Error 2 WTF? I could have sworn I built a debugging mod_perl before. Could it =20= be choking on Perl 5.10 here, too? Thanks, David= --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org