php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78157 configure script does not find libargon2 library
Submitted: 2019-06-13 13:19 UTC Modified: 2019-06-13 14:56 UTC
From: e6990620 at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.4Git-2019-06-13 (Git) OS: Alpine Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: e6990620 at gmail dot com
New email:
PHP Version: OS:

 

 [2019-06-13 13:19 UTC] e6990620 at gmail dot com
Description:
------------
The following commit changed the --with-password-argon2 configuration flag to --with-argon2, and also how to detect the library in the system (i.e. by package name).

https://github.com/php/php-src/commit/bdcef51bcb367323f2eea4808f34a1b3e58bd3d8

However, on Alpine Linux the libargon2-dev package is named argon2-dev, and the new configure script does not detect it even though usr/lib/libargon2.so and 
usr/lib/libargon2.a are present.

Test script:
---------------
./configure --with-argon2

Expected result:
----------------
checking whether to build with Argon2 support... yes
checking for libargon2... yes

Actual result:
--------------
checking whether to build with Argon2 support... yes
checking for libargon2... no
mconfigure: error: Package requirements (libargon2) were not met:

Package 'libargon2', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables ARGON2_CFLAGS
and ARGON2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-06-13 13:26 UTC] cmb@php.net
-PHP Version: master-Git-2019-06-13 (Git) +PHP Version: 7.4Git-2019-06-13 (Git)
 [2019-06-13 14:56 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2019-06-13 14:56 UTC] nikic@php.net
pkg-config requirement for libargon2 reverted in https://github.com/php/php-src/commit/19e2101dfad0bcfa37d508ce575572c969688729.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC