Skip to contentSkip to conversation

php: fix build with mysqli

PATCH New Christopher McCrory 2 participants 3 messages Aug 27, 2018 – Aug 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 php: fix build with mysqli

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.

---
 package/php/Config.ext | 1 +
 1 file changed, 1 insertion(+)
package/php/Config.ext +1 -0
index 6b3d86925d..60ef1aee7c 100644
@@ -113,6 +113,7 @@ endif
 
 config BR2_PACKAGE_PHP_EXT_MYSQLI
 	bool "Mysqli"
+	select BR2_PACKAGE_PHP_EXT_HASH
 	help
 	  MySQL Improved extension support
 
Signature · 1 line
2.14.4
#1 lore raw

PATCH 1/1 php: fix build with mysqli

Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Christopher" == Christopher McCrory <[email protected]> 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'

Quoted 8 lines

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.

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.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 php: fix build with mysqli

In reply to Christopher McCrory
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Christopher" == Christopher McCrory <[email protected]> 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'

Quoted 3 lines

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.

Signature · 1 line
Bye, Peter Korsgaard