php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15908 failed to compile with iconv
Submitted: 2002-03-06 12:58 UTC Modified: 2002-04-23 00:03 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: winfried at dream dot vg Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.1.2 OS: FreeBSD 4.5-RELEASE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: winfried at dream dot vg
New email:
PHP Version: OS:

 

 [2002-03-06 12:58 UTC] winfried at dream dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-07 11:01 UTC] winfried at dream dot 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-07 14:33 UTC] sniper@php.net
Could you please try the latest CVS snapshot from
http://snaps.php.net/ ? 

 [2002-03-08 11:47 UTC] winfried at dream dot 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-08 13:28 UTC] sniper@php.net
Check what config.log has about it.

--Jani

 [2002-03-12 08:53 UTC] winfried at dream dot vg
[15:01] mizantrop:~/tmp/php(13)# tail -n 2 config.log 
configure:28872: checking for ICAP support
configure:29268: checking for iconv support

EOF here. Tried the today's snapshot.
 [2002-04-23 00:03 UTC] sniper@php.net
This is fixed in PHP 4.2.0.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 14:01:28 2024 UTC