Subject: php4-pgsql on NetBSD-current
To: None <tech-pkg@netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: tech-pkg
Date: 07/04/2003 01:39:29
Hello,
On NetBSD-current(i386, checked out May 30), I installed
www/apache2
www/ap2-php
databases/postgresql
databases/php4-pgsql
Then in httpd.conf, I put
LoadModule php4_module lib/httpd/mod_php4.so
AddType application/x-httpd-php .php
and in php.ini, I put
extension=pgsql.so
After these settings, I tried to invoke apache
/usr/orinoco/etc/rc.d/apache start
but apache wrote following message in error_log.
PHP Warning: Unable to load dynamic library '/usr/orinoco/lib/php/20020429/pgsql.so' - /usr/orinoco/lib/php/20020429/pgsql.so: Undefined symbol "core_globals" (symnum = 176) in Unknown on line 0
I think the reason is that ap2-php defines ZTS so it declares
core_globals_id, but php4-pgsql doesn't define ZTS and tries to find
core_globals.
Any clues to fix or workaround?
----
// Hiramatsu Yoshifumi
// hiramatu@boreas.dti.ne.jp