Bug 241760 - sysutils/openzfs: fatal error: 'libintl.h' file not found
Summary: sysutils/openzfs: fatal error: 'libintl.h' file not found
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kris Moore
Depends on:
Reported: 2019-11-06 17:05 UTC by Mark Felder
Modified: 2020-07-08 02:04 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (kmoore)

poudriere log (109.43 KB, text/plain)
2020-05-08 02:28 UTC, Tomohiro Hosaka
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Felder freebsd_committer 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.lists 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.