public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Cary Lewis <cary.lewis@gmail.com>
To: cygwin@cygwin.com
Subject: Attempting to compile latest php 8.0.0 from source
Date: Mon, 29 Jun 2020 13:45:47 -0400	[thread overview]
Message-ID: <CAEF1h+VOh=ESLoXGfKPGGX9KZVFTYqM2MjvbJLu3iXvaSxze9w@mail.gmail.com> (raw)

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?

             reply	other threads:[~2020-06-29 17:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-29 17:45 Cary Lewis [this message]
2020-06-29 18:42 ` Kevin Schnitzius

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEF1h+VOh=ESLoXGfKPGGX9KZVFTYqM2MjvbJLu3iXvaSxze9w@mail.gmail.com' \
    --to=cary.lewis@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).