Subject: Re: apache 1.3 crashing when I enable PERL?
To: None <>
From: brad harder <>
List: netbsd-users
Date: 04/22/2007 17:26:06
On Sat, Apr 21, 2007 at 04:12:22PM +0200, Wouter Schoot wrote:
> Francisco Valladolid Hdez. schreef:
> > The  problem is that perl is compiled with thread
> > enabled and apache don't, try to enable threads in
> > apache.
> hm interesting. How did you find out about this, and can this be pkgsrc
> interceptable?

The info is tucked away in the msgs that scroll:

************* WARNING *************

  Your Perl is linked with -lpthread, make sure that your httpd is built with LIBS=-lpthread

************* WARNING *************

...and I build my apache doing just what that said:

(in /usr/pkgsrc/www/apache)
env LIBS=-lpthread make

I've seen notes on the net about adding:
.include "../../mk/"

to the Makefile, but that didn't help me out... the 'env LIBS=...' did the trick though.

The package _realy_ needs to be updated to include this as an option, or make a better note of whats going on... This issue has been around for ages, and never ceases to confuse. The fix is simple but obviously can be tough to track down. As it stands, it's difficult to get a working mod_perl environment on NetBSD because these two packages (perl/apache) are built in incompatible manners by default.

> Wouter
> --
> Wouter Schoot (
> Website:
> UIN# 42109851