Subject: pkg/19293: php4 can not load module pcre.so
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tecneeq@gmx.net>
List: netbsd-bugs
Date: 12/05/2002 18:59:53
>Number:         19293
>Category:       pkg
>Synopsis:       php4 can not load module pcre.so
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 05 10:02:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Karsten Kruse
>Release:        NetBSD 1.6_STABLE
>Organization:
	
>Environment:
	
	
System: NetBSD uberhost 1.6_STABLE NetBSD 1.6_STABLE (uberhost) #3: Sun Nov 3 12:08:57 CET 2002 karsten@uberhost:/usr/src/sys/arch/i386/compile/uberhost i386
Architecture: i386
Machine: i386
>Description:

While starting my php4-enabled Apache i get this: 

PHP Warning:  Unable to load dynamic library \
    '/usr/pkg/lib/php/20020429/pcre.so' - /usr/pkg/lib/php/20020429/pcre.so: \
    Undefined symbol "executor_globals" (reloc type = 6, symnum= 97) in \
    Unknown on line 0

Other modules show similiar errors (session.so, dbase.so, mysql.so ...).

	
>How-To-Repeat:
	
>Fix:

cd /usr/pkgsrc/www/php4

apply this patch against Makefile.common:

--- Makefile.common     Thu Dec  5 17:05:38 2002
+++ Makefile.common.new Thu Dec  5 15:56:24 2002
@@ -30,4 +30,10 @@
 
 PKG_SYSCONFVAR?=	php
 
+USE_BUILDLINK2=	YES
+
+CONFIGURE_ARGS+=	--enable-experimental-zts
+CONFIGURE_ARGS+=	--with-tsrm-pth
+
+.include "../../devel/pth/buildlink2.mk"
 .include "../../mk/bsd.prefs.mk"

make update

restart your Apache

Credit: http://www.geocrawler.com/mail/msg.php3?msg_id=10069453&list=466
	
>Release-Note:
>Audit-Trail:
>Unformatted: