Bug #75412 [Opn->Ana]: Build with Mingw-w64

From: Date: Sat, 21 Oct 2017 18:30:14 +0000
Subject: Bug #75412 [Opn->Ana]: Build with Mingw-w64
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211809@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:             Open
+Status:             Analyzed
 Type:               Bug
 Package:            *General Issues
 Operating System:   Windows
 PHP Version:        7.1.10
 Block user comment: N
 Private report:     N

 New Comment:

Hi @svnpenn

I think the main reason for this not being supported is that no one on the development team have
ever done a build like that or there have been any past requests for it.

If its only u_char thats the issue, then perhaps the define can be moved to php.h (in php-src/main),
where a lot of cross OS compatibility macros and types also are defined.


Previous Comments:
------------------------------------------------------------------------
[2017-10-21 15:28:21] svnpenn at gmail dot com

Description:
------------
Currently you can build PHP with Linux, Cygwin and Visual Studio. However
Mingw-w64 [1] is currently not supported. It would be invoked using:

./configure --host x86_64-w64-mingw32

or similar. You can tell for sure that is it not currently supported by looking
at "u_char". Mingw-w64 does not define this, same as Visual Studio. PHP accounts
for this with "win32/php_stdint.h" [2]:

typedef unsigned __int8 u_char;

However this same file cannot be used with Mingw-w64 [3]:

#error "Use this header only with Microsoft Visual C++ compilers!"

[1] http://mingw-w64.org
[2] http://github.com/php/php-src/blob/f56ceb7/win32/php_stdint.h#L264
[3] http://github.com/php/php-src/blob/f56ceb7/win32/php_stdint.h#L33



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=75412&edit=1


Thread (14 messages)

« previous php.bugs (#211809) next »