|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31546 iconv undefined error
Submitted: 2005-01-14 02:42 UTC Modified: 2005-01-31 22:32 UTC
From: tichiel_ff at yahoo dot co dot jp Assigned:
Status: Not a bug Package: ICONV related
PHP Version: 4.3.10 OS: FreeBSD 4.10
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:
8 + 12 = ?
Subscribe to this entry?

 [2005-01-14 02:42 UTC] tichiel_ff at yahoo dot co dot jp
The following errors were encountered when PHP was built.
It is the same as that of what had the report in the past.
libiconv ver1.9.2 is used.

sorry, not good at English.

error message

ext/xmlrpc/libxmlrpc/encodings.lo: In function `convert':
/home/tichiel/src/php-4.3.10/ext/xmlrpc/libxmlrpc/encodings.c:64: undefined referen
ce to `libiconv_open'
/home/tichiel/src/php-4.3.10/ext/xmlrpc/libxmlrpc/encodings.c:75: undefined referen
ce to `libiconv'
/home/tichiel/src/php-4.3.10/ext/xmlrpc/libxmlrpc/encodings.c:95: undefined referen
ce to `libiconv_close'
*** Error code 1

Stop in /home/tichiel/src/php-4.3.10.

configure option



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-14 04:26 UTC]
What iconv version do you have installed in your system?
You can always try adding this to your configure line:

 [2005-01-15 18:53 UTC] rtang at rhyton dot com
When configuring for 4.3.10 using the following configuration:

./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local \
--with-openssl-dir=/usr/local/ssl \
--with-zlib \
--with-curl \
--with-mcrypt \
--with-freetype-dir=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png \
--with-ttf \
--with-iconv-dir=/usr/local/lib \
--with-gd=/usr/local \
--enable-gd-native-ttf \
--enable-sockets \
--with-exif \
--enable-sysvsem \

The configuration bombs with the following relevant errors from the config.log:

char gdImageString16();

int main() {
; return 0; }
configure:33619: checking for gdImagePaletteCopy in -lgd
configure:33638: gcc -o conftest -g -O2  -R/usr/local/lib -L/usr/local/lib  -R/usr/local/lib -L/usr/local/lib conftest.c -lgd  -lgd 
-lfreetype -ljpeg -lcurl -lz -lm  -lcurl -lssl -lcrypto -lz 1>&5
/usr/local/lib/ undefined reference to `libiconv_open'
/usr/local/lib/ undefined reference to `libiconv_close'
/usr/local/lib/ undefined reference to `libiconv'
configure: failed program was:
#line 33627 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */

The same error paragraph duplicates for EACH of the gd functuons, ie: gdImagePaletteCopy(), etc....

I tried to fix the problem by installing iconv-2.0_3, but it didn't make any difference.

The really strange this is that I do NOT get these errors when I configure for 4.3.8. I went back and ran the config (same configuration as above) for 4.3.8 and it worked like a charm.
 [2005-01-16 11:36 UTC]
/usr/local/lib is WRONG, you need to use the prefix only, which is /usr/local
 [2005-01-31 22:32 UTC]
User error.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 18 21:03:39 2021 UTC