ID: 20484
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: ICONV related
Operating System: Linux RH 7.3, gnu libiconv
PHP Version: 4CVS-2002-11-18 (dev)
New Comment:
Basically it's supposed to cause unexpected results that you install
libiconv with --prefix=/usr, because libiconv would overwrite
/usr/include/iconv.h that comes from glibc, which offers iconv
functionality independently. It should be avoided when using linux.
Anyway, could you try following commands in the top of the PHP source
directory and configure again?
$ rm -f include/*
Previous Comments:
------------------------------------------------------------------------
[2002-11-19 09:31:30] [EMAIL PROTECTED]
After a make clean, which I forgot to do before, using only
'--with-iconv' I got the same error I got weeks ago during make:
ext/iconv/iconv.lo: In function `zm_startup_miconv':
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:139: undefined
reference to `_libiconv_version'
ext/iconv/iconv.lo: In function `php_iconv_string':
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:217: undefined
reference to `libiconv_open'
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:226: undefined
reference to `libiconv'
/home/paj/projects/phpcvsbuild/php4/ext/iconv/iconv.c:238: undefined
reference to `libiconv_close'
ext/xmlrpc/libxmlrpc/encodings.lo: In function `convert':
/home/paj/projects/phpcvsbuild/php4/ext/xmlrpc/libxmlrpc/encodings.c:62:
undefined reference to `libiconv_open'
/home/paj/projects/phpcvsbuild/php4/ext/xmlrpc/libxmlrpc/encodings.c:73:
undefined reference to `libiconv'
/home/paj/projects/phpcvsbuild/php4/ext/xmlrpc/libxmlrpc/encodings.c:93:
undefined reference to `libiconv_close'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
pa
------------------------------------------------------------------------
[2002-11-19 09:17:08] [EMAIL PROTECTED]
Hello,
Sorry for the answer delay, my home connection is down and/or too tired
;-)
Well, using only '--with-iconv' gave me the same error.
<Besides what configure params did you install libiconv with?>
./configure --prefix=/usr
I cannot remove it as far as I need it for php_dom too.
hth
pa
------------------------------------------------------------------------
[2002-11-18 19:24:19] [EMAIL PROTECTED]
Besides what configure params did you install libiconv with?
------------------------------------------------------------------------
[2002-11-18 13:58:47] [EMAIL PROTECTED]
Michael's suggestion is really to the point.
Open => Feedback
------------------------------------------------------------------------
[2002-11-18 13:14:31] [EMAIL PROTECTED]
Can you please try
--with-iconv
without "=/usr" and without the "--with-iconv-dir=/usr"? Your Redhat
7.3 should have a glibc 2.2.x, which has iconv builtin, so there's
AFAIK no point in installing an extra libiconv.
------------------------------------------------------------------------
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/20484
--
Edit this bug report at http://bugs.php.net/?id=20484&edit=1