Edit report at http://bugs.php.net/bug.php?id=52436&edit=1

 ID:                 52436
 Updated by:         srina...@php.net
 Reported by:        hiropontepocon at gmail dot com
 Summary:            Compile error if systems do not have stdint.h
 Status:             Feedback
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Solaris8
 PHP Version:        5.2.14
 Block user comment: N

 New Comment:

in quick look, patching pcrelib/pcre_internal.h in this way, seems to
help



--- ext/pcre/pcrelib/pcre_internal.h.ORIG       Wed Jun  2 15:31:21
2010

+++ ext/pcre/pcrelib/pcre_internal.h    Wed Jun  2 15:38:08 2010

@@ -193,10 +193,10 @@

 by "configure". */

 #ifdef PHP_WIN32

 #include "win32/php_stdint.h"

-#elif HAVE_STDINT_H

-#include <stdint.h>

 #elif HAVE_INTTYPES_H

 #include <inttypes.h>

+#elif HAVE_STDINT_H

+#include <stdint.h>

 #endif


Previous Comments:
------------------------------------------------------------------------
[2010-07-27 00:46:18] ka...@php.net

Does this happen with older versions, or 5.3 for you?

------------------------------------------------------------------------
[2010-07-25 06:38:13] hiropontepocon at gmail dot com

Description:
------------
$ ./configure

・・・

$ grep -i stdint main/php_config.h

/* Define if you have the <stdint.h> header file.  */

/* #undef HAVE_STDINT_H */

$ make

・・・

/bin/ksh /tmp/php-5.2.14/libtool --silent --preserve-dup-deps
--mode=compile gcc -I/tmp/php-5.2.14/ext/pcre/pcrelib -Iext/pcre/
-I/tmp/php-5.2.14/ext/pcre/ -DPHP_ATOM_INC -I/tmp/php-5.2.14/include
-I/tmp/php-5.2.14/main -I/tmp/php-5.2.14 -I/tmp/php-5.2.14/ext/date/lib
-I/usr/include/libxml2 -I/tmp/php-5.2.14/TSRM -I/tmp/php-5.2.14/Zend 
-D_POSIX_PTHREAD_SEMANTICS  -I/usr/include -g -O2  -c
/tmp/php-5.2.14/ext/pcre/pcrelib/pcre_chartables.c -o
ext/pcre/pcrelib/pcre_chartables.lo

In file included from
/tmp/php-5.2.14/ext/pcre/pcrelib/pcre_chartables.c:25:

/tmp/php-5.2.14/ext/pcre/pcrelib/pcre_internal.h:198:20: stdint.h: No
such file or directory

make: *** [ext/pcre/pcrelib/pcre_chartables.lo] Error 1



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52436&edit=1

Reply via email to