Attempting to compile latest php 8.0.0 from source
Cary Lewis
cary.lewis@gmail.com
Mon Jun 29 17:45:47 GMT 2020
I did a git clone:
git clone https://github.com/php/php-src.git
then:
./configure --with-pear --enable-mbstring --with-curl --with-openssl
--with-xmlrpc --enable-soap --enable-zip --with-jpeg-dir
--with-png-dir --with-mysqli --enable-embedded-mysqli
--with-freetype-dir --enable-intl --with-xsl --with-zlib --with-json
but when I try to run make, i get errors:
/bin/sh /home/clewis/php-src/libtool --silent --preserve-dup-deps
--mode=compile g++ -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1
-DU_HIDE_OBSOLETE_UTF_OLD_H=1 -Wno-write-strings -D__STDC_LIMIT_MACROS
-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -std=c++11
-DUNISTR_FROM_CHAR_EXPLICIT=explicit
-DUNISTR_FROM_STRING_EXPLICIT=explicit -Iext/intl/
-I/home/clewis/php-src/ext/intl/ -DPHP_ATOM_INC
-I/home/clewis/php-src/include -I/home/clewis/php-src/main
-I/home/clewis/php-src -I/home/clewis/php-src/ext/date/lib
-I/usr/include/libxml2 -I/home/clewis/php-src/ext/mbstring/libmbfl
-I/home/clewis/php-src/ext/mbstring/libmbfl/mbfl
-I/home/clewis/php-src/TSRM -I/home/clewis/php-src/Zend -g -O2 -c
/home/clewis/php-src/ext/intl/intl_convertcpp.cpp -o
ext/intl/intl_convertcpp.lo
In file included from /home/clewis/php-src/Zend/zend.h:41,
from /home/clewis/php-src/main/php.h:31,
from /home/clewis/php-src/ext/intl/intl_convertcpp.cpp:20:
/home/clewis/php-src/Zend/zend_signal.h:44:2: error: ‘siginfo_t’ does not
name a type
44 | siginfo_t *siginfo;
| ^~~~~~~~~
In file included from /home/clewis/php-src/Zend/zend_types.h:25,
from /home/clewis/php-src/ext/intl/intl_convertcpp.h:23,
from /home/clewis/php-src/ext/intl/intl_convertcpp.cpp:17:
/home/clewis/php-src/Zend/zend_portability.h:378:18: error: ‘sigjmp_buf’
does not name a type; did you mean ‘jmp_buf’?
378 | # define JMP_BUF sigjmp_buf
| ^~~~~~~~~~
/home/clewis/php-src/Zend/zend_globals.h:151:2: note: in expansion of macro
‘JMP_BUF’
151 | JMP_BUF *bailout;
| ^~~~~~~
make: *** [Makefile:988: ext/intl/intl_convertcpp.lo] Error 1
Does anyone know how to patch php to compile under cygwin?
More information about the Cygwin
mailing list