php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78553 opcache.so: undefined symbol: shm_unlink
Submitted: 2019-09-17 15:15 UTC Modified: 2019-11-07 11:01 UTC
From: bugreports at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.4Git-2019-09-17 (Git) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugreports at gmail dot com
New email:
PHP Version: OS:

 

 [2019-09-17 15:15 UTC] bugreports at gmail dot com
Description:
------------
1.3M 2019-09-17 16:57 BUILD/php-7.4.0/modules/opcache.so

[17-Sep-2019 14:57:09 UTC] PHP Warning:  Failed loading Zend extension 'opcache' (tried: BUILD/php-7.4.0/modules/opcache (BUILD/php-7.4.0/modules/opcache: cannot open shared object file: No such file or directory), BUILD/php-7.4.0/modules/opcache.so (BUILD/php-7.4.0/modules/opcache.so: undefined symbol: shm_unlink)) in Unknown on line 0

./configure --quiet --host=x86_64-redhat-linux --build=x86_64-redhat-linux --target=x86_64-redhat-linux --prefix=/usr --program-prefix= --libdir=/usr/lib64/php --disable-all --disable-static --enable-shared --enable-apcu=shared --enable-bcmath=shared --enable-calendar=shared --enable-cli --enable-ctype=shared --enable-dom=shared --enable-exif=shared --enable-fileinfo=shared --enable-filter --enable-gcc-global-regs --enable-gd=shared --enable-hash --enable-huge-code-pages --enable-inline-optimization --enable-intl=shared --enable-json=shared --enable-libxml --enable-mbregex --enable-mbstring=shared --enable-mysqlnd=shared --enable-opcache=shared --enable-pcntl=shared --enable-pdo=shared --enable-phar=shared --enable-posix=shared --enable-re2c-cgoto --enable-session=shared --enable-simplexml=shared --enable-soap=shared --enable-sockets=shared --enable-tokenizer=shared --enable-xml=shared --enable-xmlreader=shared --enable-xmlwriter=shared --enable-zip=shared --with-apxs2=/usr/bin/apxs --with-bz2=shared,/usr --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.lounge.d --with-curl=shared,/usr --with-freetype --with-freetype-dir=/usr --with-gd=shared --with-iconv=shared --with-imap=shared,/usr --with-jpeg --with-jpeg-dir=/usr --with-layout=GNU --with-libdir=lib64 --with-libedit=shared,/usr --with-libxml --with-libxml-dir=/usr --with-libzip=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=shared,mysqlnd --with-openssl=/usr --with-pcre-jit --with-pcre-regex=/usr --with-pdo-mysql=shared,mysqlnd --with-pic --with-png-dir=/usr --with-system-ciphers --with-system-tzdata --with-tidy=shared,/usr --with-webp --with-webp-dir=/usr --with-zip=shared --with-zlib-dir=/usr --with-zlib=shared --without-kerberos --without-xpm --disable-cgi --disable-dmalloc --disable-dtrace --disable-gcov --disable-gd-jis-conv --disable-mysqlnd-compression-support --disable-opcache-file --disable-phpdbg --disable-rpath --disable-short-tags --disable-debug --without-valgrind --without-pcre-valgrind --disable-valgrind-checks


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-09-19 13:18 UTC] bugreports at gmail dot com
it's "-Wl,--as-needed" in LDFLAGS what got broken in the past weeks on the 7.4 tree, using it for years everywhere and distributions are on their way to make it default for the sake of minimize uneeded package dependencies
 [2019-09-22 19:22 UTC] bugreports at gmail dot com
still the same with todays GIT

"No such file or directory" should be fixed too because it's nonsense in that context

[22-Sep-2019 19:17:00 UTC] PHP Warning:  Failed loading Zend extension 'opcache' (tried: /BUILD/php-7.4.0/modules/opcache (/BUILD/php-7.4.0/modules/opcache: cannot open shared object file: No such file or directory), /BUILD/php-7.4.0/modules/opcache.so (/BUILD/php-7.4.0/modules/opcache.so: undefined symbol: shm_unlink)) in Unknown on line 0
 [2019-10-01 22:03 UTC] vytas dot LT at gmail dot com
Confirmed on 7.4.0RC3 Fedora 30, Remi build, CLI
 [2019-10-03 23:46 UTC] bugreports at gmail dot com
still the same with current 7.4 HEAD while "-Wl,--as-needed" works for years and is still fine with 7.2/7.3- distributions are moving to "-Wl,--as-needed" for good reasons
 [2019-10-11 10:17 UTC] bugreports at gmail dot com
FWIW:

Dmitry Stogov	Revert "Fixed CLI/CGI/FPM build, when they are 
Dmitry Stogov	Revert "Don't buid static libaraies when only DSO required"
Dmitry Stogov	Revert "Link executable files using non PIC object... 

- add '-Wl,--as-needed' to LDFLAGS again
- https://git.php.net/?p=php-src.git;a=commit;h=1bb1a1ee285e0a41247f2f60e8f0f03e8a1d9325
 [2019-11-07 11:01 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2019-11-07 11:01 UTC] nikic@php.net
As far as I understood, this has been fixed by the revert of the PIC related changes, so closing here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 12:01:28 2024 UTC