Skip to content

Compilation error on cygwin #8142

Closed
Closed
@matyhtf

Description

@matyhtf

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.lo

Resulted 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions