ID: 31193
Comment by: w dot peter dot howell at meccahosting dot com
Reported By: david at cubbieco dot com
Status: No Feedback
Bug Type: Compile Failure
Operating System: linux gcc-3.2
PHP Version: 5.0.3
New Comment:
This problem still occurs in v5.2.4. It's been 3 years now. Does
someone plan to fix this?
Previous Comments:
------------------------------------------------------------------------
[2007-07-24 09:09:29] janarbek at icu dot ac dot kr
I tried to install Php5.2.3 on Fedora 4 with Apache 2
if you add -liconv to EXTRA_LIBS then make works fine.
------------------------------------------------------------------------
[2007-05-15 09:16:11] weber at lviv dot farlep dot net
Latest PHP 5.2.2.
Faced the same problem on RHES4.
My options:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=shared,/usr --with-xml --with-dom --enable-sockets
--enable-ftp
Even I compiled clean libiconv the problem persists.
Solution was the same as described in the first post.
------------------------------------------------------------------------
[2006-04-11 16:05:46] gaikwad_s at rediffmail dot com
I am trying to install php 5 on fedora linux 5
it has generating error like
I searched on net but did got any clue regarding this
usr/local/src/php-5.1.2/ext/iconv/iconv.c:772: undefined reference to
`libiconv'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:890: undefined reference to
`libiconv_close'
ext/iconv/.libs/iconv.o: In function
`_php_iconv_appendl':/usr/local/src/php-5.1.2/ext/iconv/iconv.c:254:
undefined reference to `libiconv'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:291: undefined reference to
`libiconv'
ext/iconv/.libs/iconv.o: In function
`_php_iconv_mime_decode':/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1251:
undefined reference to `libiconv_open'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1362: undefined reference
to `libiconv_close'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1365: undefined reference
to `libiconv_open'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1718: undefined reference
to `libiconv_close'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1721: undefined reference
to `libiconv_close'
ext/iconv/.libs/iconv.o: In function
`php_iconv_stream_filter_dtor':/usr/local/src/php-5.1.2/ext/iconv/iconv.c:2309:
undefined reference to `libiconv_close'
ext/iconv/.libs/iconv.o: In function
`php_iconv_stream_filter_append_bucket':/usr/local/src/php-5.1.2/ext/iconv/iconv.c:2459:
undefined reference to `libiconv'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:2381: undefined reference
to `libiconv'
ext/iconv/.libs/iconv.o: In function
`php_iconv_stream_filter_ctor':/usr/local/src/php-5.1.2/ext/iconv/iconv.c:2335:
undefined reference to `libiconv_open'
ext/iconv/.libs/iconv.o: In function
`_php_iconv_substr':/usr/local/src/php-5.1.2/ext/iconv/iconv.c:618:
undefined reference to `libiconv_open'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:641: undefined reference to
`libiconv'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:698: undefined reference to
`libiconv_close'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:702: undefined reference to
`libiconv_close'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:649: undefined reference to
`libiconv_open'
ext/iconv/.libs/iconv.o: In function
`_php_iconv_mime_encode':/usr/local/src/php-5.1.2/ext/iconv/iconv.c:940:
undefined reference to `libiconv_open'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:954: undefined reference to
`libiconv_open'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1213: undefined reference
to `libiconv_close'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1216: undefined reference
to `libiconv_close'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1216: undefined reference
to `libiconv_close'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1073: undefined reference
to `libiconv'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1025: undefined reference
to `libiconv'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1057: undefined reference
to `libiconv'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1125: undefined reference
to `libiconv'
:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1156: undefined reference
to `libiconv'
ext/iconv/.libs/iconv.o:/usr/local/src/php-5.1.2/ext/iconv/iconv.c:1200:
more undefined references to `libiconv' follow
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
------------------------------------------------------------------------
[2005-01-31 22:29:05] [EMAIL PROTECTED]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2005-01-11 06:53:09] [EMAIL PROTECTED]
Where (and why) did you install libiconv ? It wouldn't
be needed because glibc provides nearly the same
functionality as libiconv. I think there's kind of
confusion going on through configure. If you have
installed libiconv in /usr on the linux box, you may
finally have to restore the glibc devel package as
installation of libiconv overwrites iconv.h that also
comes from that package.
Compiler warnings are safe and just ignorable.
------------------------------------------------------------------------
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/31193
--
Edit this bug report at http://bugs.php.net/?id=31193&edit=1