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

MacPorts noreply at macports.org
Fri Sep 19 12:41:17 PDT 2008


#16590: php5 5.2.6 on OSX 10.4.11 build fails (possible fix included)
-----------------------------------+----------------------------------------
  Reporter:  news at braendle-net.de  |       Owner:  ryandesign at macports.org
      Type:  defect                |      Status:  new                    
  Priority:  Normal                |   Milestone:  Port Bugs              
 Component:  ports                 |     Version:  1.6.0                  
Resolution:                        |    Keywords:  php5 OS X              
      Port:  php5                  |  
-----------------------------------+----------------------------------------

Comment(by ryandesign at macports.org):

 I have been building php for years on Mac OS X on several machines without
 ever encountering this problem. Something must be different about your
 system.

 I see these definitions in ${prefix}/include/mutils/mhash_config.h:

 {{{
 /* Define to 1 if your system has a GNU libc compatible `malloc' function,
 and
    to 0 otherwise. */
 #define HAVE_MALLOC 1

 /* Define to 1 if you have the <malloc.h> header file. */
 /* #undef HAVE_MALLOC_H */
 }}}

 Also I have this in ${prefix}/include/php/main/php_config.h:

 {{{
 /* Define if you have the <malloc.h> header file.  */
 /* #undef HAVE_MALLOC_H */
 }}}

 So on my system, HAVE_MALLOC_H is 0, thus it's never trying to include
 malloc.h. This is correct for Mac OS X according to
 [http://developer.apple.com/technotes/tn2002/tn2071.html Apple
 documentation]. But on yours I suspect HAVE_MALLOC_H is 1, so it is trying
 to include it. Now we need to figure out why.

 Do you have the same definitions in your mhash_config.h and php_config.h
 files?

 What version of Xcode are you using? Get info on
 /Developer/Applications/Xcode.app to find out. I'm using 2.5. Please
 update if you have anything earlier than 2.4.1.

 Do you have anything installed in /usr/local, or do you have Fink
 installed (in /sw)? These can interfere with MacPorts and should be
 removed if present.

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


More information about the macports-tickets mailing list