php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80557 UUID feature detection fails
Submitted: 2020-12-27 20:14 UTC Modified: -
From: me at derrabus dot de Assigned:
Status: Open Package: uuid (PECL)
PHP Version: 8.0.0 OS: macOS 11.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: me at derrabus dot de
New email:
PHP Version: OS:

 

 [2020-12-27 20:14 UTC] me at derrabus dot de
Description:
------------
I have a macOS system with php 8.0.0 and util-linux 2.36.1 installed via Homebrew. Although the util-linux implementation of libuuid provides the functions uuid_type, uuid_variant, uuid_generate_md5 and uuid_generate_sha1, the UUID extensions is compiled without those functions.

If I remove all HAVE_UUID_* checks from the codebase and recompile the extension, the functions are included and work as expected.

Test script:
---------------
phpize
./configure --with-uuid=/usr/local/opt/util-linux

Expected result:
----------------
The UUID extension is compiled with all uuid_* functions.

Actual result:
--------------
checking for uuid/uuid.h... yes
checking for uuid_type in -luuid... no
checking for __uuid_type in -luuid... no
checking for uuid_variant in -luuid... no
checking for __uuid_variant in -luuid... no
checking for uuid_generate_md5 in -luuid... no
checking for __uuid_generate_md5 in -luuid... no
checking for uuid_generate_sha1 in -luuid... no
checking for __uuid_generate_sha1 in -luuid... no


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Mar 01 02:01:23 2021 UTC