Subject: Re: apache, ap-perl and pthread
To: tech-pkg@netbsd.org, Geert Hendrickx <ghen@telenet.be>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-pkg
Date: 03/15/2006 21:33:24
On Wed, Mar 15, 2006 at 12:49:25PM +0100, Jukka Salmi wrote:
> Geert Hendrickx --> tech-pkg (2006-03-15 12:00:05 +0100):
> > On Thu, Mar 09, 2006 at 06:04:37PM +0100, Manuel Bouyer wrote:
> > > since perl is compiled with threads by default, ap-perl doesn't work
> > > anymore with apache-1.3. This is because ap-perl is linked with threads
> > > and httpd isn't. Adding -lpthreads when linking httpd fixes this. For now
> > > I've done this by hand when building apache for the few servers where I
> > > still use apache-1.3 + mod_perl.
> > >
> > > What is the best way to fix this in pkgsrc (if we really want to fix it) ?
> >
> > Until a proper fix is found, we should at least *document* this: e.g.
> > adding something like "to use mod_perl, you must compile apache with
> > APACHE_CUSTOM_CFLAGS=-pthread in /etc/mk.conf" to www/ap-perl/MESSAGE.
>
> Manuel, is this with NetBSD prior to 2.0?
>
> I'm using apache-1.3.34nb6 (built from pkgsrc without any manual
> changes) on a NetBSD/i386 2.1_STABLE system, and httpd is linked with
> libpthread:
On on a 3.0_STABLE system.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--