After base 000321bab7be and base e4c36b7aa952, with CAPSICUM enabled, fails to build or run due to the titled error. Finds the header and library correctly, but not the symbol: Checking for function "cap_enter" with dependency -lc: YES Library nv found: YES Checking for function "nvlist_create" with dependency -lnv: NO meson.build:501:8: ERROR: Problem encountered: nvlist_create not found
This appears to be because the current meson file does not include 'sys/nv.h' while testing for nvlist_create(). I changed the relevant line to: nvlist_create_found = libnv.found() and cc.has_function('nvlist_create', dependencies : libnv, prefix : '#include <sys/nv.h>') and can now compile successfully.
(In reply to Kristof Provost from comment #1) please submit it as patch :)
...and submit it upstream over at GitHub
Created attachment 236000 [details] patch v1 Hi, I've created a patch implementing what is suggested in comment #1 Hope maintainer can approve it.
Filed patch upstream: https://github.com/irssi/irssi/pull/1407
Sorry I hadn't looked at this yet, the patch is approved now. -David
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ab22566cfdf3becc9a5569e519a3ecab1449a755 commit ab22566cfdf3becc9a5569e519a3ecab1449a755 Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2022-08-20 07:19:45 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2022-08-20 07:32:11 +0000 irc/irssi: Backport buildfix for Capsicum in -CURRENT After base 000321bab7be and base e4c36b7aa952 with CAPSICUM enabled build fails to find nvlist_create() . Backport upstream commit 7baefc3315e9dc11c8a3a787a3b6c6888c2b590a to fix this issue PR: 265397 Reported by: vishwin Reviewed by: David O'Rourke <dor.bsd@xm0.uk> (maintainer) Tested by: kp irc/irssi/Makefile | 3 +++ irc/irssi/distinfo | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-)
Committed, thanks everyone involved!