Hi

2009/6/23 jvlad <d...@yandex.ru>:
> Now the problem is:
>
>
> /bin/sh
> /home/jvlad/php/php5.3-200906221030/libtool --silent --preserve-dup-deps 
> --mode=compile
> gcc  -Iext/phar/ -I/home/jvlad/php/php5.3-200906221030/ext/phar/ 
> -DPHP_ATOM_INC
>  -I/home/jvlad/php/php5.3-200906221030/include 
> -I/home/jvlad/php/php5.3-200906221030/main
>  -I/home/jvlad/php/php5.3-200906221030 
> -I/home/jvlad/php/php5.3-200906221030/ext/date/lib
>  -I/home/jvlad/php/php5.3-200906221030/ext/ereg/regex 
> -I/home/jvlad/php/install/include/libxml2
>  -I/usr/local/include 
> -I/home/jvlad/php/php5.3-200906221030/ext/sqlite3/libsqlite
>  -I/home/jvlad/php/php5.3-200906221030/TSRM 
> -I/home/jvlad/php/php5.3-200906221030/Zend
>    -I/usr/local/include -O0  -c
> /home/jvlad/php/php5.3-200906221030/ext/phar/util.c -o ext/phar/util.lo
> In file included from
> /home/jvlad/php/php5.3-200906221030/ext/spl/spl_array.h:25,
>                 from
> /home/jvlad/php/php5.3-200906221030/ext/phar/phar_internal.h:59,
>                 from
> /home/jvlad/php/php5.3-200906221030/ext/phar/util.c:23:
> /home/jvlad/php/php5.3-200906221030/ext/spl/php_spl.h:68: error: syntax
> error before "intptr_t"
> *** Error code 1
>
> Stop in /home/jvlad/php/php5.3-200906221030 (line 750 of Makefile).
>
>
> As I mentioned in bug#48593 replacing intptr_t with zend_intptr_t fixes the
> problem completely.
>

Or it could be possibly fixed by including <stdint.h>, like
"win32/php_stdin.h" is included on Windows thrus no compilation error
here. Let me know if the following patch fixes your problem:

Index: php_spl.h
===================================================================
RCS file: /repository/php-src/ext/spl/php_spl.h,v
retrieving revision 1.31
diff -u -r1.31 php_spl.h
--- php_spl.h   10 Mar 2009 23:39:38 -0000      1.31
+++ php_spl.h   23 Jun 2009 16:43:13 -0000
@@ -21,7 +21,9 @@

 #include "php.h"
 #if defined(PHP_WIN32)
-#include "win32/php_stdint.h"
+# include "win32/php_stdint.h"
+#else
+# include <stdint.h>
 #endif
 #include <stdarg.h>


-- 
regrads,

Kalle Sommer Nielsen
ka...@php.net

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to