Subject: php4 Module loading errors
To: None <tech-pkg@netbsd.org>
From: Reinier Jonker <rjgjonker@xs4all.nl>
List: tech-pkg
Date: 10/19/2002 23:50:21
Hello!

I have several php4-modules installed. However, upon starting apache2, 
PHP pages using modules do not work and I get the following lines in my 
error_log:

PHP Warning:  bz2: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
  in Unknown on line 0
PHP Warning:  calendar: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
  in Unknown on line 0
PHP Warning:  ftp: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
  in Unknown on line 0
PHP Warning:  gettext: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
  in Unknown on line 0
PHP Warning:  Unable to load dynamic library 
'/usr/pkg/lib/php/20020429/mysql.so' - 
/usr/pkg/lib/php/20020429/mysql.so: Undefined symbol "executor_globals" 
(reloc type = 20, symnum = 164) in Unknown on line 0
PHP Warning:  mcrypt: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
  in Unknown on line 0
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 = 20, symnum = 96) in Unknown on line 0
PHP Warning:  Unable to load dynamic library 
'/usr/pkg/lib/php/20020429/posix.so' - 
/usr/pkg/lib/php/20020429/posix.so: Undefined symbol "core_globals" 
(reloc type = 20, symnum = 100) in Unknown on line 0
PHP Warning:  Unable to load dynamic library 
'/usr/pkg/lib/php/20020429/session.so' - 
/usr/pkg/lib/php/20020429/session.so: Undefined symbol 
"executor_globals" (reloc type = 20, symnum = 174) in Unknown on lin
PHP Warning:  sockets: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=0
PHP    compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
  in Unknown on line 0
PHP Warning:  Unable to load dynamic library 
'/usr/pkg/lib/php/20020429/zlib.so' - 
/usr/pkg/lib/php/20020429/zlib.so: Undefined symbol "executor_globals" 
(reloc type = 20, symnum = 123) in Unknown on line 0

There appears to be a problem with the way php4 or the php4 modules are 
being built in pkgsrc.
NetBSD 1.6I running on a mac68k with apache-2.0.43, ap2-php-4.2.3 and 
php-4.2.3.

--  
Thanks in advance,

Reinier Jonker