I had PHP successfully built and then Apple's software update came in and destroyed my build, replacing it with another one with different options (and, importantly, curl disabled). I downloaded PHP 4.3.10 and used the configuration here, with --with-curl=/opt/src/curl-7.10.5 appended.
However, this and any other configuration I've tried result in nasty errors when I do a make. It says about things like:
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:239: parse error before "uint32_t"
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:239: warning: no semicolon at end of struct or union
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:240: warning: data definition has no type or storage class
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:386: parse error before "uint32_t"
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:386: warning: no semicolon at end of struct or union
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c: In function `Balloc':
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:405: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:409: sizeof applied to an incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:410: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:411: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:413: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:413: dereferencing pointer to incomplete type
and then ends up with:
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c: In function `zend_strtod':
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1243: parse error before "rv"
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1245: `uint32_t' undeclared (first use in this function)
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1245: parse error before "y"
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1252: `rv' undeclared (first use in this function)
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1277: `y' undeclared (first use in this function)
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1277: `z' undeclared (first use in this function)
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1485: `rv0' undeclared (first use in this function)
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1514: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1515: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1515: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1515: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1570: dereferencing pointer to incomplete type
/Users/richard/Desktop/php-4.3.10/Zend/zend_strtod.c:1571: dereferencing pointer to incomplete type
make: *** [Zend/zend_strtod.lo] Error 1
I've always been a little afraid of using make so, any suggestions would be appreciated!
Thanks in advance.
Richard
Showing messages 1 through 5 of 5.
PHP 4.3.10 on OS X 10.2.8
2005-02-03 11:59:07
rmwiseman
[View]
I just tried 4.3.4 and then 4.3.9, and both of these installed without hitch using exactly the same commands as previously. Looks like there's something amiss with 4.3.10 on OS X 10.2.8.
PHP 4.3.10 on OS X 10.2.8
2005-02-04 09:24:35
rmwiseman
[View]
A quick update for anyone who's interested: I discovered that a new version of Zend is required for 4.3.10. However, that didn't make it make as I'd hoped! I'll stick with 4.3.9.
PHP 4.3.10 on OS X 10.2.8
2005-02-04 09:20:35
rmwiseman
[View]
A quick update for anyone who's interested: I discovered that a new version of Zend is required for 4.3.10. However, that didn't make it make!
PHP 4.3.10 on OS X 10.2.8
2005-02-04 11:28:13
rmwiseman
[View]
"For anyone attempting to build php 4.3.10 (seeing as it fixes some security bugs). You might have problems with php-4.3.10/Zend/zend_strtod.c (at least, I did on my 10.2 system).
"Line 131 seems to be the problem. Removing the "|| defined(__ppc__)" so that that define doesn't happen on my Mac OS X machine seemed to fix it."
PHP 4.3.10 on OS X 10.2.8
2005-02-24 08:51:52
guillegv
[View]
Thanks to share your experience. I have been able to compile a version ad hoc. Definitively is impossible to compile php version 4.3.10 in Mac OS X 10.2.8. I also have used the php version 4.3.9.
Thank you very much.
Guillermo.