|  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: -
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
49 - 13 = ?
Subscribe to this entry?

 [2020-12-27 20:14 UTC] me at derrabus dot de
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:
./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


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 20:01:27 2023 UTC