ID: 42547 Updated by: [EMAIL PROTECTED] Reported By: dawidpachla at gmail dot com -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: CentOS 5 with DirectAdmin PHP Version: 5.2.4 New Comment:
Is there some reason you have libiconv installed in /usr/local when your glibc provides the same stuff? Did something else require it? As the fix is to simply uninstall libiconv.. Previous Comments: ------------------------------------------------------------------------ [2007-10-08 10:36:29] dawidpachla at gmail dot com Here's the output of # grep ICONV main/php_config.h after 'compilation': [EMAIL PROTECTED] php-5.2.4]# grep ICONV main/php_config.h /* #undef HAVE_LIBICONV */ /* #undef HAVE_GICONV_H */ /* #undef HAVE_LIBICONV */ #define HAVE_ICONV 1 #define PHP_ICONV_IMPL "glibc" /* #undef HAVE_BSD_ICONV */ #define PHP_ICONV_IMPL "glibc" #define HAVE_GLIBC_ICONV 1 #define PHP_ICONV_IMPL "glibc" #define ICONV_SUPPORTS_ERRNO 0 #define ICONV_SUPPORTS_ERRNO 0 #define ICONV_SUPPORTS_ERRNO 0 #define PHP_ICONV_H_PATH </usr/local/include/iconv.h> /* #undef COMPILE_DL_ICONV */ /* #undef HAVE_LIBICONV */ /* #undef HAVE_GICONV_H */ /* #undef HAVE_LIBICONV */ #define HAVE_ICONV 1 [EMAIL PROTECTED] php-5.2.4]# ------------------------------------------------------------------------ [2007-09-21 09:15:14] [EMAIL PROTECTED] Try find that file first. It's $top_builddir/main/php_config.h ------------------------------------------------------------------------ [2007-09-19 14:42:46] dawidpachla at gmail dot com grep: main/php_config.h: No such file or directory ------------------------------------------------------------------------ [2007-09-19 13:28:12] [EMAIL PROTECTED] What does this output: # grep ICONV main/php_config.h ------------------------------------------------------------------------ [2007-09-18 15:12:14] dawidpachla at gmail dot com still the same error :/ /usr/local/directadmin/customapache/php-5.2.4/ext/iconv/iconv.c:1242: undefined reference to `libiconv' ext/iconv/iconv.o:/usr/local/directadmin/customapache/php-5.2.4/ext/iconv/iconv.c:1286: more undefined references to `libiconv' follow ext/iconv/iconv.o: In function `php_iconv_stream_filter_ctor': /usr/local/directadmin/customapache/php-5.2.4/ext/iconv/iconv.c:2426: undefined reference to `libiconv_open' collect2: ld returned 1 exit status make: *** [sapi/cgi/php-cgi] Error 1 ------------------------------------------------------------------------ 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/42547 -- Edit this bug report at http://bugs.php.net/?id=42547&edit=1