#16590: php5 5.2.6 on OSX 10.4.11 build fails (possible fix included) -----------------------------------+---------------------------------------- Reporter: news@braendle-net.de | Owner: ryandesign@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 news@braendle-net.de): Replying to [comment:2 ryandesign@…]:
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?
Thats what i have in: /opt/local/include/php/main/php_config.h {{{ /* Define if you have the <malloc.h> header file. */ /* #undef HAVE_MALLOC_H */ }}} and in: /opt/local/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. */ #define HAVE_MALLOC_H 0 }}} So it seems to me that my files not differ from yours.
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. medianet@intermac1:/Developer/Applications/Xcode.app/Contents$ more version.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>BuildVersion</key> <string>2</string> <key>CFBundleShortVersionString</key> <string>2.5</string> <key>CFBundleVersion</key> <string>799</string> <key>ProjectName</key> <string>DevToolsIDE</string> <key>SourceVersion</key> <string>7990000</string> </dict> </plist>
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. [[BR]] No /sw directory on this machine Under /usr/local there are a few things installed. What do I have to check there? Any way to find out what ist filling my HAVE_MALLOC_H ?? I found a lot of malloc.h files in: {{{ medianet@intermac1:/usr/local$ locate malloc.h /Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/malloc.h /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/malloc/malloc.h /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/objc/malloc.h /Developer/SDKs/MacOSX10.3.9.sdk/usr/include/sys/malloc.h /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/malloc.h /Developer/SDKs/MacOSX10.4u.sdk/usr/include/malloc/malloc.h /Developer/SDKs/MacOSX10.4u.sdk/usr/include/objc/malloc.h /Developer/SDKs/MacOSX10.4u.sdk/usr/include/sys/malloc.h /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/malloc.h /opt/local/var/macports/software/cgilib/0.5_2/opt/local/include/malloc.h /usr/include/malloc/malloc.h /usr/include/objc/malloc.h /usr/include/sys/malloc.h }}} Maybe I can delete all of them ?? But is this save ? Or is my last change to clean the harddrive, instal 10.5.x and reinstall all ports and programs again? Greetings an many thanks for your help from Germany Jürgen -- Ticket URL: <http://trac.macports.org/ticket/16590#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS