[MacPorts] #19523: Mac OS X 10.5.6 libiconv, openssl errors when trying to build PHP 5.2.9

MacPorts noreply at macports.org
Sun May 3 07:42:14 PDT 2009


#19523: Mac OS X 10.5.6 libiconv, openssl errors when trying to build PHP 5.2.9
---------------------------------+------------------------------------------
 Reporter:  z3r0_f4ct0r@…        |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  High                 |   Milestone:                                       
Component:  ports                |     Version:  1.7.1                                
 Keywords:  libiconv, openssl    |        Port:  libiconv, openssl                    
---------------------------------+------------------------------------------
 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?

-- 
Ticket URL: <http://trac.macports.org/ticket/19523>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list