#20484 [Fbk->NoF]: Wrong detection of gnuiconv

From: Date: Sun, 01 Dec 2002 22:34:51 +0000
Subject: #20484 [Fbk->NoF]: Wrong detection of gnuiconv
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-26315@lists.php.net to get a copy of this message
ID: 20484 Updated by: sniper@php.net Reported By: paj@pearfr.org -Status: Feedback +Status: No Feedback Bug Type: ICONV related Operating System: Linux RH 7.3, gnu libiconv PHP Version: 4CVS-2002-11-18 (dev) New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-11-19 09:52:36] moriyoshi@php.net 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/* ------------------------------------------------------------------------ [2002-11-19 09:31:30] paj@pearfr.org 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] paj@pearfr.org 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] moriyoshi@php.net Besides what configure params did you install libiconv with? ------------------------------------------------------------------------ [2002-11-18 13:58:47] moriyoshi@php.net Michael's suggestion is really to the point. Open => Feedback ------------------------------------------------------------------------ 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

« previous php.bugs (#26315) next »