[php-src] Issue #7986: PHP extension "sockets" build error (could not compile)

From: Date: Sat, 22 Jan 2022 12:57:05 +0000
Subject: [php-src] Issue #7986: PHP extension "sockets" build error (could not compile)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239213@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7986 Comment Author: eduard-haritonov I confirm: the patch https://github.com/php/php-src/pull/7981/files fixes the issue: ``` # docker run -it --rm php:8.0.15-fpm-bullseye bash ~# docker-php-source extract ~# patch /usr/src/php/ext/sockets/config.m4 -i- <<EOF @@ -67,6 +67,9 @@ AC_CACHE_CHECK([if ancillary credentials uses ucred],[ac_cv_ucred], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #include <sys/socket.h> ]], [[struct ucred u = {.gid = 0};]])], [ac_cv_ucred=yes], [ac_cv_ucred=no]) EOF ~# docker-php-ext-install -j"$(nproc)" sockets .... Build complete. ``` Thanks.

« previous php.bugs (#239213) next »