From: "Adrian Bunk" <bunk@stusta.de>
To: Claude Bing <cbing@cybernetics.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-oe][PATCH] php: fix opcache link error in 7.4
Date: Fri, 8 May 2020 13:56:10 +0300 [thread overview]
Message-ID: <20200508105610.GA8452@localhost> (raw)
In-Reply-To: <20200507142806.48643a47@cy-rd-cb>
On Thu, May 07, 2020 at 02:28:06PM -0400, Claude Bing wrote:
> Explicitly specifying -lrt is required for opcache to be linked against
> the proper dependencies. Additionally, PHP disables libdl when it
> detects a cross-compilation environment for some reason. In order to
> load any type of extension, re-enabling libdl is required.
>...
> +# link against librt (libc) if opcache is specified in order to avoid the
> +# following error:
> +# 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
> +LDFLAGS += "${@ " -lrt " if bb.utils.contains('PACKAGECONFIG', 'opcache', 'true', 'false', d) else "" }"
Is this actually a bug in 0001-opcache-config.m4-enable-opcache.patch
and should instead be fixed there?
- AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support])
- AC_MSG_RESULT([yes])
- PHP_CHECK_LIBRARY(rt, shm_unlink, [PHP_ADD_LIBRARY(rt,1,OPCACHE_SHARED_LIBADD)])
+ AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support])
I would guess re-adding the PHP_CHECK_LIBRARY fixes your problem?
> +# Adding these flags enables dynamic library support, which is disabled by
> +# default when cross compiling
> +# See https://bugs.php.net/bug.php?id=60109
> +CFLAGS += " -DHAVE_LIBDL "
> +LDFLAGS += " -ldl "
> +
>...
The linked PHP bug was closed in 2018 due to lack of feedback.
cu
Adrian
next prev parent reply other threads:[~2020-05-08 10:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 18:28 [meta-oe][PATCH] php: fix opcache link error in 7.4 Claude Bing
2020-05-08 10:56 ` Adrian Bunk [this message]
2020-05-08 14:42 ` [oe] " Claude Bing
2020-05-08 18:41 ` Adrian Bunk
2020-05-08 21:27 ` Claude Bing
2020-05-09 18:54 ` Steve Sakoman
2020-05-11 14:32 ` Claude Bing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200508105610.GA8452@localhost \
--to=bunk@stusta.de \
--cc=cbing@cybernetics.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.