Edit report at http://bugs.php.net/bug.php?id=31193&edit=1

 ID:               31193
 Comment by:       wolfgang_weber at gmx dot at
 Reported by:      david at cubbieco dot com
 Summary:          iconv.c:254 undefined reference to 'libiconv'
 Status:           No Feedback
 Type:             Bug
 Package:          Compile Failure
 Operating System: linux gcc-3.2
 PHP Version:      5.0.3

 New Comment:

This problem still exists on CentOS 5.4 (64bit), when you try to build
PHP 5.3.2 with PHP-FPM-Patch from SVN.



My config:



./configure \

--with-config-file-path=/etc \

--with-config-file-scan-dir=/etc/php.d \

--cache-file=config.cache \

--with-system-tzdata \

--disable-debug \

--disable-posix \

--disable-safe-mode \

--disable-magic-quotes \

--disable-pdo \

--disable-sqlite \

--disable-phar \

--disable-dba \

--without-sqlite \

--without-pdo-sqlite \

--enable-fpm \

--enable-fastcgi \

--with-fpm-bin=/usr/bin/php-cgi \

--with-fpm-port=9000 \

--with-fpm-conf=/etc/php-fpm.conf \

--with-fpm-log=/var/log/php-fpm.log \

--with-fpm-pid=/var/run/php-fpm.pid \

--with-fpm-user=nobody \

--with-fpm-group=nobody \

--enable-ftp \

--enable-mbstring \

--enable-mbregex \

--enable-zip \

--enable-calendar \

--enable-bcmath \

--with-mysql=mysqlnd \

--with-mysqli=mysqlnd \

--with-pcre-regex=/opt/pcre \

--with-curl=/opt/curl \

--with-zlib=/opt/zlib \

--with-mcrypt \

--with-ttf \

--with-t1lib=/opt/t1lib \

--with-jpeg-dir=/usr/lib64 \

--with-png-dir=/usr/lib64 \

--with-gd \

--enable-gd-native-ttf



When I added --without-iconv, not only "configure" but also "make" was
successful.

Unfortunately "make test" failed with:



output buffering - fatalism [tests/output/ob_011.phpt]

Inconsistencies when accessing protected members
[Zend/tests/access_modifiers_008.phpt]

Inconsistencies when accessing protected members - 2
[Zend/tests/access_modifiers_009.phpt]

Bug #48770 (call_user_func_array() fails to call parent from inheriting
class) [Zend/tests/bug48770.phpt]

Bug #48770 (call_user_func_array() fails to call parent from inheriting
class) [Zend/tests/bug48770_2.phpt]

Bug #48770 (call_user_func_array() fails to call parent from inheriting
class) [Zend/tests/bug48770_3.phpt]

SimpleXML: array casting bug [ext/simplexml/tests/034.phpt]



Bugreport already automatically posted to qa.php.net
/buildtest-process.php



Regards

Wolfgang


Previous Comments:
------------------------------------------------------------------------
[2008-11-25 00:52:51] justincase at mailcatch dot com

Run configure like this:

[r...@david php-5.0.3]# ./configure CFLAGS=-liconv

------------------------------------------------------------------------
[2008-06-12 14:01:06] spadefinger at hotmail dot com

PHP version 5.2.6 on VectorLinux 5.8 deault configure gives error as
earlier posts. Using ./configure --without-libiconv did not work, adding
-liconv to the EXTRA_LIBS did not work. Used ./configure --without-iconv
to get past the errors.

------------------------------------------------------------------------
[2008-02-23 16:47:58] kspetter at curreyadkinscook dot com

What did you add in the EXTRA_LIBS variable?  I'm having the same issue
with version 5.2.5 as well and I can also tell that it's looking for a
different area for the libary even if I'm doing a --with-iconv=dirname



If someone can point out what they did I'll be glad to test out if it
resolves it for me as well.

------------------------------------------------------------------------
[2008-02-18 14:55:47] bugs dot php dot net at michaelrack dot de

Same Problem here in v5.2.5. libiconv exists on my Gentoo Base 2007.1
System. PHP automaticly derminates the location of libiconv and compile
against this library. The Configure-Script have to add -liconv to the
EXTRA_LIBS variable.



After i've added this library to the EXTRA_LIBS variable, PHP compiles
without a error-message.



Another solution is --without-libiconv ... but there is still a bug in
the configure-script!



Kind regards,

Michael Rack

http://www.michaelrack.de

------------------------------------------------------------------------
[2008-02-17 18:53:26] marrtins at hackers dot lv

undefined reference to `libiconv_open'



php 5.2.5, slackware 10

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=31193


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=31193&edit=1

Reply via email to