[php-src] Issue #8142: Compilation error on cygwin
| From: | matyhtf | Date: | Wed, 23 Feb 2022 06:06:25 +0000 |
| Subject: | [php-src] Issue #8142: Compilation error on cygwin | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239984@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8142
Author: matyhtf
### Description
Error while compiling php on cygwin
```shell
./configure --disable-all \
--with-openssl --enable-openssl \
--with-curl \
--with-iconv \
--with-bz2 \
--enable-bcmath \
--enable-pcntl \
--enable-filter \
--enable-session \
--enable-tokenizer \
--enable-mbstring \
--enable-ctype \
--with-zlib \
--with-zip \
--enable-posix \
--enable-sockets \
--enable-pdo \
--with-sqlite3 \
--enable-phar \
--enable-mysqlnd \
--with-mysqli \
--enable-intl \
--enable-fileinfo \
--with-pdo_mysql \
--with-pdo-sqlite \
--enable-soap \
--with-xsl \
--with-gmp \
--enable-exif \
--with-sodium \
--enable-xml --enable-simplexml --enable-xmlreader --enable-xmlwriter --enable-dom --with-libxml \
--enable-gd --with-jpeg --with-freetype \
--enable-swoole --enable-sockets --enable-mysqlnd --enable-http2 --enable-swoole-json
--enable-swoole-curl --enable-cares \
--enable-redis \
--with-imagick \
--with-yaml
...
make
```
Resulted in this output:
```shell
In file included from /home/work/php-src/Zend/zend.h:41,
from /home/work/php-src/main/php.h:31,
from /home/work/php-src/ext/intl/intl_convertcpp.cpp:20:
/home/work/php-src/Zend/zend_signal.h:44:9: error: ‘siginfo_t’ does not name a type
44 | siginfo_t *siginfo;
| ^~~~~~~~~
In file included from /home/work/php-src/Zend/zend_types.h:25,
from /home/work/php-src/ext/intl/intl_convertcpp.h:23,
from /home/work/php-src/ext/intl/intl_convertcpp.cpp:17:
/home/work/php-src/Zend/zend_portability.h:370:18: error: ‘sigjmp_buf’ does not name a type; did
you mean ‘jmp_buf’?
370 | # define JMP_BUF sigjmp_buf
| ^~~~~~~~~~
/home/work/php-src/Zend/zend_globals.h:159:9: note: in expansion of macro ‘JMP_BUF’
159 | JMP_BUF *bailout;
| ^~~~~~~
make: *** [Makefile:1252: ext/intl/intl_convertcpp.lo] Error 1
```
```shell
/home/work/php-src/ext/pcntl/pcntl.c: In function ‘pcntl_siginfo_to_zval’:
/home/work/php-src/ext/pcntl/pcntl.c:1198:98: error: ‘siginfo_t’ has no member named
‘si_band’
1198 | add_assoc_long_ex(user_siginfo, "band",
sizeof("band")-1, siginfo->si_band);
|
^~
make: *** [Makefile:1546: ext/pcntl/pcntl.lo] Error 1
make: *** Waiting for unfinished jobs....
```
### PHP Version
PHP 8.1.1
### Operating System
CYGWIN_NT-10.0 ***** 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin