Bug 265967

Summary: lang/zig 0.9.1 failed to build
Product: Ports & Packages Reporter: L Wang <wangii>
Component: Individual Port(s)Assignee: Dave Cottlehuber <dch>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (dch)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
include static ICU none

Description L Wang 2022-08-21 08:34:35 UTC
the linker reported the error of unable to find symbol ucnv_open ucnv_close. 

it can be fixed by appending '-licudata -licuuc' to `STATIC_LDFLAGS`.
Comment 1 Dave Cottlehuber freebsd_committer freebsd_triage 2022-09-07 11:20:17 UTC
Created attachment 236416 [details]
include static ICU

thanks! I needed to add icu as a build-time dependency as well, can you confirm this works for you (without ICU installed at runtime) ? 

poudriere OK on 14.0-CURRENT amd64 + arm64, & 13.1-RELEASE
Comment 2 L Wang 2022-09-08 00:45:54 UTC
yes, setting icu to build-time dependency work well for me :)
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-09-11 11:52:34 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b369c4654bbbb49d20b6f8a19b8609f571f4f73

commit 5b369c4654bbbb49d20b6f8a19b8609f571f4f73
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2022-09-11 11:51:01 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2022-09-11 11:51:14 +0000

    lang/zig: fix linker missing symbols ucnv_open ucnv_close

    PR:             265967
    Reported by:
    Sponsored by:   SkunkWerks, GmbH

 lang/zig/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-09-11 12:00:37 UTC
A commit in branch 2022Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=61c1afc5d32416a7a5424cdf68ab417339638d2f

commit 61c1afc5d32416a7a5424cdf68ab417339638d2f
Author:     Dave Cottlehuber <dch@FreeBSD.org>
AuthorDate: 2022-09-11 11:51:01 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2022-09-11 11:58:53 +0000

    lang/zig: fix linker missing symbols ucnv_open ucnv_close

    PR:             265967
    Reported by:
    Sponsored by:   SkunkWerks, GmbH

    (cherry picked from commit 5b369c4654bbbb49d20b6f8a19b8609f571f4f73)

 lang/zig/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)