It is broken by the update to icu 61. c++ -O2 -pipe -march=nehalem -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -std=gnu++11 -isystem /usr/local/include -Wall -D_FILE_OFFSET_BITS=64 -DUSE_UTF16 -isystem /usr/local/include -c basicmbr.cc -o basicmbr.o In file included from basicmbr.cc:22: In file included from ./mbr.h:8: In file included from ./gptpart.h:22: ./parttypes.h:59:4: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? UnicodeString UTypeName(void) const; ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ In file included from basicmbr.cc:22: In file included from ./mbr.h:8: ./gptpart.h:62:7: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? UnicodeString GetUTypeName(void); ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ In file included from basicmbr.cc:22: In file included from ./mbr.h:8: ./gptpart.h:69:7: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? UnicodeString GetDescription(void); ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ In file included from basicmbr.cc:22: In file included from ./mbr.h:8: ./gptpart.h:84:26: error: unknown type name 'UnicodeString'; did you mean 'icu::UnicodeString'? void SetName(const UnicodeString & theName); ^~~~~~~~~~~~~ icu::UnicodeString /usr/local/include/unicode/unistr.h:286:20: note: 'icu::UnicodeString' declared here class U_COMMON_API UnicodeString : public Replaceable ^ 4 errors generated. *** Error code 1 Stop.
Created attachment 195279 [details] Fix ICU 61 issue and update to 1.0.4
Created attachment 195644 [details] Fix ICU 61 issue
(In reply to Ting-Wei Lan from comment #2) The patch does not work if UTF16 option is off (default).
A commit references this bug: Author: sunpoet Date: Tue Jul 31 00:05:39 UTC 2018 New revision: 475960 URL: https://svnweb.freebsd.org/changeset/ports/475960 Log: Fix UTF16 option PR: 227666 Submitted by: Ting-Wei Lan <lantw44@gmail.com> Changes: head/sysutils/gdisk/files/patch-parttypes.h
Committed. Thanks!