|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-07-22 12:03 UTC] ab@php.net
-Assigned To:
+Assigned To: jedisct1
[2017-07-22 16:35 UTC] jedisct1@php.net
[2017-07-22 17:30 UTC] ab@php.net
[2017-07-22 20:25 UTC] jedisct1@php.net
[2017-07-22 20:47 UTC] ab@php.net
[2017-07-24 08:38 UTC] kalle@php.net
-Status: Assigned
+Status: Closed
[2017-07-24 08:38 UTC] kalle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 14:00:01 2026 UTC |
Description: ------------ From the config.log 14407 configure:76454: checking for sodium support 14408 configure:76490: result: yes 14409 configure:76502: checking for pkg-config 14410 configure:76533: result: /usr/bin/pkg-config 14411 configure:76541: checking for libsodium 14412 configure:76553: result: version 1.0.0 found using pkg-config Package libsodium-dev: p 1.0.0-1 oldstable 500 i 1.0.11-1~bpo8+1 jessie-backports 100 The package from the backports compiles, the macro redifinition warnings are still present. Same warnings are shown in Windows builds. The extension should either compile with older dependency versions or do a clean error check at the configure time. Thanks. Actual result: -------------- /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c: In function ‘zm_startup_sodium’: /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c:419:0: warning: "crypto_kx_PUBLICKEYBYTES" redefined # define crypto_kx_PUBLICKEYBYTES 32 ^ In file included from /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c:26:0: /home/anatol/dws/src/php-7.2-nts/ext/sodium/php_libsodium.h:113:0: note: this is the location of the previous definition #define crypto_kx_PUBLICKEYBYTES crypto_scalarmult_SCALARBYTES ^ /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c:420:0: warning: "crypto_kx_SECRETKEYBYTES" redefined # define crypto_kx_SECRETKEYBYTES 32 ^ In file included from /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c:26:0: /home/anatol/dws/src/php-7.2-nts/ext/sodium/php_libsodium.h:114:0: note: this is the location of the previous definition #define crypto_kx_SECRETKEYBYTES crypto_scalarmult_SCALARBYTES ^ /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c: In function ‘zif_sodium_crypto_aead_chacha20poly1305_ietf_keygen’: /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c:2870:20: error: ‘crypto_aead_chacha20poly1305_ietf_KEYBYTES’ undeclared (first use in this function) unsigned char key[crypto_aead_chacha20poly1305_ietf_KEYBYTES]; ^ /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c:2870:20: note: each undeclared identifier is reported only once for each function it appears in /home/anatol/dws/src/php-7.2-nts/ext/sodium/libsodium.c:2870:16: warning: unused variable ‘key’ [-Wunused-variable] unsigned char key[crypto_aead_chacha20poly1305_ietf_KEYBYTES]; ^ Makefile:1607: recipe for target 'ext/sodium/libsodium.lo' failed make: *** [ext/sodium/libsodium.lo] Error 1