ID: 35288 Updated by: [EMAIL PROTECTED] Reported By: webmaster at negeta dot com -Status: Bogus +Status: Assigned Bug Type: ICONV related Operating System: FreeBSD 5.4 PHP Version: 5.1.1 Assigned To: moriyoshi New Comment:
Since when having libiconv() instead of iconv() is expected behaviour? Previous Comments: ------------------------------------------------------------------------ [2005-12-07 11:56:18] [EMAIL PROTECTED] That's expected behaviour. I did not break anything. Rather, it would never detect the correct header if with --with-iconv before I fixed. ------------------------------------------------------------------------ [2005-12-06 23:01:55] [EMAIL PROTECTED] Assigned to the person who broke it. ------------------------------------------------------------------------ [2005-12-01 13:04:54] webmaster at negeta dot com I specified the path of iconv explicitly. I ran './configure --with-iconv=/usr/local', and HAVE_LIBICONV was defined. 'libiconv' comes before 'iconv' when the path is specified. But above priority is inverted when the path is not specified. I was able to avoid this problem by using this difference. I hope 'libiconv' comes before 'iconv' automatically on the system that has both functions. But, I will back out this problem if this difference was designed for changing priority of them manually. ------------------------------------------------------------------------ [2005-11-23 13:51:20] webmaster at negeta dot com FreeBSD base system has no iconv library which is usable by other executable. FreeBSD does not contain the glibc, and libiconv.so is not installed in base system. I found '/usr/include/sys/iconv.h', but it is used by some kernel modules. Conflict will not occur because PHP does not include "sys/iconv.h." I removed libiconv and ran './configure', then following error occured: % tail -15 config.log configure:19817: gcc -o conftest -g -O2 -R/usr/local/lib -L/usr/local/lib conftest.c -lm -lxml2 -lz -liconv -lm 1>&5 /usr/bin/ld: cannot find -liconv configure: failed program was: #line 19806 "configure" #include "confdefs.h" char xmlInitParser(); int main() { xmlInitParser(); return 0; } ------------------------------------------------------------------------ [2005-11-23 09:29:38] [EMAIL PROTECTED] So you didn't read the comment above those checks? Try removing that libiconv you installed and try again. And make sure the installation of libiconv did NOT write over the system iconv.h !!! ------------------------------------------------------------------------ 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/35288 -- Edit this bug report at http://bugs.php.net/?id=35288&edit=1