Subject: Re: apache and mod_perl
To: None <pkgsrc-users@NetBSD.org>
From: Jukka Salmi <firstname.lastname@example.org>
Date: 11/21/2006 19:22:06
Emmanuel Dreyfus --> pkgsrc-users (2006-11-21 17:35:53 +0000):
> A strange problem with apache and mod_perl from pkgsrc:
> I had to add -lpthread in httpd link command, otherwise loading
> mod_perl caused a core dump.
> The idea of adding -lpthread come from a warning message that is
> displayed during www/ap-perl build, where it's said that perl is
> built with -lpthread, check that httpd is build with -lpthread too.
> I don't know how this can be correctly fixed.
In case you're talking about Apache 1.x on NetBSD >2: this problem has
been reported several times but was never fixed.
At least a workaround is to append the platform you're building on to
_BLNK_DLOPEN_REQUIRE_PTHREAD_PLATFORMS (in pkgsrc/mk/dlopen.builtin.mk).
Hmm, I still wonder which platform exactly need to be listed. The
dlopen buildlink infrastructure was originally written by jlam, so
probably he knows best...
$ ((RANDOM%6)) || rm -rf ~