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
PHP 8.0.15 failing to build sockets extension #1245
Comments
Looks like this is likely an upstream PHP bug in php/php-src@51647eb. And the relevant configure lines where both checking if ancillary credentials uses ucred... no
checking if ancillary credentials uses cmsgcred... no |
Hello, what would be the config.log content at the ucred detection part ? I have my suspicions but just to check. |
Confirmed this also fails for the newly released PHP 8.1.2 |
There was more discussion on this over in php/php-src#7978 which has led to php/php-src#7981 -- I think it could probably benefit from some users testing it. 😄 👀 |
@tianon Tested that PR with the following and all built PHP with sockets
where
Will make this modification to my Dockerfile and run in staging for a bit |
One more user build affected because of |
Unfortunately this issue is also present in the latest 8.1.2 builds. (For further information please see the mention above) |
Same issue with php8.0-apache |
Same with php8.1-apache |
As a workaround you can put something like:
In your Dockerfile. |
@MastaG your workaround tested, but not works for me:
|
The _GNU_SOURCE constant was not meant to be used so widely. |
Yes, it's a nasty workaround.
And make sure we don't build or compile anything after this. |
Another workaround is to set the CFLAGS variable just for the sockets install step in your Dockerfile:
This will produce another layer but uses the fix only for the socket install. |
That's even better Thomas :)
Op ma 24 jan. 2022 17:36 schreef Thomas ***@***.***>:
… Another workaround is to set the CFLAGS variable just for the sockets
install step in your Dockerfile:
RUN CFLAGS="$CFLAGS -D_GNU_SOURCE" docker-php-ext-install sockets
This will produce another layer but uses the fix only for the socket
install.
—
Reply to this email directly, view it on GitHub
<#1245 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADSRCEYIWRCOLK36H3T2Q53UXV5ZFANCNFSM5MOFO7NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Unfortunately this didn't work for me (using 8.0.15-fpm-alpine3.15 as base image) |
@rgerovski thanks for the workaround |
I'm sorry to hear, the following minimal example is running fine for me:
|
* php 8.0.15 failing docker-library/php#1245 * Update Dockerfile
Bug issue: php/php-src#7978 Docker image issue: docker-library/php#1245
Bug issue: php/php-src#7978 Docker image issue: docker-library/php#1245
|
The official fixes for this are part of 8.0.16RC1 and 8.1.3RC1, one of which is in docker-library/official-images#11805 already and the other of which will be there shortly (thanks to #1249). 👍 |
Thank you @tianon! How long it takes for the image to be published on Docker Hub? |
https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what 👀 Usually the build/push takes something like a few hours after the official images PR is merged, but depends heavily on the existing build queue. |
@tianon Will this fix be backported in |
Yes, 8.0.16 will eventually be released (upstream), and will contain this fix (the "RC" in that version number stands for "Release Candidate"). |
This comment was marked as duplicate.
This comment was marked as duplicate.
Must be a similar issue for me ? |
Yep, it's relevant for that your question. Look at my Image |
Bug issue: php/php-src#7978 Docker image issue: docker-library/php#1245
Bug issue: php/php-src#7978 Docker image issue: docker-library/php#1245
The sockets extension is used by the current version of drupal/rabbitmq 3.x which is required by the social_real_time module on which the social_chat extension is built. Enabling the extension this way should be enough to make the CI for the mentioned modules work again. There is a known issue in some specific PHP docker image versions but that seems to have been fixed, see docker-library/php#1245
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
I am trying to build the PHP
sockets
extension with thephp:8.0-fpm
tag. This tag updated to PHP 8.0.15 today and is failing with the output below. Using thephp:8.0.14-fpm
works as expectedChecked the following tags and all fail with the same error
8.0.15-fpm-bullseye
8.0.15-fpm-buster
8.0.15-fpm-alpine3.15
8.0.15-fpm-alpine3.14
8.0.15-cli-bullseye
: not FPM, but wanted to confirm it also failsThe text was updated successfully, but these errors were encountered: