Subject: Re: PR pkg/28485 ap-php broken
To: Juan RP <juan@xtraeme.nopcode.org>
From: Johnny C. Lam <jlam@NetBSD.org>
List: pkgsrc-bugs
Date: 12/05/2004 00:06:58
--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Dec 01, 2004 at 09:14:35PM +0100, Juan RP wrote:
> 
> The problem only exists when the apache2 package is built with
> APACHE_MPM=worker, if prefork is used, ap-php builds ok.

Could you please test to see if the following patch fixes this problem?
You will need to recompile php4 and ap-php4 to test this.

	Thanks,

	-- Johnny Lam <jlam@NetBSD.org>

--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ad

$NetBSD$

--- configure.orig	2004-09-20 18:31:33.000000000 -0400
+++ configure
@@ -90314,13 +90314,8 @@ old_CC=$CC
 
 if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
   CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
+  CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
   INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
-  cat >meta_ccld<<EOF
-#! /bin/sh
-exec $CC $ac_cv_pthreads_cflags \$@
-EOF
-  CC="$abs_builddir/meta_ccld"
-  chmod +x meta_ccld
 fi
 
 if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then

--Kj7319i9nmIyA2yE--