Repository navigation
Compilation error on cygwin #8142
Copy link
Copy link
Closed
Description
Description
Error while compiling php on cygwin
./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
...
/bin/sh /home/work/php-src/libtool --silent --preserve-dup-deps --tag CC --mode=compile cc -Iext/gd/ -I/home/work/php-src/ext/gd/ -I/home/work/php-src/include -I/home/work/php-src/main -I/home/work/php-src -I/home/work/php-src/ext/date/lib -I/usr/include/libxml2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/ImageMagick-7 -I/home/work/php-src/ext/mbstring/libmbfl -I/home/work/php-src/ext/mbstring/libmbfl/mbfl -I/home/work/php-src/ext -I/home/work/php-src/ext/swoole -I/home/work/php-src/ext/swoole/include -I/home/work/php-src/ext/swoole/ext-src -I/home/work/php-src/ext/swoole/thirdparty -I/home/work/php-src/ext/swoole/thirdparty/hiredis -I/home/work/php-src/TSRM -I/home/work/php-src/Zend -fno-common -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -Wall -pthread -g -O2 -fvisibility=hidden -Wimplicit-fallthrough=1 -DZEND_SIGNALS -I/home/work/php-src/ext/gd/libgd -c /home/work/php-src/ext/gd/libgd/gd_io_dp.c -o ext/gd/libgd/gd_io_dp.lo -MMD -MF ext/gd/libgd/gd_io_dp.dep -MT ext/gd/libgd/gd_io_dp.loResulted in this output:
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/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
Activity
cmb69 commentedon Feb 23, 2022
Hmm, Cygwin is certainly not one of the important targets nowadays (I guess most Windows users use WSL(2) instead), so don't expect that to be fixed soon. However, a pull request would be welcome!
Merge branch 'PHP-8.0' into PHP-8.1
Merge branch 'PHP-8.1'
pgy866 commentedon Mar 16, 2022
I am running php8.1.3 on DEEPIN 20.4, and the following error occurred
iluuu1994 commentedon Mar 16, 2022
@pgy866 This is only fixed for PHP 8.1.5, but your errors look unrelated. Please check with the newest version and otherwise create a new issue.