|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10662 --with-iconv compilation and installation
Submitted: 2001-05-04 06:48 UTC Modified: 2002-01-10 08:31 UTC
From: abravo at tanja dot spb dot ru Assigned:
Status: Closed Package: Sablotron XSL
PHP Version: 4.0.5 OS: Linux 2.2.10 glibc-2.0.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
22 + 36 = ?
Subscribe to this entry?

 [2001-05-04 06:48 UTC] abravo at tanja dot spb dot ru
(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/ext/iconv -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/ext/xml/expat/xmltok -I/mnt/files/linux/www/php/php-4.0.5/ext/xml/expat/xmlparse -I/mnt/files/linux/www/php/php-4.0.5/TSRM  -DLINUX=2 -DEAPI -DKEAPI -DUSE_PERL_SSI -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c iconv.c
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 constant
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 constant
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-06 23:41 UTC]
fixed in cvs thanks,
 [2002-01-10 06:28 UTC] b_m_willms at yahoo dot com
Me too
 [2002-01-10 08:31 UTC] 
What do you mean "Me too"?

Do you happen to use OpenBSD?
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 18:01:33 2024 UTC