Skip to content

--disable-ipv6 during compilation produces error EAI_SYSTEM not found on php-8.3.10-src #15565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
determin1st opened this issue Aug 24, 2024 · 2 comments

Comments

@determin1st
Copy link

determin1st commented Aug 24, 2024

Description

while compiling on Windows i got this error:

        "cl.exe" /D _USRDLL /D PHP7DLLTS_EXPORTS /D PHP_EXPORTS /D LIBZEND_EXPORTS /D TSRM_EXPORTS /D SAPI_EXPORTS /D WINVER=0x0601 /D COMPILE_DL_OPCACHE -Iext/bcmath/libbcmath/src /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1  /Iext/date/lib /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /DHAVE_TIMELIB_CONFIG_H=1 /wd4244 /I "ext/hash/sha3/generic64lc" /DHAVE_KECCAKHASH_H=1 /DKeccakP200_excluded /DKeccakP400_excluded /DKeccakP800_excluded /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /I "ext/hash/murmur" /DHAVE_PMURHASH_H=1 /I "ext/hash/xxhash" /DHAVE_XXHASH_H=1 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/pcre/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /D HAVE_CONFIG_H /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /I "ext/date/lib" /DHAVE_TIMELIB_CONFIG_H=1 /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /nologo /I . /I main /I Zend /I TSRM /I ext /D _WINDOWS /D WINDOWS=1 /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /D _USE_MATH_DEFINES /FD /wd4996 /Qspectre /guard:cf /Zc:inline /Zc:__cplusplus /d2FuncCache1 /Zc:wchar_t /MP /LD /MD /Ox /D NDebug /D NDEBUG /GF /D ZEND_DEBUG=0 /I "E:\php-sdk-binary-tools\phpmaster\vs16\x64\deps\include" /D FD_SETSIZE=256 /FoE:\php-sdk-binary-tools\phpmaster\vs16\x64\php-src\x64\Release\main\ /FpE:\php-sdk-binary-tools\phpmaster\vs16\x64\php-src\x64\Release\main\ /FRE:\php-sdk-binary-tools\phpmaster\vs16\x64\php-src\x64\Release\main\ /FdE:\php-sdk-binary-tools\phpmaster\vs16\x64\php-src\x64\Release\main\ /D ZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /d2FuncCache1 /c main\SAPI.c main\fopen_wrappers.c main\getopt.c main\internal_functions.c main\main.c main\network.c main\output.c main\php_content_types.c main\php_ini.c main\php_ini_builder.c main\php_odbc_utils.c main\php_open_temporary_file.c main\php_scandir.c main\php_syslog.c main\php_ticks.c main\php_variables.c main\reentrancy.c main\rfc1867.c main\safe_bcmp.c main\snprintf.c main\spprintf.c main\strlcat.c main\strlcpy.c
SAPI.c
fopen_wrappers.c
getopt.c
internal_functions.c
main.c
network.c
main\network.c(121): error C2065: 'EAI_SYSTEM': undeclared identifier
main\network.c(121): error C2099: initializer is not a constant
main\network.c(121): warning C4047: 'initializing': 'int' differs in levels of indirection from 'char [13]'
output.c
php_content_types.c
php_ini.c
php_ini_builder.c
php_odbc_utils.c
php_open_temporary_file.c
php_scandir.c
php_syslog.c
php_ticks.c
php_variables.c
reentrancy.c
rfc1867.c
safe_bcmp.c
snprintf.c
Generating Code...
Compiling...
spprintf.c
strlcat.c
strlcpy.c
Generating Code...
NMAKE : fatal error U1077: 'E:\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe' : return code '0x2'
Stop.

EAI_SYSTEM is nowhere to found except that network.c file. without disable ipv6 option everything compiles

commands i enter to php-sdk-binary-tools

buildconf
configure --disable-ipv6
nmake
@nielsdos
Copy link
Member

I can reproduce this on 8.2 even, might need an #ifdef...

@nielsdos nielsdos added Bug and removed Feature labels Aug 24, 2024
@nielsdos
Copy link
Member

Looks like @cmb69 and I are in an IRL race condition ;) I was about to write and test a patch.

nielsdos added a commit to nielsdos/php-src that referenced this issue Aug 24, 2024
nielsdos added a commit that referenced this issue Aug 24, 2024
* PHP-8.2:
  Fix GH-15565: --disable-ipv6 during compilation produces error EAI_SYSTEM not found
nielsdos added a commit that referenced this issue Aug 24, 2024
* PHP-8.3:
  Fix GH-15565: --disable-ipv6 during compilation produces error EAI_SYSTEM not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants