|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-11-11 15:47 UTC] rich06 at gmail dot com
Description:
------------
Compiling PHP v.5.3.8 fails on Mac OS X 10.7.2 (Lion) -- linker errors are generated relating to iconv
Test script:
---------------
./configure --prefix=/usr/local --mandir=/usr/share/man --infodir=/usr/share/info --with-apxs2=/usr/local/apache2/bin/apxs --enable-cli --with-zlib-dir=/usr --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/etc --with-mysql-sock=/tmp --with-mysql=/usr/local/mysql --with-xmlrpc --with-xsl=/usr --without-pear --with-libxml-dir=/usr --with-zlib --with-sqlite --with-gd --with-pdo-mysql=/usr/local/mysql --with-jpeg-dir=/opt/local --with-png-dir=/usr/X11R6 --with-iconv-dir=/opt/local --enable-pcntl --enable-soap --enable-wddx --enable-zip
make clean
make
Expected result:
----------------
make passes
Actual result:
--------------
Undefined symbols for architecture x86_64:
"_libiconv_open", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
"_libiconv", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
"_libiconv_close", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 08:00:02 2025 UTC |
I don't agree here, as ./configure --help says: --with-apxs2=FILE Build shared Apache 2.0 Handler module. FILE is the optional pathname to the Apache apxs tool apxs So FILE is optional