Bug 283132 - security/heimdal-devel: fix with stock clang and lld >= 16
Summary: security/heimdal-devel: fix with stock clang and lld >= 16
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dimitry Andric
URL:
Keywords:
Depends on:
Blocks: 283013
  Show dependency treegraph
 
Reported: 2024-12-04 18:52 UTC by Dimitry Andric
Modified: 2024-12-04 19:50 UTC (History)
0 users

See Also:
cy: maintainer-feedback+


Attachments
security/heimdal-devel: fix with stock clang and lld >= 16 (1.36 KB, patch)
2024-12-04 18:53 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2024-12-04 18:52:58 UTC
Upstream clang >= 16 made -Wimplicit-function-declaration into an error
by default. In the base system, this change was reverted to reduce the
fallout in ports, because there are many problematic configure scripts.

For security/heimdal-devel this also applies, so for building the port
with devel/llvm16 or higher we need to add
-Wno-implicit-function-declaration to CFLAGS.

Additionally, similar to bug 275979, add -Wl,--undefined-version to
LDFLAGS, to suppress any linker errors about missing versioned symbols.

Note: these changes are mainly needed for bug 283013, which attempts to bump the default LLVM_VERSION to 18.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2024-12-04 18:53:48 UTC
Created attachment 255631 [details]
security/heimdal-devel: fix with stock clang and lld >= 16
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2024-12-04 19:41:17 UTC
Approved.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-12-04 19:47:43 UTC
A commit in branch main references this bug:

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

commit c1d61be19caf5dd7c4dee1fc0f60c76d8aab3b64
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-12-04 18:53:13 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-12-04 19:45:58 +0000

    security/heimdal-devel: fix with stock clang and lld >= 16

    Upstream clang >= 16 made -Wimplicit-function-declaration into an error
    by default. In the base system, this change was reverted to reduce the
    fallout in ports, because there are many problematic configure scripts.

    For security/heimdal-devel this also applies, so for building the port
    with devel/llvm16 or higher we need to add
    -Wno-implicit-function-declaration to CFLAGS.

    Additionally, similar to bug 275979, add -Wl,--undefined-version to
    LDFLAGS, to suppress any linker errors about missing versioned symbols.

    PR:             283132
    Approved by:    cy (maintainer)
    MFH:            2024Q4

 security/heimdal-devel/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 4 commit-hook freebsd_committer freebsd_triage 2024-12-04 19:47:44 UTC
A commit in branch 2024Q4 references this bug:

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

commit d90d859fe8ae470f14e8326c4e8eaae224bb3ca6
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2024-12-04 18:53:13 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2024-12-04 19:47:29 +0000

    security/heimdal-devel: fix with stock clang and lld >= 16

    Upstream clang >= 16 made -Wimplicit-function-declaration into an error
    by default. In the base system, this change was reverted to reduce the
    fallout in ports, because there are many problematic configure scripts.

    For security/heimdal-devel this also applies, so for building the port
    with devel/llvm16 or higher we need to add
    -Wno-implicit-function-declaration to CFLAGS.

    Additionally, similar to bug 275979, add -Wl,--undefined-version to
    LDFLAGS, to suppress any linker errors about missing versioned symbols.

    PR:             283132
    Approved by:    cy (maintainer)
    MFH:            2024Q4

    (cherry picked from commit c1d61be19caf5dd7c4dee1fc0f60c76d8aab3b64)

 security/heimdal-devel/Makefile | 2 ++
 1 file changed, 2 insertions(+)