Return-Path: Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 87544 invoked by uid 500); 6 May 2003 06:30:28 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 87530 invoked from network); 6 May 2003 06:30:27 -0000 Received: from smtp21.singnet.com.sg (165.21.101.201) by daedalus.apache.org with SMTP; 6 May 2003 06:30:27 -0000 Received: from shou.sg.ectoplasm.org (bb-203-125-34-134.singnet.com.sg [203.125.34.134]) by smtp21.singnet.com.sg (8.12.9/8.12.9) with ESMTP id h466UXd9005906; Tue, 6 May 2003 14:30:34 +0800 Received: by shou.sg.ectoplasm.org (Postfix, from userid 500) id D199DB88A6; Tue, 6 May 2003 14:30:32 +0800 (SGT) Subject: Re: OBSD update From: "Philippe M. Chiasson" To: Stas Bekman Cc: Carl Brewer , mod_perl Dev In-Reply-To: <3EB73275.8060602@stason.org> References: <3EB7197D.7040706@bl.echidna.id.au> <3EB71C59.60005@stason.org> <1052190563.20964.23.camel@shou.sg.ectoplasm.org> <3EB73275.8060602@stason.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ooRLqKtzYLhaufB/h/nh" Organization: Message-Id: <1052202632.32695.11.camel@shou.sg.ectoplasm.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 06 May 2003 14:30:32 +0800 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=-ooRLqKtzYLhaufB/h/nh Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2003-05-06 at 11:56, Stas Bekman wrote: > Philippe M. Chiasson wrote: >=20 >=20 > Great work, Philippe. Later when we work our the details please apply the= =20 > Apache::Test and mod_perl 2.0 patches separately as they now each have a=20 > separate Changes file and separate lives on CPAN. >=20 > > 1. On my machine, by default, the max file descriptors is set to 64, an= d > > it's not sufficient, 128 did it. >=20 > If this is crucial, we need to run a check and warn/croak if that's the c= ase. That's relatively easy, sure can. > > 2. By default, httpd(well, apr) will build with IPv6 support and > > IPv4-mapped addresses disabled. So the generated httpd.conf et all, whe= n > > they say Listen 8530, you end up with a listening socket on ::1, IPv6 > > only. So, of course, all the tests explode with connection failed, etc. > > Small patch to the configuration generation fixes this, as I couldn't > > figure out a way to figure out if IPv4-mapping is enabled or not > > reliably. >=20 > OK >=20 > > 3. ranlib is not needed on this architecture, and explodes with the > > strange warning: Inappropriate file type or format, so I fixed the > > generated makefiles to skip it on OpenBSD >=20 > Yes, it shouldn't have been set. Look at the Linux implementation, it's s= et to=20 > ':' in Makefile, rather than skipped. Sure, but for the love of god, what sets it to ':'. Couldn't find it after a quick grep session... > > 4. Can't make symbols global at DynaLoader warning. As pointed out in > > the past, this is just a warning triggered by perl because we want > > RTLD_GLOBAL, but OpenBSD doesn't implement it. Patched the 2 Const.pm t= o > > work around it to avoid the warning as well >=20 > +1, but probably >=20 > > 5. LD_LIBRARY_PATH. This one is the only one I don't understand quite > > yet. By default, it's set to /usr/local/lib:/usr/X11R6/lib on my > > machine. And the perl that ships with my OpenBSD will simply segfault i= n > > a completely bogus way: > >=20 > > (gdb) bt > > #0 0x400078cf in end () > > #1 0x40013060 in end () > > #2 0x400074a8 in end () > > #3 0x40007182 in end () > > #4 0x400085bd in end () > >=20 > > The secret to fixing it for me so far, has been to make sure > > /usr/X11R6/lib isn't in my LD_LIBRARY_PATH. At this point, all attempts > > to figure out WHY have failed miserably. >=20 > yes, this is big pain, probably need to support that internally, or compl= ain=20 > aloud if there is a mismatch. Well, I've narrowed it down for me to /usr/X11R6/lib. LD_LIBRARY_PATH=3D/usr/local/lib works find LD_LIBRARY_PATH=3D/usr/local/lib:/usr/X11R6/lib explodes... Doesnt' make much sense, as adding a include dir to the path shouldn't change a thing... /me ponders... > RE: patch: >=20 > Please add Changes and Apache-Test/Changes patches... and please commit e= ach=20 > change separately. Oups, forgot about that. Will do. > >>Index: lib/Apache/Build.pm > >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v > >>retrieving revision 1.121 > >>diff -b -B -u -r1.121 Build.pm > >>--- lib/Apache/Build.pm 22 Apr 2003 08:32:59 -0000 1.121 > >>+++ lib/Apache/Build.pm 6 May 2003 03:03:48 -0000 > >>@@ -25,6 +25,7 @@ > >> use constant AIX =3D> $^O eq 'aix'; > >> use constant DARWIN =3D> $^O eq 'darwin'; > >> use constant HPUX =3D> $^O eq 'hpux'; > >>+use constant OPENBSD =3D> $^O eq 'openbsd'; > >> use constant WIN32 =3D> $^O eq 'MSWin32'; > >>=20 > >> use constant MSVC =3D> WIN32() && ($Config{cc} eq 'cl'); > >>@@ -1050,7 +1051,7 @@ > >>=20 > >> my $ranlib =3D "\t" . '$(MODPERL_RANLIB) $@'; > >>=20 > >>- $link .=3D "\n" . $ranlib unless DARWIN; > >>+ $link .=3D "\n" . $ranlib unless (DARWIN or OPENBSD); > >>=20 > >> $link; > >> } >=20 > or $(MODPERL_RANLIB) constant should be set to ':'. I don't understand wh= y the=20 > special case for DARWIN/OPENBSD, but linux doesn't really use it, and the= =20 > solution is different? Well, DARWIN was already there, and I just slapped OpenBSD to it. Just find out where the MODPERL_RANLIB =3D> ':' comes from and I'll change it. > >>Index: t/response/TestApache/conftree.pm > >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >>RCS file: /home/cvs/modperl-2.0/t/response/TestApache/conftree.pm,v > >>retrieving revision 1.5 > >>diff -b -B -u -r1.5 conftree.pm > >>--- t/response/TestApache/conftree.pm 29 Jan 2003 03:56:00 -0000 1.5 > >>+++ t/response/TestApache/conftree.pm 6 May 2003 03:03:55 -0000 > >>@@ -27,9 +27,9 @@ > >>=20 > >> ok $tree; > >>=20 > >>- my $port =3D $tree->lookup('Listen'); > >>+ my $listen =3D $tree->lookup('Listen'); > >>=20 > >>- ok t_cmp($vars->{port}, $port); > >>+ ok t_cmp('0.0.0.0:'.$vars->{port}, $listen); > >>=20 > >> my $documentroot =3D $tree->lookup('DocumentRoot'); >=20 > shouldn't this be coded as a variable in Apache/TestConfig? I mean: >=20 > $vars->{ip_address} or something like that? Yeah, probably should. > Also do we have the same problem with mp1? Don't think so, as apache-1/mp1 wouldn't be using IPv6 by default, wouldn't it ? (I'll verify that later on) > __________________________________________________________________ > 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 --=20 Philippe M. Chiasson --=-ooRLqKtzYLhaufB/h/nh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+t1aIyzKhB4jDpaURAkRnAKCFghSaoEmUjMZCvHFvjJQkFgmgmACeMGcH 15x0t4NOZZ5pNdy/6hWkonQ= =2jfZ -----END PGP SIGNATURE----- --=-ooRLqKtzYLhaufB/h/nh--