[Bug 293180] science/mmdb2: fix build with libc++ 21
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Feb 2026 21:03:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293180
Bug ID: 293180
Summary: science/mmdb2: fix build with libc++ 21
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: yuri@freebsd.org
Reporter: dim@FreeBSD.org
Flags: maintainer-feedback?(yuri@freebsd.org)
Assignee: yuri@freebsd.org
With lib++ 21 science/mmdb2 fails to build, with errors similar to:
In file included from mmdb2/mmdb_machine_.cpp:41:
mmdb2/mmdb_machine_.h:296:13: error: unknown type name 'size_t'; did you
mean 'std::size_t'?
296 | typedef size_t fpstr_size_t;
| ^~~~~~
| std::size_t
/usr/include/c++/v1/__cstddef/size_t.h:20:7: note: 'std::size_t' declared
here
20 | using size_t = decltype(sizeof(int));
| ^
This is because mmdb2 apparently relies on transitive includes getting
the declaration of size_t, but with libc++ 21 this no longer works. Add
an include of <stddef.h> to work around it.
--
You are receiving this mail because:
You are the assignee for the bug.