I try to compile internal or external with php-5.1.2
or php-5.2.3, but none of these works.
As external extension I've got this:
dapper:/usr/src/templates# make
/bin/sh /usr/src/templates/libtool --mode=compile gcc -I. -I/usr/src/templates -DPHP_ATOM_INC -I/usr/src/templates/include -I/usr/src/templates/main -I/usr/src/templates -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/templates/tmpl_lib.c -o tmpl_lib.lo
gcc -I. -I/usr/src/templates -DPHP_ATOM_INC -I/usr/src/templates/include -I/usr/src/templates/main -I/usr/src/templates -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /usr/src/templates/tmpl_lib.c -fPIC -DPIC -o .libs/tmpl_lib.o
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_line_num':
/usr/src/templates/tmpl_lib.c:45: warning: pointer targets in assignment differ in signedness
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_pre_parse_config':
/usr/src/templates/tmpl_lib.c:89: warning: pointer targets in passing argument 3 of 'search_qs' differ in signedness
/usr/src/templates/tmpl_lib.c:89: warning: pointer targets in assignment differ in signedness
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_pre_parse':
/usr/src/templates/tmpl_lib.c:217: error: invalid lvalue in assignment
/usr/src/templates/tmpl_lib.c:243: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness
/usr/src/templates/tmpl_lib.c:251: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/templates/tmpl_lib.c:251: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/templates/tmpl_lib.c:265: warning: pointer targets in assignment differ in signedness
/usr/src/templates/tmpl_lib.c:278: warning: pointer targets in initialization differ in signedness
/usr/src/templates/tmpl_lib.c:280: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:282: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/templates/tmpl_lib.c:282: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/templates/tmpl_lib.c:303: warning: pointer targets in assignment differ in signedness
/usr/src/templates/tmpl_lib.c:310: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:311: warning: pointer targets in passing argument 2 of 'php_tmpl_line_num' differ in signedness
/usr/src/templates/tmpl_lib.c:320: warning: pointer targets in initialization differ in signedness
/usr/src/templates/tmpl_lib.c:321: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/templates/tmpl_lib.c:321: warning: pointer targets in passing argument 2 of 'add_assoc_stringl_ex' differ in signedness
/usr/src/templates/tmpl_lib.c:349: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:362: warning: pointer targets in passing argument 2 of 'php_tmpl_line_num' differ in signedness
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_set':
/usr/src/templates/tmpl_lib.c:435: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:446: warning: pointer targets in assignment differ in signedness
/usr/src/templates/tmpl_lib.c:446: warning: comparison of distinct pointer types lacks a cast
/usr/src/templates/tmpl_lib.c:447: warning: comparison of distinct pointer types lacks a cast
/usr/src/templates/tmpl_lib.c:448: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/templates/tmpl_lib.c:458: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:461: warning: pointer targets in passing argument 2 of 'zend_hash_del_key_or_index' differ in signedness
/usr/src/templates/tmpl_lib.c:466: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_get_iteration':
/usr/src/templates/tmpl_lib.c:491: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:505: warning: pointer targets in passing argument 1 of 'strstr' differ in signedness
/usr/src/templates/tmpl_lib.c:505: warning: pointer targets in assignment differ in signedness
/usr/src/templates/tmpl_lib.c:523: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:529: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:535: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/templates/tmpl_lib.c:538: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:574: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:588: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_parse':
/usr/src/templates/tmpl_lib.c:691: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c:700: error: invalid lvalue in assignment
/usr/src/templates/tmpl_lib.c:702: warning: pointer targets in passing argument 1 of 'php_sprintf' differ in signedness
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_parse_check_memory':
/usr/src/templates/tmpl_lib.c:767: warning: pointer targets in passing argument 2 of 'zend_hash_find' differ in signedness
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_set_array':
/usr/src/templates/tmpl_lib.c:821: warning: pointer targets in initialization differ in signedness
/usr/src/templates/tmpl_lib.c: In function 'php_tmpl_load_structure':
/usr/src/templates/tmpl_lib.c:880: error: invalid lvalue in assignment
/usr/src/templates/tmpl_lib.c:891: warning: pointer targets in passing argument 2 of '_zend_hash_add_or_update' differ in signedness
/usr/src/templates/tmpl_lib.c:894: warning: pointer targets in passing argument 2 of 'php_tmpl_load_path' differ in signedness
/usr/src/templates/tmpl_lib.c:901: warning: pointer targets in initialization differ in signedness
make: *** [tmpl_lib.lo] Error 1
Logged In: YES
user_id=1867409
Originator: YES
one must use gcc-33, so this works for me:
apt-get install gcc-3.3
cd ...
phpize5
CC=gcc-3.3 ./configure --with-php-config=/usr/bin/php-config5
make
make install