Opened 15 years ago
Last modified 14 years ago
#19523 closed defect
Mac OS X 10.5.6 libiconv, openssl errors when trying to build PHP 5.2.9 — at Initial Version
Reported by: | z3r0_f4ct0r@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | ||
Port: | php5 libiconv openssl |
Description
I'm having this issue trying to build PHP 5.2.9 on Mac OS X 10.5.6:
http://diymacserver.com/forum/topic/leopard-iconv-and-php5
I have had no success with either
'--with-iconv=/opt/local' \ '--with-iconv-dir=/opt/local' \ '--with-iconv=/usr' \
'--with-iconv-dir=/usr' \ '--with-iconv=shared, /usr' \ '--with-iconv=shared,/opt/local' \
Though
'--with-openssl=shared,/opt/local' \
seems to work versus none below:
'--with-openssl=/opt/local' \ '--with-openssl=/usr' \ '--with-openssl-dir=/opt/local' \ '--with-openssl-dir=/usr' \
Here is my current config with the resulting error:
ERROR
Undefined symbols:
"_libiconv", referenced from:
_do_convert in gdkanji.o
"_libiconv_close", referenced from:
_do_convert in gdkanji.o
"_libiconv_open", referenced from:
_do_convert in gdkanji.o
ld: symbol(s) not found collect2: ld returned 1 exit status make: * [libs/libphp5.bundle] Error 1
CONFIG
MACOSX_DEPLOYMENT_TARGET=10.5 \ CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" \ CCFLAGS="-arch x86_64 -g -Os -pipe" \ CXXFLAGS="-arch x86_64 -g -Os -pipe" \ LDFLAGS="-arch x86_64 -bind_at_load" \ './configure' \ '--disable-all' \ '--with-apxs2=/usr/sbin/apxs' \ '--with-mysql=/usr/local/mysql' \ '--with-mysqli=/usr/local/mysql/bin/mysql_config' \ '--prefix=/usr/local/php' \ '--with-config-file-path=/usr/local/php' \ '--with-zlib-dir=/opt/local' \ '--with-gettext=/opt/local' \ '--with-gdbm=/opt/local' \ '--with-mcrypt=/opt/local' \ '--with-curl=/opt/local' \ '--with-openssl=shared,/opt/local' \ '--with-sqlite' \ '--enable-sqlite-utf8' \ '--enable-libxml' \ '--enable-simplexml' \ '--enable-xml' \ '--enable-xmlreader' \ '--enable-xmlwriter' \ '--enable-dom' \ '--with-pcre-regex' \ '--enable-session' \ '--enable-spl' \ '--with-gd' \ '--with-jpeg-dir=/opt/local' \ '--with-png-dir=/opt/local' \ '--with-freetype-dir=/opt/local' \ '--enable-ctype' \ '--with-iconv=shared,/opt/local' \ '--with-xsl' \ '--with-pear' \ '--enable-hash' \ '--enable-json' \ '--enable-mbstring' \ '--enable-pdo' \ '--with-pdo-sqlite' \ '--enable-ftp' \ '--with-pdo-dblib=/opt/local' \ '--enable-shmop' \ '--enable-pcntl' \ '--enable-posix'
I have the following ports installed:
curl @7.19.4_0+universal (active)
expat @2.0.1_0+universal (active) freetds @0.82_0+darwin_9+universal (active) freetype @2.3.9_0+macosx+universal (active) gdbm @1.8.3_1+universal (active) gettext @0.17_4+universal (active) jpeg @6b_3+universal (active) libiconv @1.12_2+universal (active) libmcrypt @2.5.8_1+universal (active) libpng @1.2.35_0+universal (active) memcached @1.2.6_0+universal (active) openssl @0.9.8k_0+universal (active) zlib @1.2.3_2+universal (active)
Any ideas?