Bug #15908 Updated: failed to compile with iconv
| From: | sniper@php.net | Date: | Fri, 08 Mar 2002 18:28:12 +0000 |
| Subject: | Bug #15908 Updated: failed to compile with iconv | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2050@lists.php.net to get a copy of this message | ||
ID: 15908
Updated by: sniper@php.net
Reported By: winfried@dream.vg
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: FreeBSD 4.5-RELEASE
PHP Version: 4.1.2
New Comment:
Check what config.log has about it.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2002-03-08 11:47:06] winfried@dream.vg
I tried the latest snapshot:
http://snaps.php.net/php4-200203080600.tar.bz2
But the configure simply fails on iconv:
(..)
checking for iconv support... yes
configure: error: Please reinstall the iconv library.
Oink?
------------------------------------------------------------------------
[2002-03-07 14:33:32] sniper@php.net
Could you please try the latest CVS snapshot from
http://snaps.php.net/ ?
------------------------------------------------------------------------
[2002-03-07 11:01:41] winfried@dream.vg
I tried the patch specified in:
http://bugs.php.net/bug.php?id=14423
but it fails at:
Making all in main
cc -I. -I/usr/ports/www/mod_php4/work/php-4.1.2/main
-I/usr/ports/www/mod_php4/work/php-4.1.2/main
-I/usr/ports/www/mod_php4/work/php-4.1.2
-I/usr/ports/www/mod_php4/work/php-4.1.2/Zend
-I/usr/local/include/freetype2/freetype -I/usr/local/include/gd
-I/usr/local/include -I/usr/local/include/mysql
-I/usr/local/include/pspell
-I/usr/ports/www/mod_php4/work/php-4.1.2/TSRM -march=i686 -O6
-I/usr/local/include -I/usr/local/include/pgsql -c
internal_functions.c && touch internal_functions.lo
internal_functions.c:69: `iconv_module_entry' undeclared here (not in a
function)
internal_functions.c:69: initializer element is not constant
internal_functions.c:69: (near initialization for
`php_builtin_extensions[15]')
*** Error code 1
------------------------------------------------------------------------
[2002-03-06 12:58:42] winfried@dream.vg
I tried to compile latest PHP 4.1.2 on my system.
I need the iconv extension, but I get the following
error in linking:
/bin/sh /usr/ports/www/mod_php4/work/php-4.1.2/libtool --silent
--mode=link cc -I. -I/usr/ports/www/mod_php4/work/php-4.1.2/
-I/usr/ports/www/mod_php4/work/php-4.1.2/main
-I/usr/ports/www/mod_php4/work/php-4.1.2
-I/usr/ports/www/mod_php4/work/php-4.1.2/Zend
-I/usr/local/include/freetype2/freetype -I/usr/local/include/gd
-I/usr/local/include -I/usr/local/include/mysql
-I/usr/local/include/pspell
-I/usr/ports/www/mod_php4/work/php-4.1.2/TSRM -march=i686 -O6
-I/usr/local/include -I/usr/local/include/pgsql -o php
-export-dynamic stub.lo libphp4.la
./.libs/libphp4.a(internal_functions.o)(.data+0x3c): undefined
reference to `iconv_module_entry'
*** Error code 1
I'm making the PHP binary standalone, right from ports. Some info about
the system: iconv-2.0, Sablot-0.81, expat-1.95.2. I had a similar
problem on other system, making an Apache PHP module; with PHP 4.0.6 I
had no
problems with that (on FreeBSD 4.4-RELEASE/STABLE).
Here's my configure line:
--with-config-file-path=/usr/local/etc/php.standalone --disable-pear
--enable-discard-path --with-readline=/usr --enable-force-cgi-redirect
--enable-versioning --with-system-regex --disable-debug
--enable-track-vars --without-gd --without-mysql --with-gd=/usr/local
--with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local
--with-png-dir=/usr/local --with-zlib --with-mcrypt=/usr/local
--with-mhash=/usr/local --with-mysql=/usr/local --with-pgsql=/usr/local
--with-xml --with-expat-dir=/usr/local --enable-xslt --with-xslt-sablot
--with-expat-dir=/usr/local --with-iconv=/usr/local
--with-pspell=/usr/local --enable-mbregex --enable-mbstring
--enable-sockets --enable-trans-sid --with-iconv=/usr/local
--prefix=/usr/local i386-portbld-freebsd4.5
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15908&edit=1