Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lphp4 Writing Makefile for PHP cp PHP.pm blib/lib/PHP.pm gcc -c -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -Wall -O3 -DVERSION=\"0.11\" -DXS_VERSION=\"0.11\" "-I/Users/cpanrun/build/5.8.8/lib/5.8.8/darwin-thread-multi-2level/CORE" PHP.c In file included from PHP.c:4: PHP.h:14:34: error: sapi/embed/php_embed.h: No such file or directory In file included from PHP.c:4: PHP.h:33: error: parse error before 'zval' PHP.h:36: error: parse error before '*' token PHP.h:37: warning: type defaults to 'int' in declaration of 'p5PHP_get_php_entity' PHP.h:37: warning: data definition has no type or storage class PHP.h:41: error: parse error before 'zval' PHP.h:45: error: parse error before '*' token PHP.c:48: error: parse error before 'zval' PHP.c: In function 'hv_store_zval': PHP.c:52: error: 'val' undeclared (first use in this function) PHP.c:52: error: (Each undeclared identifier is reported only once PHP.c:52: error: for each function it appears in.) PHP.c:53: warning: implicit declaration of function 'ZVAL_ADDREF' PHP.c:58: error: 'key' undeclared (first use in this function) PHP.c:59: error: 'h' undeclared (first use in this function) PHP.c:62: error: 'zval' undeclared (first use in this function) PHP.c:62: error: 'z' undeclared (first use in this function) PHP.c:62: error: parse error before ')' token PHP.c:68: warning: implicit declaration of function 'zval_ptr_dtor' PHP.c: At top level: PHP.c:81: error: parse error before '*' token PHP.c:83: warning: return type defaults to 'int' PHP.c: In function 'hv_fetch_zval': PHP.c:85: error: 'zval' undeclared (first use in this function) PHP.c:85: error: parse error before ')' token PHP.c: In function 'hv_destroy_zval': PHP.c:93: error: 'zval' undeclared (first use in this function) PHP.c:93: error: 'value' undeclared (first use in this function) PHP.c:101: error: parse error before ')' token PHP.c: At top level: PHP.c:113: error: parse error before 'zval' PHP.c: In function 'p5PHP_Entity_create': PHP.c:121: error: 'class' undeclared (first use in this function) PHP.c:129: error: 'data' undeclared (first use in this function) PHP.c: In function 'PHP_Object__new': PHP.c:144: error: 'zval' undeclared (first use in this function) PHP.c:144: error: 'object' undeclared (first use in this function) PHP.c:150: error: 'zend_class_entry' undeclared (first use in this function) PHP.c:150: error: 'zclass' undeclared (first use in this function) PHP.c:164: warning: implicit declaration of function 'zend_hash_find' PHP.c:164: warning: implicit declaration of function 'CG' PHP.c:164: error: 'class_table' undeclared (first use in this function) PHP.c:164: error: 'FAILURE' undeclared (first use in this function) PHP.c:170: warning: implicit declaration of function 'MAKE_STD_ZVAL' PHP.c:172: warning: implicit declaration of function 'object_init_ex' PHP.c:177: warning: implicit declaration of function 'ZVAL_DELREF' PHP.c: At top level: PHP.c:204: error: parse error before '*' token PHP.c:206: warning: return type defaults to 'int' PHP.c: In function 'p5PHP_get_php_entity': PHP.c:208: error: 'zval' undeclared (first use in this function) PHP.c:208: error: 'z' undeclared (first use in this function) PHP.c: At top level: PHP.c:224: error: parse error before 'zval' PHP.c: In function 'p5PHP_sv2zval': PHP.c:228: error: 'sv' undeclared (first use in this function) PHP.c:230: error: 'zarg' undeclared (first use in this function) PHP.c:230: error: 'IS_NULL' undeclared (first use in this function) PHP.c:234: error: 'suggested_type' undeclared (first use in this function) PHP.c:264: warning: implicit declaration of function 'ZVAL_LONG' PHP.c:268: warning: implicit declaration of function 'ZVAL_DOUBLE' PHP.c:271: warning: left-hand operand of comma expression has no effect PHP.c:273: warning: implicit declaration of function 'ZVAL_STRINGL' PHP.c:277: warning: left-hand operand of comma expression has no effect PHP.c:283: error: 'zval' undeclared (first use in this function) PHP.c:283: error: 'obj' undeclared (first use in this function) PHP.c:286: warning: left-hand operand of comma expression has no effect PHP.c:290: error: 'IS_OBJECT' undeclared (first use in this function) PHP.c:294: warning: implicit declaration of function 'zval_copy_ctor' PHP.c:298: warning: left-hand operand of comma expression has no effect PHP.c: At top level: PHP.c:308: error: parse error before '*' token PHP.c: In function 'p5PHP_zval2sv': PHP.c:310: error: 'zobj' undeclared (first use in this function) PHP.c:311: error: 'IS_NULL' undeclared (first use in this function) PHP.c:314: error: 'IS_BOOL' undeclared (first use in this function) PHP.c:315: warning: implicit declaration of function 'Z_LVAL' PHP.c:317: error: 'IS_LONG' undeclared (first use in this function) PHP.c:320: error: 'IS_DOUBLE' undeclared (first use in this function) PHP.c:321: warning: implicit declaration of function 'Z_DVAL' PHP.c:323: error: 'IS_STRING' undeclared (first use in this function) PHP.c:324: warning: implicit declaration of function 'Z_STRVAL' PHP.c:325: warning: implicit declaration of function 'Z_STRLEN' PHP.c:325: warning: passing argument 2 of 'Perl_newSVpv' makes pointer from integer without a cast PHP.c:326: error: 'IS_ARRAY' undeclared (first use in this function) PHP.c:349: error: 'IS_OBJECT' undeclared (first use in this function) PHP.c: In function 'PHP_Entity_DESTROY': PHP.c:362: error: 'zval' undeclared (first use in this function) PHP.c:362: error: 'obj' undeclared (first use in this function) PHP.c: In function 'PHP_Entity_link': PHP.c:387: error: 'zval' undeclared (first use in this function) PHP.c:387: error: 'obj' undeclared (first use in this function) PHP.c: In function 'PHP_exec': PHP.c:424: error: 'FAILURE' undeclared (first use in this function) PHP.c:425: error: 'zval' undeclared (first use in this function) PHP.c:425: error: 'retval' undeclared (first use in this function) PHP.c:429: error: nested functions are disabled, use -fnested-functions to re-enable PHP.c:429: error: syntax error before '*' token PHP.c:430: error: 'zargv' undeclared (first use in this function) PHP.c:430: error: 'zarg' undeclared (first use in this function) PHP.c:430: warning: left-hand operand of comma expression has no effect PHP.c:430: warning: statement with no effect PHP.c:432: error: nested functions are disabled, use -fnested-functions to re-enable PHP.c:432: error: syntax error before '*' token PHP.c:433: error: 'pargv' undeclared (first use in this function) PHP.c:454: error: 'zargv_static' undeclared (first use in this function) PHP.c:455: error: 'pargv_static' undeclared (first use in this function) PHP.c:458: error: parse error before ')' token PHP.c:460: error: parse error before ')' token PHP.c:464: error: parse error before ')' token PHP.c:469: error: 'IS_NULL' undeclared (first use in this function) PHP.c:478: warning: value computed is not used PHP.c:478: warning: value computed is not used PHP.c:485: error: 'IS_OBJECT' undeclared (first use in this function) PHP.c:496: warning: implicit declaration of function 'TSRMLS_FETCH' PHP.c:497: error: 'zend_try' undeclared (first use in this function) PHP.c:497: error: parse error before '{' token PHP.c:426: warning: unused variable 'retsv' PHP.c:424: warning: unused variable 'ret' PHP.c: At top level: PHP.c:506: warning: type defaults to 'int' in declaration of 'zend_end_try' PHP.c:506: warning: data definition has no type or storage class PHP.c:507: warning: type defaults to 'int' in declaration of 'eval_ptr' PHP.c:507: error: conflicting types for 'eval_ptr' PHP.c:17: error: previous definition of 'eval_ptr' was here PHP.c:507: error: 'old_eval_ptr' undeclared here (not in a function) PHP.c:507: warning: data definition has no type or storage class PHP.c:517: error: parse error before 'if' PHP.c:527: warning: type defaults to 'int' in declaration of 'sp' PHP.c:527: warning: initialization makes integer from pointer without a cast PHP.c:527: error: initializer element is not constant PHP.c:527: warning: data definition has no type or storage class PHP.c:528: error: parse error before '-=' token PHP.c:532: warning: type defaults to 'int' in declaration of 'retsv' PHP.c:532: warning: initialization makes integer from pointer without a cast PHP.c:532: error: initializer element is not constant PHP.c:532: warning: data definition has no type or storage class PHP.c:533: error: parse error before '}' token PHP.c:534: warning: type defaults to 'int' in declaration of 'retsv' PHP.c:534: error: redefinition of 'retsv' PHP.c:532: error: previous definition of 'retsv' was here PHP.c:534: warning: passing argument 2 of 'Perl_sv_2mortal' makes pointer from integer without a cast PHP.c:534: warning: initialization makes integer from pointer without a cast PHP.c:534: error: initializer element is not constant PHP.c:534: warning: data definition has no type or storage class PHP.c:535: error: parse error before 'void' PHP.c:535: error: parse error before '++' token PHP.c:537: error: parse error before '&' token PHP.c:537: warning: type defaults to 'int' in declaration of 'zval_ptr_dtor' PHP.c:537: warning: data definition has no type or storage class PHP.c:538: error: parse error before '(' token PHP.c:542: error: parse error before '(' token PHP.c: In function 'PHP_eval': PHP.c:550: error: 'FAILURE' undeclared (first use in this function) PHP.c:560: warning: assignment makes pointer from integer without a cast PHP.c:560: warning: assignment makes integer from pointer without a cast PHP.c:561: error: 'zend_try' undeclared (first use in this function) PHP.c:561: error: parse error before '{' token PHP.c:553: warning: unused variable 'na' PHP.c:550: warning: unused variable 'ret' PHP.c: At top level: PHP.c:563: warning: type defaults to 'int' in declaration of 'zend_end_try' PHP.c:563: warning: data definition has no type or storage class PHP.c:564: warning: type defaults to 'int' in declaration of 'eval_ptr' PHP.c:564: error: redefinition of 'eval_ptr' PHP.c:507: error: previous definition of 'eval_ptr' was here PHP.c:564: warning: data definition has no type or storage class PHP.c:574: error: parse error before 'if' PHP.c:579: error: parse error before '(' token PHP.c:580: error: parse error before '(' token PHP.c: In function 'PHP_options': PHP.c:656: error: 'PHP_VERSION' undeclared (first use in this function) PHP.c: In function 'mod_log_message': PHP.c:675: error: invalid type argument of 'unary *' PHP.c:677: warning: passing argument 1 of 'strlcpy' makes pointer from integer without a cast PHP.c: At top level: PHP.c:699: error: parse error before 'TSRMLS_DC' PHP.c: In function 'mod_ub_write': PHP.c:706: error: 'str' undeclared (first use in this function) PHP.c:706: error: 'str_length' undeclared (first use in this function) PHP.c: In function 'mod_deactivate': PHP.c:722: error: 'SUCCESS' undeclared (first use in this function) PHP.c: In function 'PHP_done': PHP.c:746: warning: implicit declaration of function 'php_end_ob_buffers' PHP.c:746: error: parse error before 'TSRMLS_CC' PHP.c:747: warning: implicit declaration of function 'php_embed_shutdown' PHP.c:747: error: 'TSRMLS_C' undeclared (first use in this function) PHP.c: In function 'boot_PHP': PHP.c:764: warning: implicit declaration of function 'php_embed_init' PHP.c:764: error: parse error before 'PTSRMLS_CC' PHP.c:771: warning: implicit declaration of function 'PG' PHP.c:771: error: 'display_errors' undeclared (first use in this function) PHP.c:771: error: invalid lvalue in assignment PHP.c:772: error: 'log_errors' undeclared (first use in this function) PHP.c:772: error: invalid lvalue in assignment PHP.c:773: error: 'sapi_module' undeclared (first use in this function) PHP.c:777: warning: implicit declaration of function 'php_output_startup' PHP.c:778: warning: implicit declaration of function 'php_output_activate' PHP.c:778: error: 'TSRMLS_C' undeclared (first use in this function) make: *** [PHP.o] Error 1