Commit b456d44d authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Fix memfd error

parent 681709b2
......@@ -5,6 +5,7 @@ all: httpd-conf php-fpm-service
swapon swap
tar xf php-8.3.8.tar.xz
patch -Np1 -d php-8.3.8 < php-8.3.8-fix_memfd.patch
cd php-8.3.8 && ./configure --prefix=/usr --sysconfdir=/etc --with-config-file-scan-dir=/etc/php.d --localstatedir=/var --datadir=/usr/share/php --mandir=/usr/share/man --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-fpm-systemd --with-config-file-path=/etc --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-dba=shared --with-gdbm --with-gmp --enable-ftp --with-gettext --enable-mbstring --with-readline --enable-sockets --enable-intl --enable-soap --with-openssl --with-mysqli --with-pdo-mysql --with-mysql-sock=/run/mysqld/mysqld.sock --with-curl --enable-gd --with-jpeg --with-freetype --with-ldap --with-xsl --enable-exif --with-zip
$(MAKE) -C php-8.3.8 CPPFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
-yes "n" | $(MAKE) -C php-8.3.8 test
......
diff -uNr php-8.3.8/ext/opcache/zend_shared_alloc.c php-8.3.8-fix_memfd/ext/opcache/zend_shared_alloc.c
--- php-8.3.8/ext/opcache/zend_shared_alloc.c 2024-06-05 00:23:17.000000000 +0930
+++ php-8.3.8-fix_memfd/ext/opcache/zend_shared_alloc.c 2026-09-07 13:18:29.837112673 +0930
@@ -24,6 +24,7 @@
# define _GNU_SOURCE
# endif
# include <sys/mman.h>
+# include <linux/memfd.h>
#endif
#include <errno.h>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment