You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves this issue and allows the php Extension to build under windows.
The text was updated successfully, but these errors were encountered:
gwharton
changed the title
Protobufs use of <sys/time.h> prevents building of protobuf php extension on Windows
Protobuf PHP Extension cannot be built on windows. <sys/time.h> prevents building of protobuf php extension on Windows
Aug 19, 2024
gwharton
changed the title
Protobuf PHP Extension cannot be built on windows. <sys/time.h> prevents building of protobuf php extension on Windows
Protobuf PHP Extension cannot be built on windows. The build fails with file not found <sys/time.h>
Aug 19, 2024
gwharton
changed the title
Protobuf PHP Extension cannot be built on windows. The build fails with file not found <sys/time.h>
Protobuf PHP Extension cannot be built on windows. "Cannot open include file: 'sys/time.h'"
Aug 19, 2024
This PR adds a config.w32 for the PHP extension and includes it in the tgz for PECL.
I used this to build php_protobuf.dll for PHP 8.2.7.
See phalcon/cphalcon#16318 (comment) for the request to build the extension and the result.
Please review and merge.
Closes#13097
COPYBARA_INTEGRATE_REVIEW=#13097 from Jan-E:php-windows 4259af1
PiperOrigin-RevId: 542050878
Microsoft Windows 11
Microsoft Visual Studio Community 2022
Protocol Buffers v27.3
Building the protobuf PHP extension on windows fails due to dependency on sys/time.h
This seems to be an issue with the extensions config.<m4/w32> files.
Here the Linux module config compiles only third_party/utf8_range/utf8_range.c from the utf8_range library
protobuf/php/ext/google/protobuf/config.m4
Lines 1 to 11 in 025909c
Whereas the windows module config appears to compile /third_party/utf8_range/*.c
protobuf/php/ext/google/protobuf/config.w32
Lines 1 to 14 in 025909c
changing the file https://github.com/protocolbuffers/protobuf/blob/025909cb539359c8001cf69707229587d430adff/php/ext/google/protobuf/config.w32 to
Resolves this issue and allows the php Extension to build under windows.
The text was updated successfully, but these errors were encountered: