Summary: | graphics/gdal: compiler error: unknown type name 'Int64' | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | O. Hartmann <ohartmann> | ||||||
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Many People | CC: | jcfyecrayz, sunpoet | ||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(sunpoet) |
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
O. Hartmann
2021-04-19 10:00:58 UTC
Created attachment 224596 [details]
[patch] fix compile error - missing #include for Imath header
Same problem here. It looks like this is missing #include "ImathInt64.h". Probably an upstream problem (which may not work with the current version of ports' libImath), but also probably easily patched until fixed upstream.
Workaround: set EXR option off.
Fix is attached. No need to bump PORTREVISION (just fixes build error and just for non-default option)
Created attachment 224598 [details]
[patch] fix compile error - missing #include for Imath header (+ allow parallel build)
patch v2: also remove MAKE_JOBS_UNSAFE=yes. Builds fine now. MAKE_JOBS_UNSAFE was added in 2009 many versions ago. This reduces the build time substantially (6x in a quick experiment on a moderate 4-cpu build host).
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=66a03470a2924840d5ff13a874d93f95ed832d7b commit 66a03470a2924840d5ff13a874d93f95ed832d7b Author: John Hein <jcfyecrayz@liamekaens.com> AuthorDate: 2021-05-04 21:40:05 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2021-05-04 21:45:47 +0000 graphics/gdal: Fix build with OpenEXR/Imath 3.0 (should be part of 9ab14902a13463a884c7446d358364ed5ee64088) - Remove MAKE_JOBS_UNSAFE [1] PR: 255216 Reported by: O. Hartmann <ohartmann@walstatt.org> Tested by: John Hein <jcfyecrayz@liamekaens.com> [1] graphics/gdal/Makefile | 1 - graphics/gdal/files/patch-frmts_exr_openexr__headers.h | 12 ++++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) Committed. Thanks! FYI, that patch file, patch-frmts_exr_openexr__headers.h, can go away when we update to 3.3.1. Upstream has a fix. See https://github.com/OSGeo/gdal/issues/3770 |