Hi,
I trie to recompile php 5.2.11 on OS S Snow leopard without success.
(I need the < 5.3 version for the magento open source installation)
Here are my settings:
./configure \
--prefix=/usr/local/php5 \
--with-iconv-dir=/usr/ \
--with-apxs2 \
--enable-pdo \
--enable-mbstring \
--enable-gd-native-ttf \
--with-freetype-dir=/usr/local/lib \
--with-t1lib=/usr/local/lib \
--with-xpm-dir=/usr/X11R6 \
--with-gd \
--with-zlib \
--with-jpeg-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib \
--with-curl \
--with-mcrypt \
--with-mysql-sock=/tmp/mysql.sock \
--with-pdo_mysql=/usr/local/mysql/bin/mysql_config \
--with-mysql=/usr/local/mysql/ \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--enable-cli \
--with-pcre-dir=/usr/local/
I allways get the following error:
Undefined symbols:
"_libiconv_open", referenced from:
_do_convert in gdkanji.o
_php_iconv_string in iconv.o
__php_iconv_strlen in iconv.o
__php_iconv_substr in iconv.o
__php_iconv_substr in iconv.o
__php_iconv_strpos in iconv.o
__php_iconv_mime_encode in iconv.o
__php_iconv_mime_encode in iconv.o
__php_iconv_mime_decode in iconv.o
__php_iconv_mime_decode in iconv.o
_php_iconv_stream_filter_ctor in iconv.o
"_libiconv", referenced from:
_do_convert in gdkanji.o
"_libiconv_close", referenced from:
_do_convert in gdkanji.o
_php_iconv_string in iconv.o
__php_iconv_strlen in iconv.o
__php_iconv_substr in iconv.o
__php_iconv_substr in iconv.o
__php_iconv_strpos in iconv.o
__php_iconv_mime_encode in iconv.o
__php_iconv_mime_encode in iconv.o
__php_iconv_mime_decode in iconv.o
__php_iconv_mime_decode in iconv.o
__php_iconv_mime_decode in iconv.o
_php_iconv_stream_filter_dtor in iconv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
When I use --without-iconv \
the installation works fine.
I tried many many variants like:
patching the iconv.c (change libiconv to iconv)
use --with-iconv=/usr/ \
use --with-iconv=/usr/local \ with self compiled iconv
Nothing helps!!!
I think its a 32 bit to 64 bit problem.
But I can get to a solution or work around.
So please help. Any hint is welcome!
Götz
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]