[MacPorts] #16590: php5 5.2.6 on OSX 10.4.11 build fails (possible fix included)

MacPorts noreply at macports.org
Fri Sep 19 01:19:31 PDT 2008


#16590: php5 5.2.6 on OSX 10.4.11 build fails (possible fix included)
----------------------------------+-----------------------------------------
 Reporter:  news at braendle-net.de  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:  Port Bugs                            
Component:  ports                 |     Version:  1.6.0                                
 Keywords:  php5 OS X             |        Port:  php5                                 
----------------------------------+-----------------------------------------
 I get the following error while trying to install php5 5.2.6 on OSX
 10.4.11
 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/libxml/libxml.c:
 In function '_php_list_set_error_structure':
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/libtool
 --silent --preserve-dup-deps --mode=compile /usr/bin/gcc-4.0  -Iext/dom/
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/dom/
 -DPHP_ATOM_INC
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/main
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6
 -I/opt/local/include/libxml2 -I/opt/local/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/date/lib
 -I/opt/local/include/freetype2
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/oniguruma
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/libmbfl
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/libmbfl/mbfl
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/mysql5/include/mysql
 -I/opt/local/include/mysql5/mysql
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/TSRM
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/Zend
 -I/opt/local/include -no-cpp-precomp  -I/opt/local/include -O2  -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/dom/domerrorhandler.c
 -o ext/dom/domerrorhandler.lo
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/libtool
 --silent --preserve-dup-deps --mode=compile /usr/bin/gcc-4.0  -Iext/dom/
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/dom/
 -DPHP_ATOM_INC
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/main
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6
 -I/opt/local/include/libxml2 -I/opt/local/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/date/lib
 -I/opt/local/include/freetype2
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/oniguruma
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/libmbfl
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/libmbfl/mbfl
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/mysql5/include/mysql
 -I/opt/local/include/mysql5/mysql
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/TSRM
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/Zend
 -I/opt/local/include -no-cpp-precomp  -I/opt/local/include -O2  -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/dom/domerror.c
 -o ext/dom/domerror.lo
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/libtool
 --silent --preserve-dup-deps --mode=compile /usr/bin/gcc-4.0  -DNOT_RUBY
 -DHAVE_CONFIG_H -Iext/mbstring/
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/
 -DPHP_ATOM_INC
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/main
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6
 -I/opt/local/include/libxml2 -I/opt/local/include
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/date/lib
 -I/opt/local/include/freetype2
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/oniguruma
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/libmbfl
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/libmbfl/mbfl
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/mysql5/include/mysql
 -I/opt/local/include/mysql5/mysql
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/TSRM
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/Zend
 -I/opt/local/include -no-cpp-precomp  -I/opt/local/include -O2  -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6/ext/mbstring/oniguruma/regerror.c
 -o ext/mbstring/oniguruma/regerror.lo
 /opt/local/include/mutils/mincludes.h:66:20: error: malloc.h: No such file
 or directory
 make: *** [ext/mhash/mhash.lo] Error 1
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_php5/work/php-5.2.6"
 && make all " returned error 2
 /opt/local/include/mutils/mincludes.h:66:20: error: malloc.h: No such file
 or directory
 make: *** [ext/mhash/mhash.lo] Error 1
 Error: Status 1 encountered during processing.
 }}}


 I figured out a way to compile it anyway.
 First i checked who provides mhash.h
 Then I commented out the #include <malloc.h> stuff.
 After that php 5.2.6 build fine

 {{{
 medianet at intermac1:/opt/local/include/mutils$ port provides mhash.h
 /opt/local/include/mutils/mhash.h is provided by: mhash

 medianet at intermac1:/opt/local/include/mutils$ port list mhash
 mhash                          @0.9.9          devel/mhash
 medianet at intermac1:/opt/local/include/mutils$ port info mhash
 mhash 0.9.9, devel/mhash (Variants: universal)
 http://mhash.sourceforge.net/

 Libmhash is a library which implements some hash algorithms like crc32,
 md5 and sha-1.

 Platforms: darwin freebsd
 Maintainers: ryandesign at macports.org openmaintainer at macports.org
 medianet at intermac1:/opt/local/include/mutils$



 medianet at intermac1:/opt/local/include/mutils$ sudo vi mincludes.h


 /*
 #if defined(HAVE_MALLOC_H)
 #include <malloc.h>
 #endif
 */

 medianet at intermac1:/opt/local/include/mutils$ sudo port -v upgrade php5
 }}}

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


More information about the macports-tickets mailing list