Macbook pro compiling PHP

compile and install php: on mac

1, source code on github of clone

2. Execute configure-- disable-all solves all error warning

3. Execute make error

/bin/sh /Users/adminxxx/php-src/php-src/libtool --silent --preserve-dup-deps --mode=compile cc -DHAVE_CONFIG_H -I/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/pcre/ -I/Users/adminxxx/php-src/php-src/ext/pcre/ -DPHP_ATOM_INC -I/Users/adminxxx/php-src/php-src/include -I/Users/adminxxx/php-src/php-src/main -I/Users/adminxxx/php-src/php-src -I/Users/adminxxx/php-src/php-src/ext/date/lib -I/Users/adminxxx/php-src/php-src/TSRM -I/Users/adminxxx/php-src/php-src/Zend  -no-cpp-precomp  -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -c /Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c -o ext/pcre/pcre2lib/pcre2_compile.lo 
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:1604:42: error: use of undeclared identifier "INT_MAX"
      if (!read_number(&ptr, ptrend, -1, INT_MAX/10 - 1, ERR61, &s,
                                         ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:4948:11: error: use of undeclared identifier "INT_MAX"
      if (OFLOW_MAX - *lengthptr < (PCRE2_SIZE)(code - orig_code))
          ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:197:20: note: expanded from macro "OFLOW_MAX"
-sharpdefine OFLOW_MAX (INT_MAX - 20)
                   ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:6015:11: error: use of undeclared identifier "INT_MAX"
      if (OFLOW_MAX - *lengthptr < length_prevgroup - 2 - 2*LINK_SIZE)
          ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:197:20: note: expanded from macro "OFLOW_MAX"
-sharpdefine OFLOW_MAX (INT_MAX - 20)
                   ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:6486:36: error: use of undeclared identifier "INT_MAX"
                  (INT64_OR_DOUBLE)INT_MAX ||
                                   ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:6487:15: error: use of undeclared identifier "INT_MAX"
              OFLOW_MAX - *lengthptr < delta)
              ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:197:20: note: expanded from macro "OFLOW_MAX"
-sharpdefine OFLOW_MAX (INT_MAX - 20)
                   ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:6647:40: error: use of undeclared identifier "INT_MAX"
                      (INT64_OR_DOUBLE)INT_MAX ||
                                       ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:6648:19: error: use of undeclared identifier "INT_MAX"
                  OFLOW_MAX - *lengthptr < delta)
                  ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:197:20: note: expanded from macro "OFLOW_MAX"
-sharpdefine OFLOW_MAX (INT_MAX - 20)
                   ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:6700:40: error: use of undeclared identifier "INT_MAX"
                    > (INT64_OR_DOUBLE)INT_MAX ||
                                       ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:6701:17: error: use of undeclared identifier "INT_MAX"
                OFLOW_MAX - *lengthptr < delta)
                ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:197:20: note: expanded from macro "OFLOW_MAX"
-sharpdefine OFLOW_MAX (INT_MAX - 20)
                   ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:7648:11: error: use of undeclared identifier "INT_MAX"
      if (OFLOW_MAX - *lengthptr < length)
          ^
/Users/adminxxx/php-src/php-src/ext/pcre/pcre2lib/pcre2_compile.c:197:20: note: expanded from macro "OFLOW_MAX"
-sharpdefine OFLOW_MAX (INT_MAX - 20)
                   ^
10 errors generated.
make: *** [ext/pcre/pcre2lib/pcre2_compile.lo] Error 1
Php
Apr.09,2021
Menu