* [Buildroot] [PATCH 1/1] package/php: opcache needs dynamic library
@ 2021-08-03 17:06 Fabrice Fontaine
2021-08-04 20:50 ` Arnout Vandecappelle
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-08-03 17:06 UTC (permalink / raw)
To: buildroot; +Cc: Bernd Kuhls, Fabrice Fontaine
opcache needs dynamic library since version 8.0.0 and
https://github.com/php/php-src/commit/9a06876072b9ccb023d4a14426ccb587f10882f3
otherwise the build will fail on:
/tmp/instance-4/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /tmp/instance-4/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(__uClibc_main.os): in function `__uClibc_fini':
__uClibc_main.c:(.text+0x15c): undefined reference to `__fini_array_start'
/tmp/instance-4/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: __uClibc_main.c:(.text+0x160): undefined reference to `__fini_array_end'
Fixes:
- http://autobuild.buildroot.org/results/526d2e3108ff2506482d1665bcc3ed083961430f
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/php/Config.ext | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/php/Config.ext b/package/php/Config.ext
index 7c97316048..5da5d8bed9 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -10,8 +10,12 @@ config BR2_PACKAGE_PHP_EXT_FILEINFO
help
File Information support
+comment "OPcache needs a toolchain w/ dynamic library"
+ depends on BR2_STATIC_LIBS
+
config BR2_PACKAGE_PHP_EXT_OPCACHE
bool "OPcache"
+ depends on !BR2_STATIC_LIBS
help
Enable the Zend OPcache accelerator.
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/php: opcache needs dynamic library
2021-08-03 17:06 [Buildroot] [PATCH 1/1] package/php: opcache needs dynamic library Fabrice Fontaine
@ 2021-08-04 20:50 ` Arnout Vandecappelle
0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2021-08-04 20:50 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot; +Cc: Bernd Kuhls
On 03/08/2021 19:06, Fabrice Fontaine wrote:
> opcache needs dynamic library since version 8.0.0 and
> https://github.com/php/php-src/commit/9a06876072b9ccb023d4a14426ccb587f10882f3
> otherwise the build will fail on:
>
> /tmp/instance-4/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /tmp/instance-4/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(__uClibc_main.os): in function `__uClibc_fini':
> __uClibc_main.c:(.text+0x15c): undefined reference to `__fini_array_start'
> /tmp/instance-4/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: __uClibc_main.c:(.text+0x160): undefined reference to `__fini_array_end'
>
> Fixes:
> - http://autobuild.buildroot.org/results/526d2e3108ff2506482d1665bcc3ed083961430f
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> package/php/Config.ext | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/package/php/Config.ext b/package/php/Config.ext
> index 7c97316048..5da5d8bed9 100644
> --- a/package/php/Config.ext
> +++ b/package/php/Config.ext
> @@ -10,8 +10,12 @@ config BR2_PACKAGE_PHP_EXT_FILEINFO
> help
> File Information support
>
> +comment "OPcache needs a toolchain w/ dynamic library"
> + depends on BR2_STATIC_LIBS
> +
> config BR2_PACKAGE_PHP_EXT_OPCACHE
> bool "OPcache"
> + depends on !BR2_STATIC_LIBS
> help
> Enable the Zend OPcache accelerator.
>
>
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-04 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-03 17:06 [Buildroot] [PATCH 1/1] package/php: opcache needs dynamic library Fabrice Fontaine
2021-08-04 20:50 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).