using phpdir /usr/local Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lphp5 Writing Makefile for PHP::Interpreter cp lib/PHP/Interpreter/Resource.pm blib/lib/PHP/Interpreter/Resource.pm cp lib/PHP/Interpreter/Class.pm blib/lib/PHP/Interpreter/Class.pm cp a.pl blib/lib/PHP/a.pl cp b.pl blib/lib/PHP/b.pl cp lib/PHP/Interpreter.pm blib/lib/PHP/Interpreter.pm /Users/cpanrun/build/5.10.0/bin/perl /Users/cpanrun/build/5.10.0/lib/ExtUtils/xsubpp -typemap /Users/cpanrun/build/5.10.0/lib/ExtUtils/typemap -typemap typemap PHP.xs > PHP.xsc && mv PHP.xsc PHP.c gcc -c -I/usr/local/include -g -O3 -DVERSION=\"1.0.1\" -DXS_VERSION=\"1.0.1\" "-I/Users/cpanrun/build/5.10.0/lib/CORE" PHP.c In file included from PHP.xs:13: phpinterp.h:10:29: error: main/php_config.h: No such file or directory phpinterp.h:11:22: error: main/php.h: No such file or directory phpinterp.h:12:26: error: main/php_ini.h: No such file or directory phpinterp.h:13:27: error: main/php_main.h: No such file or directory phpinterp.h:14:18: error: zend.h: No such file or directory phpinterp.h:15:22: error: zend_API.h: No such file or directory phpinterp.h:16:26: error: zend_compile.h: No such file or directory phpinterp.h:17:22: error: zend_ini.h: No such file or directory phpinterp.h:18:18: error: SAPI.h: No such file or directory phpinterp.h:19:18: error: TSRM.h: No such file or directory In file included from PHP.xs:13: phpinterp.h:37: error: parse error before '*' token phpinterp.h:37: error: parse error before 'zval' phpinterp.h:37: warning: data definition has no type or storage class phpinterp.h:42: error: parse error before '*' token phpinterp.h:42: error: parse error before 'TSRMLS_DC' phpinterp.h:42: warning: data definition has no type or storage class phpinterp.h:43: error: parse error before '*' token In file included from PHP.xs:14: phpfuncs.h:20: error: parse error before 'zend_object' phpfuncs.h:20: warning: no semicolon at end of struct or union phpfuncs.h:22: error: parse error before '}' token phpfuncs.h:25: error: parse error before 'zend_object' phpfuncs.h:25: warning: no semicolon at end of struct or union phpfuncs.h:28: error: parse error before '}' token phpfuncs.h:35: error: parse error before 'zend_class_entry' phpfuncs.h:35: warning: data definition has no type or storage class phpfuncs.h:36: error: parse error before 'zend_class_entry' phpfuncs.h:36: warning: data definition has no type or storage class phpfuncs.h:37: error: parse error before 'zend_class_entry' phpfuncs.h:37: warning: data definition has no type or storage class phpfuncs.h:39: error: parse error before '*' token phpfuncs.h: In function 'ZEND_BEGIN_MODULE_GLOBALS': phpfuncs.h:45: error: parse error before 'ZEND_END_MODULE_GLOBALS' phpfuncs.h:44: error: declaration for parameter 'php' but no such parameter phpfuncs.h:43: error: declaration for parameter 'ps_stats' but no such parameter PHP.xs:26: error: 'zval' undeclared (first use in this function) PHP.xs:26: error: (Each undeclared identifier is reported only once PHP.xs:26: error: for each function it appears in.) PHP.xs:26: error: 'val' undeclared (first use in this function) PHP.xs: At top level: PHP.xs:28: warning: data definition has no type or storage class PHP.xs:31: error: parse error before 'zval' PHP.xs:31: warning: no semicolon at end of struct or union PHP.xs:33: error: parse error before '}' token PHP.xs:33: warning: data definition has no type or storage class PHP.xs:38: error: parse error before '*' token PHP.xs:40: error: parse error before '*' token PHP.xs: In function 'zval_is_assoc': PHP.xs:42: error: 'zval' undeclared (first use in this function) PHP.xs:42: error: 'entry' undeclared (first use in this function) PHP.xs:43: error: 'HashPosition' undeclared (first use in this function) PHP.xs:43: error: parse error before 'pos' PHP.xs:46: error: 'ulong' undeclared (first use in this function) PHP.xs:46: error: parse error before 'nk' PHP.xs:48: error: 'zptr' undeclared (first use in this function) PHP.xs:48: error: 'pos' undeclared (first use in this function) PHP.xs:49: error: 'SUCCESS' undeclared (first use in this function) PHP.xs:50: error: 'nk' undeclared (first use in this function) PHP.xs:50: error: 'HASH_KEY_IS_STRING' undeclared (first use in this function) PHP.xs: At top level: PHP.xs:58: error: parse error before '*' token PHP.xs:58: error: parse error before 'TSRMLS_DC' PHP.xs: In function 'SvZval': PHP.xs:61: error: 'zval' undeclared (first use in this function) PHP.xs:61: error: 'retval' undeclared (first use in this function) PHP.xs:101: error: parse error before 'pclass' PHP.xs:104: error: 'pclass' undeclared (first use in this function) PHP.xs:104: error: called object 'PHP_Interpreter_Class' is not a function PHP.xs:109: error: parse error before 'TSRMLS_CC' PHP.xs:113: error: parse error before 'TSRMLS_CC' PHP.xs:122: error: parse error before 'TSRMLS_CC' PHP.xs:131: error: parse error before 'pclass' PHP.xs:134: error: called object 'PHP_Interpreter_Class' is not a function PHP.xs:139: error: parse error before 'TSRMLS_CC' PHP.xs:143: error: parse error before 'TSRMLS_CC' PHP.xs:153: error: parse error before 'TSRMLS_CC' PHP.xs:161: error: parse error before 'TSRMLS_CC' PHP.xs:166: error: parse error before 'prsrc' PHP.xs:167: error: 'prsrc' undeclared (first use in this function) PHP.xs:170: error: parse error before 'TSRMLS_CC' PHP.xs:183: error: parse error before 'TSRMLS_CC' PHP.xs: At top level: PHP.xs:199: error: parse error before '*' token PHP.xs: In function 'newSVzval': PHP.xs:205: error: 'zptr' undeclared (first use in this function) PHP.xs:206: error: 'IS_NULL' undeclared (first use in this function) PHP.xs:209: error: 'IS_LONG' undeclared (first use in this function) PHP.xs:212: error: 'IS_DOUBLE' undeclared (first use in this function) PHP.xs:215: error: 'IS_BOOL' undeclared (first use in this function) PHP.xs:218: error: 'IS_ARRAY' undeclared (first use in this function) PHP.xs:220: error: 'zval' undeclared (first use in this function) PHP.xs:220: error: 'entry' undeclared (first use in this function) PHP.xs:221: error: 'HashPosition' undeclared (first use in this function) PHP.xs:221: error: parse error before 'pos' PHP.xs:224: error: 'ulong' undeclared (first use in this function) PHP.xs:224: error: parse error before 'nk' PHP.xs:233: error: 'pos' undeclared (first use in this function) PHP.xs:234: error: 'SUCCESS' undeclared (first use in this function) PHP.xs:235: error: 'nk' undeclared (first use in this function) PHP.xs:236: error: 'HASH_KEY_IS_STRING' undeclared (first use in this function) PHP.xs:244: error: 'HASH_KEY_IS_LONG' undeclared (first use in this function) PHP.xs:259: error: 'IS_OBJECT' undeclared (first use in this function) PHP.xs:262: error: 'zend_uint' undeclared (first use in this function) PHP.xs:262: error: parse error before 'namelen' PHP.xs:266: error: parse error before 'pclass' PHP.xs:269: warning: comparison between pointer and integer PHP.xs:271: error: parse error before 'TSRMLS_CC' PHP.xs:272: error: dereferencing pointer to incomplete type PHP.xs:273: error: dereferencing pointer to incomplete type PHP.xs:276: error: 'pclass' undeclared (first use in this function) PHP.xs:283: error: 'namelen' undeclared (first use in this function) PHP.xs:306: error: 'IS_STRING' undeclared (first use in this function) PHP.xs:307: warning: passing argument 2 of 'Perl_newSVpv' makes pointer from integer without a cast PHP.xs:309: error: 'IS_RESOURCE' undeclared (first use in this function) PHP.xs:312: error: parse error before 'prsrc' PHP.xs:315: error: 'prsrc' undeclared (first use in this function) PHP.xs:326: error: 'IS_CONSTANT' undeclared (first use in this function) PHP.xs:327: warning: passing argument 2 of 'Perl_newSVpv' makes pointer from integer without a cast PHP.xs:329: error: 'IS_CONSTANT_ARRAY' undeclared (first use in this function) PHP.xs: At top level: PHP.xs:343: error: parse error before '*' token PHP.xs: In function 'get_class_name': PHP.xs:346: error: 'z' undeclared (first use in this function) PHP.xs:346: error: invalid type argument of '->' PHP.xs:346: error: invalid type argument of '->' PHP.xs:346: error: 'name' undeclared (first use in this function) PHP.xs:346: error: 'namelen' undeclared (first use in this function) PHP.xs:346: error: parse error before 'TSRMLS_CC' PHP.xs:349: error: 'ce' undeclared (first use in this function) PHP.xs:349: error: parse error before 'TSRMLS_CC' PHP.xs: At top level: PHP.xs:354: error: parse error before 'return' PHP.xs:357: error: parse error before '*' token PHP.xs: In function 'my_autoglobal_merge': PHP.xs:359: error: 'zval' undeclared (first use in this function) PHP.xs:359: error: 'src_entry' undeclared (first use in this function) PHP.xs:359: error: 'dest_entry' undeclared (first use in this function) PHP.xs:362: error: 'ulong' undeclared (first use in this function) PHP.xs:362: error: parse error before 'num_key' PHP.xs:363: error: 'HashPosition' undeclared (first use in this function) PHP.xs:365: error: 'register_globals' undeclared (first use in this function) PHP.xs:365: error: 'dest' undeclared (first use in this function) PHP.xs:365: error: 'symbol_table' undeclared (first use in this function) PHP.xs:365: error: invalid lvalue in unary '&' PHP.xs:367: error: 'src' undeclared (first use in this function) PHP.xs:367: error: 'pos' undeclared (first use in this function) PHP.xs:368: error: 'SUCCESS' undeclared (first use in this function) PHP.xs:369: error: 'num_key' undeclared (first use in this function) PHP.xs:372: error: 'IS_ARRAY' undeclared (first use in this function) PHP.xs:372: error: 'HASH_KEY_IS_STRING' undeclared (first use in this function) PHP.xs:373: error: 'HASH_KEY_IS_LONG' undeclared (first use in this function) PHP.xs:380: error: parse error before ')' token PHP.xs:385: error: parse error before ')' token PHP.xs:389: error: parse error before 'TSRMLS_CC' PHP.xs: At top level: PHP.xs:395: error: parse error before 'TSRMLS_DC' PHP.xs: In function 'my_auto_globals_create_request': PHP.xs:397: error: 'zval' undeclared (first use in this function) PHP.xs:397: error: 'form_variables' undeclared (first use in this function) PHP.xs:405: error: 'variables_order' undeclared (first use in this function) PHP.xs:405: warning: assignment makes pointer from integer without a cast PHP.xs:410: error: 'http_globals' undeclared (first use in this function) PHP.xs:410: error: 'TRACK_VARS_GET' undeclared (first use in this function) PHP.xs:410: error: parse error before 'TSRMLS_CC' PHP.xs:417: error: 'TRACK_VARS_POST' undeclared (first use in this function) PHP.xs:417: error: parse error before 'TSRMLS_CC' PHP.xs:424: error: 'TRACK_VARS_COOKIE' undeclared (first use in this function) PHP.xs:424: error: parse error before 'TSRMLS_CC' PHP.xs:431: error: 'symbol_table' undeclared (first use in this function) PHP.xs:431: error: invalid lvalue in unary '&' PHP.xs:431: error: parse error before ')' token PHP.xs: In function 'XS_PHP__Interpreter_new': PHP.xs:465: error: 'zval' undeclared (first use in this function) PHP.xs:465: error: 'track_vars_array' undeclared (first use in this function) PHP.xs:468: error: 'http_globals' undeclared (first use in this function) PHP.xs:468: error: 'TRACK_VARS_GET' undeclared (first use in this function) PHP.xs:471: error: 'TRACK_VARS_POST' undeclared (first use in this function) PHP.xs:474: error: 'TRACK_VARS_COOKIE' undeclared (first use in this function) PHP.xs:477: error: 'TRACK_VARS_SERVER' undeclared (first use in this function) PHP.xs:480: error: 'TRACK_VARS_ENV' undeclared (first use in this function) PHP.xs:483: error: 'TRACK_VARS_FILES' undeclared (first use in this function) PHP.xs:493: error: 'server_context' undeclared (first use in this function) PHP.xs:501: error: 'PHP_INI_USER' undeclared (first use in this function) PHP.xs:501: error: 'PHP_INI_STAGE_RUNTIME' undeclared (first use in this function) PHP.xs:505: error: 'register_globals' undeclared (first use in this function) PHP.xs:506: error: invalid lvalue in assignment PHP.xs:507: error: parse error before 'TSRMLS_CC' PHP.xs:508: error: invalid lvalue in assignment PHP.xs:515: error: 'zag' undeclared (first use in this function) PHP.xs:515: error: parse error before 'TSRMLS_CC' PHP.xs:516: error: parse error before 'TSRMLS_CC' PHP.xs:519: error: parse error before 'TSRMLS_CC' PHP.xs: In function 'XS_PHP__Interpreter_call': PHP.xs:576: error: 'zval' undeclared (first use in this function) PHP.xs:576: error: parse error before 'method' PHP.xs:577: error: 'params' undeclared (first use in this function) PHP.xs:580: error: 'retval' undeclared (first use in this function) PHP.xs:585: error: 'method' undeclared (first use in this function) PHP.xs:588: error: parse error before ')' token PHP.xs:590: error: parse error before 'TSRMLS_CC' PHP.xs: In function 'XS_PHP__Interpreter_instantiate': PHP.xs:674: error: 'zval' undeclared (first use in this function) PHP.xs:674: error: 'obj' undeclared (first use in this function) PHP.xs:677: error: 'zend_fcall_info' undeclared (first use in this function) PHP.xs:677: error: parse error before 'fci' PHP.xs:679: error: 'retval' undeclared (first use in this function) PHP.xs:680: error: 'zend_class_entry' undeclared (first use in this function) PHP.xs:680: error: 'ce' undeclared (first use in this function) PHP.xs:682: error: 'params' undeclared (first use in this function) PHP.xs:683: error: 'zend_function' undeclared (first use in this function) PHP.xs:683: error: 'constructor' undeclared (first use in this function) PHP.xs:687: error: 'ZEND_FETCH_CLASS_DEFAULT' undeclared (first use in this function) PHP.xs:687: error: parse error before 'TSRMLS_CC' PHP.xs:689: error: 'fci' undeclared (first use in this function) PHP.xs:690: error: 'function_table' undeclared (first use in this function) PHP.xs:696: error: parse error before ')' token PHP.xs:698: error: 'arg' undeclared (first use in this function) PHP.xs:698: error: parse error before 'TSRMLS_CC' PHP.xs:706: error: invalid type argument of '->' PHP.xs:706: error: invalid type argument of '->' PHP.xs:706: error: parse error before 'TSRMLS_CC' PHP.xs:708: error: 'method' undeclared (first use in this function) PHP.xs:710: error: parse error before 'TSRMLS_CC' PHP.xs:724: error: 'RETVAL' undeclared (first use in this function) PHP.xs:726: error: 'croakstr' undeclared (first use in this function) PHP.c: At top level: PHP.c:989: error: parse error before '(' token PHP.c:990: error: parse error before '(' token PHP.c:992: error: parse error before '(' token PHP.c: In function 'XS_PHP__Interpreter__Class_FETCH': PHP.c:1008: error: parse error before 'pclass' PHP.c:1014: error: 'pclass' undeclared (first use in this function) PHP.c:1014: error: parse error before 'tmp' PHP.xs:741: error: 'zend_class_entry' undeclared (first use in this function) PHP.xs:741: error: 'ce' undeclared (first use in this function) PHP.xs:742: error: 'zval' undeclared (first use in this function) PHP.xs:742: error: 'retval' undeclared (first use in this function) PHP.xs:747: error: parse error before 'TSRMLS_CC' PHP.xs:748: error: parse error before 'TSRMLS_CC' PHP.c: In function 'XS_PHP__Interpreter__Class_STORE': PHP.c:1052: error: parse error before 'pclass' PHP.c:1059: error: 'pclass' undeclared (first use in this function) PHP.c:1059: error: parse error before 'tmp' PHP.xs:762: error: 'zend_class_entry' undeclared (first use in this function) PHP.xs:762: error: 'ce' undeclared (first use in this function) PHP.xs:763: error: 'zval' undeclared (first use in this function) PHP.xs:763: error: 'retval' undeclared (first use in this function) PHP.xs:767: error: 'tostore' undeclared (first use in this function) PHP.xs:770: error: parse error before 'TSRMLS_CC' PHP.xs:771: error: parse error before 'TSRMLS_CC' PHP.xs:772: error: parse error before 'TSRMLS_CC' PHP.c: In function 'XS_PHP__Interpreter__Class_FIRSTKEY': PHP.c:1101: error: parse error before 'pclass' PHP.c:1106: error: 'pclass' undeclared (first use in this function) PHP.c:1106: error: parse error before 'tmp' PHP.xs:786: error: 'ulong' undeclared (first use in this function) PHP.xs:786: error: parse error before 'index' PHP.xs:788: error: 'HashTable' undeclared (first use in this function) PHP.xs:788: error: 'properties' undeclared (first use in this function) PHP.xs:797: error: 'HASH_KEY_IS_STRING' undeclared (first use in this function) PHP.xs:800: error: 'HASH_KEY_IS_LONG' undeclared (first use in this function) PHP.xs:801: warning: passing argument 2 of 'Perl_newSViv' makes integer from pointer without a cast PHP.xs:803: error: 'HASH_KEY_NON_EXISTANT' undeclared (first use in this function) PHP.c: In function 'XS_PHP__Interpreter__Class_NEXTKEY': PHP.c:1158: error: parse error before 'pclass' PHP.c:1164: error: 'pclass' undeclared (first use in this function) PHP.c:1164: error: parse error before 'tmp' PHP.xs:820: error: 'ulong' undeclared (first use in this function) PHP.xs:820: error: parse error before 'index' PHP.xs:822: error: 'HashTable' undeclared (first use in this function) PHP.xs:822: error: 'properties' undeclared (first use in this function) PHP.xs:831: error: 'HASH_KEY_IS_STRING' undeclared (first use in this function) PHP.xs:834: error: 'HASH_KEY_IS_LONG' undeclared (first use in this function) PHP.xs:835: warning: passing argument 2 of 'Perl_newSViv' makes integer from pointer without a cast PHP.xs:837: error: 'HASH_KEY_NON_EXISTANT' undeclared (first use in this function) PHP.c: In function 'XS_PHP__Interpreter__Class_EXISTS': PHP.c:1216: error: parse error before 'pclass' PHP.c:1222: error: 'pclass' undeclared (first use in this function) PHP.c:1222: error: parse error before 'tmp' PHP.xs:855: error: 'HashTable' undeclared (first use in this function) PHP.xs:855: error: 'properties' undeclared (first use in this function) PHP.xs:861: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type PHP.c: In function 'XS_PHP__Interpreter__Class_DELETE': PHP.c:1265: error: parse error before 'pclass' PHP.c:1271: error: 'pclass' undeclared (first use in this function) PHP.c:1271: error: parse error before 'tmp' PHP.xs:880: error: 'HashTable' undeclared (first use in this function) PHP.xs:880: error: 'properties' undeclared (first use in this function) PHP.xs:881: error: 'zval' undeclared (first use in this function) PHP.xs:881: error: parse error before 'zkey' PHP.xs:887: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type PHP.xs:888: error: 'zkey' undeclared (first use in this function) PHP.xs:897: error: invalid type argument of '->' PHP.xs:897: error: parse error before 'TSRMLS_CC' PHP.xs: In function 'XS_PHP__Interpreter__Class__AUTOLOAD': PHP.xs:911: error: parse error before 'pclass' PHP.xs:913: error: 'zval' undeclared (first use in this function) PHP.xs:913: error: parse error before 'method' PHP.xs:914: error: 'params' undeclared (first use in this function) PHP.xs:915: error: parse error before 'calling_obj' PHP.xs:918: error: 'retval' undeclared (first use in this function) PHP.xs:923: error: 'pclass' undeclared (first use in this function) PHP.xs:923: error: called object 'PHP_Interpreter_Class' is not a function PHP.xs:929: error: 'zend_fcall_info' undeclared (first use in this function) PHP.xs:929: error: parse error before 'fci' PHP.xs:934: error: 'method' undeclared (first use in this function) PHP.xs:948: error: parse error before ')' token PHP.xs:950: error: 'arg' undeclared (first use in this function) PHP.xs:950: error: parse error before 'TSRMLS_CC' PHP.xs:955: error: 'fci' undeclared (first use in this function) PHP.xs:958: error: 'function_table' undeclared (first use in this function) PHP.xs:969: error: parse error before 'TSRMLS_CC' PHP.xs:976: error: break statement not within loop or switch PHP.xs:977: error: 'IS_LONG' undeclared (first use in this function) PHP.xs:977: error: case label not within a switch statement PHP.xs:978: error: 'IS_BOOL' undeclared (first use in this function) PHP.xs:978: error: case label not within a switch statement PHP.xs:979: error: 'IS_DOUBLE' undeclared (first use in this function) PHP.xs:979: error: case label not within a switch statement PHP.xs:980: error: 'IS_STRING' undeclared (first use in this function) PHP.xs:980: error: case label not within a switch statement PHP.xs:990: error: break statement not within loop or switch PHP.xs:991: error: 'IS_ARRAY' undeclared (first use in this function) PHP.xs:991: error: case label not within a switch statement PHP.xs:993: error: break statement not within loop or switch PHP.xs:994: error: 'IS_OBJECT' undeclared (first use in this function) PHP.xs:994: error: case label not within a switch statement PHP.xs:997: error: 'zend_uint' undeclared (first use in this function) PHP.xs:997: error: parse error before 'namelen' PHP.xs:1001: error: parse error before 'pclass' PHP.xs:1008: error: 'namelen' undeclared (first use in this function) PHP.xs:1029: error: 'IS_RESOURCE' undeclared (first use in this function) PHP.xs:1029: error: case label not within a switch statement PHP.xs:1032: error: parse error before 'prsrc' PHP.xs:1035: error: 'prsrc' undeclared (first use in this function) PHP.xs:1044: error: break statement not within loop or switch PHP.xs:1045: error: break statement not within loop or switch PHP.xs:1046: error: 'default' label not within a switch statement PHP.xs:1049: error: break statement not within loop or switch PHP.xs: At top level: PHP.xs:1065: error: parse error before 'if' PHP.c:1484: error: parse error before '(' token PHP.c:1485: error: parse error before '(' token PHP.c:1487: error: parse error before '(' token PHP.xs: In function 'XS_PHP__Interpreter__Class_DESTROY': PHP.xs:1074: error: parse error before 'pclass' PHP.xs:1079: error: 'pclass' undeclared (first use in this function) PHP.xs:1079: error: called object 'PHP_Interpreter_Class' is not a function PHP.c: In function 'XS_PHP__Interpreter__Resource_FETCH': PHP.c:1541: error: parse error before 'zptr' PHP.c:1543: error: parse error before 'RETVAL' PHP.c:1547: error: 'zptr' undeclared (first use in this function) PHP.c:1547: error: parse error before 'tmp' PHP.xs:1103: error: 'RETVAL' undeclared (first use in this function) PHP.c: In function 'XS_PHP__Interpreter__Resource_STORE': PHP.c:1583: error: parse error before 'zptr' PHP.c:1588: error: 'zptr' undeclared (first use in this function) PHP.c:1588: error: parse error before 'tmp' PHP.c: In function 'XS_PHP__Interpreter__Resource_DESTROY': PHP.c:1613: error: parse error before 'prsrc' PHP.c:1617: error: 'prsrc' undeclared (first use in this function) PHP.c:1617: error: parse error before 'tmp' make: *** [PHP.o] Error 1