Bug #75412 [Asn]: Build with Mingw-w64
| From: | kalle@php.net | Date: | Tue, 31 Oct 2017 13:53:18 +0000 |
| Subject: | Bug #75412 [Asn]: Build with Mingw-w64 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212389@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75412&edit=1
ID: 75412
Updated by: kalle@php.net
Reported by: svnpenn at gmail dot com
Summary: Build with Mingw-w64
Status: Assigned
Type: Bug
Package: *General Issues
Operating System: Windows
PHP Version: 7.1.10
Assigned To: kalle
Block user comment: N
Private report: N
New Comment:
Thank you for the update, I made similar progress as you yesterday, tho I did a little different
approach by checking for __MINGW32__ :)
Previous Comments:
------------------------------------------------------------------------
[2017-10-30 18:38:30] svnpenn at gmail dot com
FYI I am putting my progress here:
http://github.com/svnpenn/whip
------------------------------------------------------------------------
[2017-10-25 11:24:33] svnpenn at gmail dot com
Sure, here is what I am using currently. This might change once I actually get "make" to
complete:
./configure --disable-dom --disable-libxml --disable-opcache \
--disable-posix --disable-simplexml --disable-xml --disable-xmlreader \
--disable-xmlwriter --without-iconv --without-pear --host x86_64-w64-mingw32
http://github.com/svnpenn/glade/tree/11828c1/php
------------------------------------------------------------------------
[2017-10-25 04:18:07] kalle@php.net
Hi
I loaded up my linux dev and installed mingw32 from apt-get, however using the ./configure you
provided in the report, the configure fails, however if I also pass along --disable-all it
doesn't fail. Any chance you can help me by letting me know what packages to install to get
this build going? I naturally have everything going to make a regular ./configure build of PHP
(autoconf, gcc, libxml, etc) + Wine
My Linux dev is using Elementary which seems to be some Ubuntu flavor or at least thats where it
gets its packages from \o/
------------------------------------------------------------------------
[2017-10-23 02:12:08] svnpenn at gmail dot com
added comment
------------------------------------------------------------------------
[2017-10-23 02:11:20] svnpenn at gmail dot com
@kalle that looks good so far but again those are only 2 issues. So far I have come across similar
issues with the below additional files. Probably most files that assume "WIN32 == Visual
Studio" are going to need some attention. Note I am working on a patch myself, but it is a slow
process so maybe someone will be faster at it than me.
TSRM/TSRM.h
TSRM/tsrm_config_common.h
ext/fileinfo/libmagic/compress.c
ext/phar/func_interceptors.c
ext/phar/stream.c
ext/standard/basic_functions.c
ext/standard/crypt_freesec.c
ext/standard/dns.c
ext/standard/file.c
ext/standard/ftp_fopen_wrapper.c
ext/standard/http_fopen_wrapper.c
ext/standard/streamsfuncs.c
main/php_compat.h
main/php_network.h
main/php_syslog.h
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=75412
--
Edit this bug report at https://bugs.php.net/bug.php?id=75412&edit=1