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:
What does this output:
# grep ICONV main/php_config.h
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2007-09-18 12:33:45] [EMAIL PROTECTED]
Of course you should do "make clean", I forgot to mention that:
# rm config.cache && ./configure && make clean && make
------------------------------------------------------------------------
[2007-09-13 16:07:13] dawidpachla at gmail dot com
When I changed all /usr/local/lib to /usr/local I had the same error as
before, when I used rm config.cache && ./configure && make I got the
following error:
/usr/local/directadmin/customapache/php-5.2.4/main/rfc1867.c:1185:
undefined reference to `php_mb_gpc_encoding_converter'
main/.libs/output.o: In function `php_ob_init_named':
/usr/local/directadmin/customapache/php-5.2.4/main/output.c:438:
undefined reference to `php_ob_gzhandler_check'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
------------------------------------------------------------------------
[2007-09-13 10:21:18] [EMAIL PROTECTED]
I meant EVERY option in PHP configure, not just the one.
Anyway, try this short version instead:
# rm config.cache && ./configure && make
------------------------------------------------------------------------
[2007-09-12 15:04:24] dawidpachla at gmail dot com
I edited the configure file, so it looks like that:
#!/bin/sh
./configure \
--with-apxs2 \
--with-curl \
--with-curl=/usr/local \
--with-gd \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--with-zip \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars \
--enable-mbstring \
--enable-memory-limit \
--enable-libxml
But I still get the same error when i try to compile it:
/usr/local/directadmin/customapache/php-5.2.4/ext/iconv/iconv.c:1242:
undefined
reference to `libiconv'
ext/iconv/.libs/iconv.o:/usr/local/directadmin/customapache/php-5.2.4/ext/iconv/
iconv.c:1286: more undefined references to `libiconv' follow
ext/iconv/.libs/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/cli/php] Error 1
[EMAIL PROTECTED] customapache]#
------------------------------------------------------------------------
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