I am trying to build php 5.2.8 on OS X and running into a snag with zend or libxml. Here is the output where everything goes wrong.
Thank you,
JB
/bin/sh /Users/johnb/Desktop/fontdev/php-5.2.8/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/libxml/ -I/Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/ -DPHP_ATOM_INC -I/Users/johnb/Desktop/fontdev/php-5.2.8/include -I/Users/johnb/Desktop/fontdev/php-5.2.8/main -I/Users/johnb/Desktop/fontdev/php-5.2.8 -I/usr/include/libxml2 -I/Users/johnb/Desktop/fontdev/php-5.2.8/ext/date/lib -I/Users/johnb/Desktop/fontdev/php-5.2.8/TSRM -I/Users/johnb/Desktop/fontdev/php-5.2.8/Zend -no-cpp-precomp -O2 -I/usr/include -c /Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c -o ext/libxml/libxml.lo
In file included from /Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend.h:258,
from /Users/johnb/Desktop/fontdev/php-5.2.8/main/php.h:34,
from /Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:28:
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:39: error: syntax error before '*' token
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:39: error: 'ulong' declared as function returning a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:49: error: field 'h' declared as a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:64: error: field 'nNextFreeElement' declared as a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:82: error: field 'h' declared as a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:93: error: syntax error before 'hash_func_t'
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:94: error: syntax error before 'hash_func_t'
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:153: error: 'zend_get_hash_value' declared as function returning a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:164: error: 'zend_hash_next_free_element' declared as function returning a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:181: error: field 'h' declared as a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:255: error: 'zend_inline_hash_func' declared as function returning a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h: In function 'zend_inline_hash_func':
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:256: error: invalid storage class for function 'hash'
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:256: error: function 'hash' is initialized like a variable
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:260: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:261: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:262: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:263: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:264: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:265: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:266: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:267: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:270: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:271: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:272: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:273: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:274: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:275: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:276: error: invalid operands to binary <<
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:280: warning: return makes integer from pointer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:280: warning: function returns address of local variable
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:256: error: nested function 'hash' declared but never defined
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h: At top level:
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:284: error: 'zend_hash_func' declared as function returning a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h: In function 'zend_symtable_update':
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:339: warning: passing argument 2 of '_zend_hash_index_update_or_next_insert' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:339: warning: passing argument 2 of '_zend_hash_index_update_or_next_insert' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h: In function 'zend_symtable_del':
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:346: warning: passing argument 4 of 'zend_hash_del_key_or_index' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:346: warning: passing argument 4 of 'zend_hash_del_key_or_index' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h: In function 'zend_symtable_find':
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:353: warning: passing argument 2 of 'zend_hash_index_find' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:353: warning: passing argument 2 of 'zend_hash_index_find' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h: In function 'zend_symtable_exists':
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:360: warning: passing argument 2 of 'zend_hash_index_exists' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:360: warning: passing argument 2 of 'zend_hash_index_exists' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h: In function 'zend_symtable_update_current_key':
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:366: warning: passing argument 5 of 'zend_hash_update_current_key_ex' makes pointer from integer without a cast
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_hash.h:366: warning: passing argument 5 of 'zend_hash_update_current_key_ex' makes pointer from integer without a cast
In file included from /Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend.h:259,
from /Users/johnb/Desktop/fontdev/php-5.2.8/main/php.h:34,
from /Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:28:
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_ts_hash.h: At top level:
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_ts_hash.h:40: error: syntax error before 'hash_func_t'
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_ts_hash.h:41: error: syntax error before 'hash_func_t'
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_ts_hash.h:87: error: 'zend_ts_get_hash_value' declared as function returning a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_ts_hash.h:110: error: 'zend_ts_hash_func' declared as function returning a function
In file included from /Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend.h:322,
from /Users/johnb/Desktop/fontdev/php-5.2.8/main/php.h:34,
from /Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:28:
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_iterators.h:57: error: field 'index' declared as a function
In file included from /Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_modules.h:26,
from /Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_API.h:26,
from /Users/johnb/Desktop/fontdev/php-5.2.8/main/php.h:38,
from /Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:28:
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_compile.h:85: error: field 'extended_value' declared as a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_compile.h:153: error: field 'h' declared as a function
/Users/johnb/Desktop/fontdev/php-5.2.8/Zend/zend_compile.h:175: error: field 'hash_value' declared as a function
/Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c: In function 'php_libxml_streams_IO_open_wrapper':
/Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:280: warning: pointer targets in passing argument 1 of 'xmlParseURI' differ in signedness
/Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:281: warning: pointer targets in passing argument 1 of 'xmlStrncmp' differ in signedness
/Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:281: warning: pointer targets in passing argument 2 of 'xmlStrncmp' differ in signedness
/Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c: In function '_php_list_set_error_structure':
/Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:450: warning: pointer targets in passing argument 1 of 'xmlStrdup' differ in signedness
/Users/johnb/Desktop/fontdev/php-5.2.8/ext/libxml/libxml.c:450: warning: pointer targets in assignment differ in signedness
make[1]: *** [ext/libxml/libxml.lo] Error 1
- Prev by Date: Re: WAMP server Problem and Correct way to install PHP and MySQL???
- Next by Date: [suPHP] suPHP_ConfigPath/PHPRC ignored
- Previous by thread: WAMP server Problem and Correct way to install PHP and MySQL???
- Next by thread: [suPHP] suPHP_ConfigPath/PHPRC ignored
- Index(es):