Skip to contentSkip to conversation

php: error running opcache

oe Claude Bing 2 participants 3 messages May 7, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

I think that I have fixed the issue by overriding the following line in php_7.4.4.bb:

PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache"

to

PACKAGECONFIG[opcache] = "--enable-opcache=shared,--disable-opcache"

Regards,

Claude Bing

Quoted 17 lines · Claude Bing

Hello all. I am in the process of upgrading our Yocto installation to the Dunfell branch(es), and I came across a peculiar issue with PHP. We use the opcache extension, but it is emitting the following error on startup:

Failed loading /usr/lib/php7/extensions/no-debug-non-zts-20190902/opcache.so:
/usr/lib/php7/extensions/no-debug-non-zts-20190902/opcache.so: undefined
symbol: shm_unlink

Is anyone else having this issue in their environment? I will continue researching to see what caused the problem to appear between Zeus and Dunfell, but I suspect it has something to do with the PHP 7.4 upgrade.

#2 lore raw
Quoted 11 lines · Claude Bing

I think that I have fixed the issue by overriding the following line in php_7.4.4.bb:

PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache"

to

PACKAGECONFIG[opcache] = "--enable-opcache=shared,--disable-opcache"

Regards,

Can you also prepare a patch and send here

Quoted 22 lines

Claude Bing

Quoted 19 lines · Claude Bing

Hello all. I am in the process of upgrading our Yocto installation to the Dunfell branch(es), and I came across a peculiar issue with PHP. We use the opcache extension, but it is emitting the following error on startup:

Failed loading /usr/lib/php7/extensions/no-debug-non-zts-20190902/opcache.so:
/usr/lib/php7/extensions/no-debug-non-zts-20190902/opcache.so: undefined
symbol: shm_unlink

Is anyone else having this issue in their environment? I will continue researching to see what caused the problem to appear between Zeus and Dunfell, but I suspect it has something to do with the PHP 7.4 upgrade.

#3 lore raw

During debugging I also included -lrt in LDFLAGS, so I will need to see if that is still required, or if I can drop that part.

Afterwards I will send a patch, yes. Thanks :)

Regards,

Claude Bing

Quoted 41 lines · Khem Raj
Quoted 11 lines · Claude Bing

I think that I have fixed the issue by overriding the following line in php_7.4.4.bb:

PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache"

to

PACKAGECONFIG[opcache] = "--enable-opcache=shared,--disable-opcache"

Regards,

Can you also prepare a patch and send here

Quoted 24 lines

Claude Bing

Quoted 21 lines · Claude Bing

Hello all. I am in the process of upgrading our Yocto installation to the Dunfell branch(es), and I came across a peculiar issue with PHP. We use the opcache extension, but it is emitting the following error on startup:

Failed loading /usr/lib/php7/extensions/no-debug-non-zts-20190902/opcache.so:
/usr/lib/php7/extensions/no-debug-non-zts-20190902/opcache.so: undefined
symbol: shm_unlink

Is anyone else having this issue in their environment? I will continue researching to see what caused the problem to appear between Zeus and Dunfell, but I suspect it has something to do with the PHP 7.4 upgrade.