* [Buildroot] [PATCH 1/1] php: fix build with mysqli
@ 2018-08-27 13:21 Christopher McCrory
2018-08-27 15:31 ` Peter Korsgaard
2018-08-28 8:13 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Christopher McCrory @ 2018-08-27 13:21 UTC (permalink / raw)
To: buildroot
This fixes autobuild failures like
http://autobuild.buildroot.net/results/3288b742cee650ee47a41c5b4d6aaef1fe67bff1
php compile breaks with:
ext/mysqlnd/mysqlnd_auth.o: In function `php_mysqlnd_scramble_sha2':
mysqlnd_auth.c:(.text+0x1054): undefined reference to `PHP_SHA256Init'
mysqlnd_auth.c:(.text+0x1064): undefined reference to `PHP_SHA256Update'
mysqlnd_auth.c:(.text+0x1070): undefined reference to `PHP_SHA256Final'
mysqlnd_auth.c:(.text+0x1078): undefined reference to `PHP_SHA256Init'
mysqlnd_auth.c:(.text+0x1088): undefined reference to `PHP_SHA256Update'
mysqlnd_auth.c:(.text+0x1094): undefined reference to `PHP_SHA256Final'
mysqlnd_auth.c:(.text+0x109c): undefined reference to `PHP_SHA256Init'
mysqlnd_auth.c:(.text+0x10ac): undefined reference to `PHP_SHA256Update'
mysqlnd_auth.c:(.text+0x10bc): undefined reference to `PHP_SHA256Update'
mysqlnd_auth.c:(.text+0x10c8): undefined reference to `PHP_SHA256Final'
It looks like the php mysqli extension needs the hash extension to work. This
seems to be a php Make dependany bug. This patch works around it until the
upstream maintainers can fix it.
--
I'm OK with modifing the above at commit time.
Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
---
package/php/Config.ext | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/php/Config.ext b/package/php/Config.ext
index 6b3d86925d..60ef1aee7c 100644
--- a/package/php/Config.ext
+++ b/package/php/Config.ext
@@ -113,6 +113,7 @@ endif
config BR2_PACKAGE_PHP_EXT_MYSQLI
bool "Mysqli"
+ select BR2_PACKAGE_PHP_EXT_HASH
help
MySQL Improved extension support
--
2.14.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] php: fix build with mysqli
2018-08-27 13:21 [Buildroot] [PATCH 1/1] php: fix build with mysqli Christopher McCrory
@ 2018-08-27 15:31 ` Peter Korsgaard
2018-08-28 8:13 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-08-27 15:31 UTC (permalink / raw)
To: buildroot
>>>>> "Christopher" == Christopher McCrory <chrismcc@gmail.com> writes:
> This fixes autobuild failures like
> http://autobuild.buildroot.net/results/3288b742cee650ee47a41c5b4d6aaef1fe67bff1
> php compile breaks with:
> ext/mysqlnd/mysqlnd_auth.o: In function `php_mysqlnd_scramble_sha2':
> mysqlnd_auth.c:(.text+0x1054): undefined reference to `PHP_SHA256Init'
> mysqlnd_auth.c:(.text+0x1064): undefined reference to `PHP_SHA256Update'
> mysqlnd_auth.c:(.text+0x1070): undefined reference to `PHP_SHA256Final'
> mysqlnd_auth.c:(.text+0x1078): undefined reference to `PHP_SHA256Init'
> mysqlnd_auth.c:(.text+0x1088): undefined reference to `PHP_SHA256Update'
> mysqlnd_auth.c:(.text+0x1094): undefined reference to `PHP_SHA256Final'
> mysqlnd_auth.c:(.text+0x109c): undefined reference to `PHP_SHA256Init'
> mysqlnd_auth.c:(.text+0x10ac): undefined reference to `PHP_SHA256Update'
> mysqlnd_auth.c:(.text+0x10bc): undefined reference to `PHP_SHA256Update'
> mysqlnd_auth.c:(.text+0x10c8): undefined reference to `PHP_SHA256Final'
> It looks like the php mysqli extension needs the hash extension to work. This
> seems to be a php Make dependany bug. This patch works around it until the
> upstream maintainers can fix it.
> --
> I'm OK with modifing the above at commit time.
> Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
The Signed-off-by line should go above the -- (like git commit -s
automatically does) so it isn't dropped by git when the patch is
applied.
Committed with that fixed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] php: fix build with mysqli
2018-08-27 13:21 [Buildroot] [PATCH 1/1] php: fix build with mysqli Christopher McCrory
2018-08-27 15:31 ` Peter Korsgaard
@ 2018-08-28 8:13 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2018-08-28 8:13 UTC (permalink / raw)
To: buildroot
>>>>> "Christopher" == Christopher McCrory <chrismcc@gmail.com> writes:
> This fixes autobuild failures like
> http://autobuild.buildroot.net/results/3288b742cee650ee47a41c5b4d6aaef1fe67bff1
> php compile breaks with:
> ext/mysqlnd/mysqlnd_auth.o: In function `php_mysqlnd_scramble_sha2':
> mysqlnd_auth.c:(.text+0x1054): undefined reference to `PHP_SHA256Init'
> mysqlnd_auth.c:(.text+0x1064): undefined reference to `PHP_SHA256Update'
> mysqlnd_auth.c:(.text+0x1070): undefined reference to `PHP_SHA256Final'
> mysqlnd_auth.c:(.text+0x1078): undefined reference to `PHP_SHA256Init'
> mysqlnd_auth.c:(.text+0x1088): undefined reference to `PHP_SHA256Update'
> mysqlnd_auth.c:(.text+0x1094): undefined reference to `PHP_SHA256Final'
> mysqlnd_auth.c:(.text+0x109c): undefined reference to `PHP_SHA256Init'
> mysqlnd_auth.c:(.text+0x10ac): undefined reference to `PHP_SHA256Update'
> mysqlnd_auth.c:(.text+0x10bc): undefined reference to `PHP_SHA256Update'
> mysqlnd_auth.c:(.text+0x10c8): undefined reference to `PHP_SHA256Final'
> It looks like the php mysqli extension needs the hash extension to work. This
> seems to be a php Make dependany bug. This patch works around it until the
> upstream maintainers can fix it.
Committed to 2018.02.x and 2018.05.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-28 8:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-27 13:21 [Buildroot] [PATCH 1/1] php: fix build with mysqli Christopher McCrory
2018-08-27 15:31 ` Peter Korsgaard
2018-08-28 8:13 ` Peter Korsgaard
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.