From:             [EMAIL PROTECTED]
Operating system: Linux 2.2.10 glibc-2.0.7
PHP version:      4.0.5
PHP Bug Type:     Sablotron XSL
Bug description:  --with-iconv compilation and installation

(This is not actually Sablotron extension bug, but I need to use --with-iconv option 
for my system to build in Sablotron and have a problem in this case)

1. The error message during Apache restart:
Cannot load /usr/libexec/apache/ into server: 
/usr/libexec/apache/ undefined symbol: iconv_module_entry

2. Configure line:
--with-apxs --prefix=/usr --with-gd --with-gettext --with-yp --with-system-regex 
--with-mysql=/usr --enable-safe-mode --enable-sysvsem --enable-sysvshm 
--with-exec-dir=/home/httpd/php/bin --with-zlib --with-config-file-path=/etc/httpd 
--disable-debug --enable-magic-quotes --enable-bcmath --with-mod_charset 
--enable-calendar --with-iconv --with-sablot

3. Short description
The configure script and compilation go smoothly without errors. ldd shows 
the following: => /lib/ (0x2abda000) => /lib/ (0x2abe1000) => /usr/lib/ (0x2abe5000) => /usr/lib/ (0x2abf3000) => /usr/lib/ (0x2ac12000) => /usr/lib/ (0x2ac8e000) => /usr/lib/ (0x2aca0000) => /usr/lib/ (0x2ad39000) => /usr/lib/ (0x2ad4e000) => /lib/ (0x2ad85000) => /lib/ (0x2ad94000) => /lib/ (0x2adad000) => /lib/ (0x2addb000) => /lib/ (0x2ade2000)
        /lib/ => /lib/ (0x2aaab000)
,so all libraries are in place.
But the error message occurs during apache start/restart (see item 1.)

Looking through main/php_config.h I found that there is no line

#define HAVE_ICONV 1

,but if I install it manually I have the following errors during compilation:

make[3]: Entering directory `/mnt/files/linux/www/php/php-4.0.5/ext/iconv'
/bin/sh /mnt/files/linux/www/php/php-4.0.5/libtool --silent --mode=compile gcc  -I. 
-I/mnt/files/linux/www/php/php-4.0.5/main -I/mnt/files/linux/www/php/php-4.0.5 
-I/usr/include/apache -I/mnt/files/linux/www/php/php-4.0.5/Zend -I/usr/include/mysql 
-I/mnt/files/linux/www/php/php-4.0.5/TSRM  -DLINUX=2 -DEAPI -DKEAPI -DUSE_PERL_SSI 
iconv.c:59: `php_minit_iconv' undeclared here (not in a function)
iconv.c:59: initializer element for `iconv_module_entry.module_startup_func' is not 
iconv.c:60: `php_mshutdown_iconv' undeclared here (not in a function)
iconv.c:60: initializer element for `iconv_module_entry.module_shutdown_func' is not 
iconv.c:63: `php_info_iconv' undeclared here (not in a function)
iconv.c:63: initializer element for `iconv_module_entry.info_func' is not constant
make[3]: *** [iconv.lo] Error 1

So, there is no way to build working PHP4.0.5 with support of external libiconv 
(outside of glibc, glibc-2.0.7 doesn't have iconv functions). PHP4.0.4pl1 was built 
and run successfully on the same system with the same configuration options.

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to