Bug 241760

Summary: sysutils/openzfs: fatal error: 'libintl.h' file not found
Product: Ports & Packages Reporter: Mark Felder <feld>
Component: Individual Port(s)Assignee: Kris Moore <kmoore>
Status: Closed FIXED    
Severity: Affects Only Me CC: bokutin, diizzy, zi
Priority: --- Flags: bugzilla: maintainer-feedback? (kmoore)
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247827
Attachments:
Description Flags
poudriere log none

Description Mark Felder freebsd_committer freebsd_triage 2019-11-06 17:05:02 UTC
Tried to build sysutils/openzfs for FreeBSD 12.1-RELEASE, received this error:

libshare.c:31:10: fatal error: 'libintl.h' file not found
#include <libintl.h>
         ^~~~~~~~~~~
1 error generated.


Port makefile says USES= gettext-runtime:run but clearly it's required for build too because that's the package that provides libintl.h
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2020-03-23 08:12:47 UTC
Version 2020022700 compiles fine on my AMD64 box. Poudriere isn't happy about openzfs-2020031600 however, it does compile but it fails stage-qa.
Comment 2 Tomohiro Hosaka 2020-05-08 02:28:36 UTC
Created attachment 214253 [details]
poudriere log

same issue occured.

gettext-runtime is required for the build.

If you set OPTIONS_UNSET=NLS, you cannot build.

What seems to work is that if you don't have OPTIONS_UNSET=NLS, other dependencies have gettext-runtime installed.

It seems good to use USES+=gettext-runtime instead of USES+=gettext-runtime:run.