Skip to content
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

ext-sockets won't compile in official Docker image 8.3.3-fpm-alpine3.19 #13532

Closed
egege opened this issue Feb 27, 2024 · 3 comments
Closed

ext-sockets won't compile in official Docker image 8.3.3-fpm-alpine3.19 #13532

egege opened this issue Feb 27, 2024 · 3 comments

Comments

@egege
Copy link

egege commented Feb 27, 2024

Description

  1. Try creating a Docker image FROM 8.3.3-fpm-alpine3.19
  2. Include there a RUN command docker-php-ext-install sockets

Dockerfile:

FROM php:8.3.3-fpm-alpine3.19

RUN docker-php-ext-install sockets

ErrorLog:

91.24 checking whether to build shared libraries... yes
91.24 checking whether to build static libraries... no
91.26 
91.26 creating libtool
91.28 appending configuration tag "CXX" to libtool
91.30 configure: patching config.h.in
91.31 configure: creating ./config.status
91.32 config.status: creating config.h
91.33 /bin/sh /usr/src/php/ext/sockets/libtool --tag=CC --mode=compile cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H  -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/sockets.c -o sockets.lo  -MMD -MF sockets.dep -MT sockets.lo
91.35 mkdir .libs
91.35  cc -I. -I/usr/src/php/ext/sockets -I/usr/src/php/ext/sockets/include -I/usr/src/php/ext/sockets/main -I/usr/src/php/ext/sockets -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /usr/src/php/ext/sockets/sockets.c -MMD -MF sockets.dep -MT sockets.lo  -fPIC -DPIC -o .libs/sockets.o
91.55 /usr/src/php/ext/sockets/sockets.c:59:12: fatal error: linux/sock_diag.h: No such file or directory
91.55    59 | #  include <linux/sock_diag.h>
91.55       |            ^~~~~~~~~~~~~~~~~~~
91.55 compilation terminated.
91.55 make: *** [Makefile:209: sockets.lo] Error 1

PHP Version

8.3

Operating System

Alpine

@egege
Copy link
Author

egege commented Feb 27, 2024

related links:
#8899
#8681

@devnexen
Copy link
Member

devnexen commented Feb 27, 2024

Note that php does not manage the docker images. It would be best to report to them to add to the the dependencies the missing linux-headers package.

@tianon
Copy link
Contributor

tianon commented Feb 28, 2024

Apologies for the noise -- answer is in docker-library/php#1500 (comment)

@damianwadley damianwadley closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants