Created attachment 154201 [details] [PATCH] Fix sysutils/gdisk build problem It fails with the following message: c++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o gdisk.o gpttext.o -L/usr/local/lib -licuio -fstack-protector -luuid -o gdisk /usr/bin/ld: //usr/local/lib/libicuuc.so.53: invalid DSO for symbol `_ZN6icu_5313UnicodeStringC1EPKc' definition //usr/local/lib/libicuuc.so.53: could not read symbols: Bad value c++: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1
See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197006, comment 4, comment 5 (has fix) (and comment 6 & comment 7 for more history).
the patch is still necessary
See also bug 223855 which includes an update to 1.0.3
Is this still relevant?
(In reply to w.schwarzenfeld from comment #4) Yes. ===> Building for gdisk-0.8.10_6 c++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o gdisk.o gpttext.o -L/usr/local/lib -licuio -fstack-protector -luuid -o gdisk /usr/bin/ld: undefined reference to symbol `_ZN3icu13UnicodeStringC1EPKc' (try adding -licuuc) //usr/local/lib/libicuuc.so.60: could not read symbols: Bad value c++: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1
But the patch works!
(In reply to w.schwarzenfeld from comment #6) Yes, it works and I keep the patch on all machines where I want to use gdisk.
I posted it on pipermail, I hope someone would commit.
(In reply to Ting-Wei Lan from comment #5) Does everything work for you if you apply the update in bug 223855? If so, please close this one and reference that bug (which is still waiting for a committer, but it has hit the maintainer timeout and could have any committer grab it any time). I've been using that version with no problems. It couldn't hurt to get another user reporting success with it.
A commit references this bug: Author: tobik Date: Thu Jan 25 22:55:02 UTC 2018 New revision: 459966 URL: https://svnweb.freebsd.org/changeset/ports/459966 Log: sysutils/gdisk: Unbreak UTF16 option /usr/bin/ld: undefined reference to symbol `_ZN3icu13UnicodeStringC1EPKc' (try adding -licuuc) //usr/local/lib/libicuuc.so.60: could not read symbols: Bad value PR: 198518 Submitted by: Ting-Wei Lan <lantw44@gmail.com> Approved by: wg (maintainer timeout, ~3 years) Changes: head/sysutils/gdisk/Makefile
A commit references this bug: Author: tobik Date: Thu Jan 25 23:00:29 UTC 2018 New revision: 459968 URL: https://svnweb.freebsd.org/changeset/ports/459968 Log: MFH: r459966 sysutils/gdisk: Unbreak UTF16 option /usr/bin/ld: undefined reference to symbol `_ZN3icu13UnicodeStringC1EPKc' (try adding -licuuc) //usr/local/lib/libicuuc.so.60: could not read symbols: Bad value PR: 198518 Submitted by: Ting-Wei Lan <lantw44@gmail.com> Approved by: wg (maintainer timeout, ~3 years) Approved by: ports-secteam blanket Changes: _U branches/2018Q1/ branches/2018Q1/sysutils/gdisk/Makefile
Committed, thanks!