-
Notifications
You must be signed in to change notification settings - Fork 7.9k
master does not build on Alpine II #8681
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
Comments
Would it be possible for you to see if you have |
I tried mvorisek@695f511 which confirms the correct/latest master is used and prev commit confirms the CI: https://github.com/mvorisek/image-php/runs/6696224924?check_suite_focus=true#step:5:956 |
does the header linux/sock_diag.h actually exists by the way ? |
this is probably the issue - official PHP for Docker installs it in https://github.com/docker-library/php/blob/f275451/Dockerfile-linux.template#L257 but with Alpine base image, it uninstalls it after the php it built immediatelly (before any extensions are built) I install the extensions with https://github.com/mlocati/docker-php-extension-installer I will close the issue here and open it there |
@mvorisek I followed the issue on the docker-php-extension-installer repo and it looks like you pushed a fix. However, I'm still running into this issue with |
not sure about the latest master, but about a month ago I built PHP 8.2 successfully. |
I can confirm stable php:8.2.0-alpine3.17 is still affected by this. |
It took me a while to understand what to do even though required package was mentioned in this thread So if anyone is scrolling in search of the solutions: you have to have apk add --no-cache linux-headers It's required not only for |
@devnexen , The installation of linux-headers resolved build error for NTS builds but not ZTS builds.
|
I still get this issue regardless of installing the linux-headers:
Occurring both on php8.2 and 8.3. Anyone else have this issue? |
same 1+ |
I do not have the issue anymore and #8681 (comment) fixed it for me. If you are still having this issue, sharing a full but minimal Dockerfile here would be helpful so someone else can reproduce and possibly guide you to the solution. |
the same here php:8.2-fpm-alpine3.18 |
Logs
DockerFile
|
https://github.com/mvorisek/image-php/pkgs/container/image-php |
unfortunately, I'm using php8.2 or less for now, its works on php8.1 but not work on php8.2 |
https://github.com/mvorisek/image-php/pkgs/container/image-php#docker-images-for-php you can use 7.4 - 8.3, nts/zts, Debian, Alpine, ... |
thanks for the reply, I will test |
the same here php:8.3.3-fpm-alpine3.19 😭 |
Do you have linux-headers package installed? |
no ErrorLog
DockerFile
|
Description
see https://github.com/mvorisek/image-php/runs/6686912469?check_suite_focus=true#step:5:509
probably introduced in #8411, /cc @devnexen
original fix did not fix it - see #8674
it seems
#include <linux/sock_diag.h>
is somehow not supported everywherePHP Version
master/8.2
Operating System
Alpine
The text was updated successfully, but these errors were encountered: