bazelbuild / bazel-central-registry

The central registry of Bazel modules for the Bzlmod external dependency system.
https://registry.bazel.build
Apache License 2.0
233 stars 254 forks source link

[Bug]: libuuid undefined reference to 'uuid_unpack' #2321

Open daohu527 opened 6 days ago

daohu527 commented 6 days ago

What happened?

When building with bzlmod libuuid the following error occurs.

bazel-out/k8-fastbuild/bin/external/libuuid~/_objs/uuid/gen_uuid.pic.o:gen_uuid.c:function __uuid_generate_random: error: undefined reference to 'uuid_unpack'
bazel-out/k8-fastbuild/bin/external/libuuid~/_objs/uuid/gen_uuid.pic.o:gen_uuid.c:function uuid_generate_md5: error: undefined reference to 'uuid_unpack'
bazel-out/k8-fastbuild/bin/external/libuuid~/_objs/uuid/gen_uuid.pic.o:gen_uuid.c:function uuid_generate_sha1: error: undefined reference to 'uuid_unpack'

Version

Development (host) and target OS/architectures: Linux Output of bazel --version: 7.2.0

Version of relevant rules from the WORKSPACE or MODULE.bazel file:

bazel_dep(name = "libuuid", version = "2.39.3")

Language(s) and/or frameworks involved:

How to reproduce

No response

Any other information?

I find modules/libuuid/2.39.3/patches/add_build_file.patch missing

+        "libuuid/src/predefined.c",
+        "libuuid/src/unpack.c",
+        "libuuid/src/unparse.c",

and 2.39.3.bcr.1 already added. Should we change to 2.39.3.bcr.1 then