ID: 29362 Comment by: adamolszewski at op dot pl Reported By: webmaster at path dot org Status: No Feedback Bug Type: Compile Failure Operating System: RedHat Linux Enterprise 3 PHP Version: 5.0.0 New Comment:
Propably one of the most lame way to fix this but it works (almost perfectly). I copied iconv.h from /usr/local/include/iconv.h to /usr/include/iconv.h These two versions were different on my machine. After switching, compilation went almost OK - there were some warnings, but PHP compiled and iconv works OK. Previous Comments: ------------------------------------------------------------------------ [2004-08-09 01:00:05] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-07-29 11:09:16] [EMAIL PROTECTED] Please, check that your /usr/local/include/iconv.h is not broken. This variable is defined there and should exist in all versions of libiconv since 2000-12-01. ------------------------------------------------------------------------ [2004-07-24 01:50:17] webmaster at path dot org Description: ------------ "`_libiconv_version' undeclared" prevents compile (gcc version 3.2.3 20030502) Reproduce code: --------------- libiconv-1.9.2 ./configure --prefix=/usr/local/ libxml2-2.6.5 ./configure --prefix=/usr/local/ --with-zlib=/usr/local/ --with-iconv=/usr/local/ libxslt-1.1.2 ./configure --prefix=/usr/local/ --with-libxml-prefix=/usr/local/ --with-libxml-include-prefix=/usr/local/lib/ --with-libxml-libs-prefix=/usr/local/lib/ php-5.0.0 ./configure --prefix=/usr/local --with-apxs2=/usr/sbin/apxs --with-ming=/usr/local --with-gd --with-png-dir=usr/local --enable-gd-native-ttf --with-xml --with-libxml-dir=/usr/local --with-expat-dir=/usr/local/lib --with-dom=/usr/local --enable-ftp --with-mysql=/usr/local --enable-shared=yes --enable-static=yes --with-xsl=/usr/local --enable-track-vars --enable-sockets --enable-wddx --with-xmlrpc --with-zlib-dir=/usr/local/include --with-iconv-dir=/usr/local/ --with-mssql=/usr/local/freetds --enable-msdblib Expected result: ---------------- Compilation Actual result: -------------- Does not compile. Generates following error: /home/webadmin/php-5.0.0/ext/iconv/iconv.c: In function `zm_startup_miconv': /home/webadmin/php-5.0.0/ext/iconv/iconv.c:191: `_libiconv_version' undeclared (first use in this function) /home/webadmin/php-5.0.0/ext/iconv/iconv.c:191: (Each undeclared identifier is reported only once /home/webadmin/php-5.0.0/ext/iconv/iconv.c:191: for each function it appears in.) make: *** [ext/iconv/iconv.lo] Error 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29362&edit=1