Skip to content

build: rename libpopcnt's popcount64 to avoid NetBSD libc clash (#821) - #957

Open
dktue wants to merge 1 commit into
systemed:masterfrom
dktue:build/netbsd-popcount
Open

dktue wants to merge 1 commit into
systemed:masterfrom
dktue:build/netbsd-popcount

Conversation

@dktue

@dktue dktue commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

NetBSD's libc declares popcount64 (strings.h), which clashes with the static function of the same name in the bundled libpopcnt.h. libpopcnt renamed it to popcnt64_bitwise in v3.0; this does the same rename instead of updating the whole vendored header. (The stat64 part of #821 is #952.)

Also: the Makefile compared $(LUA_CMD) with a literal "", so "Couldn't find Lua interpreter" never fired; it now does.

Fixes #821 together with #952.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build issues on NetBSD

1 participant