Bug 278145 - devel/plan9port: new kcmp(2) system call causes build error on STABLE and CURRENT
Summary: devel/plan9port: new kcmp(2) system call causes build error on STABLE and CUR...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 15:43 UTC by John F. Carr
Modified: 2024-09-09 19:16 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (felix)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John F. Carr 2024-04-03 15:43:21 UTC
The newly introduced kenv() declaration in <unistd.h> causes compilation of plan9port to fail.  The function is not yet in any FreeBSD release, having been added in January, 2024.

Also reported upstream at https://github.com/9fans/plan9port/issues/648.

9c -O2 -pipe -march=znver1  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  sort.c
sort.c:111:5: error: conflicting types for 'kcmp'
/usr/include/unistd.h:522:6: note: previous declaration is here
sort.c:205:28: error: too few arguments to function call, expected 5, have 2
/usr/include/unistd.h:522:6: note: 'kcmp' declared here
sort.c:451:42: error: too few arguments to function call, expected 5, have 2
/usr/include/unistd.h:522:6: note: 'kcmp' declared here
sort.c:470:46: error: too few arguments to function call, expected 5, have 2
/usr/include/unistd.h:522:6: note: 'kcmp' declared here
sort.c:488:1: error: conflicting types for 'kcmp'
/usr/include/unistd.h:522:6: note: previous declaration is here
sort.c:514:41: error: too few arguments to function call, expected 5, have 2
/usr/include/unistd.h:522:6: note: 'kcmp' declared here
mk: 9c -O2 -pipe ...  : exit status=exit(1)
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-09-09 19:13:29 UTC
A commit in branch main references this bug:

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

commit 6542d237f6b3aad85a155e54702cb976b957228e
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-09-09 19:11:12 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-09-09 19:11:12 +0000

    devel/plan9port: unbreak, update, and undeprecate the port (+)

    - Fix the conflict with badly named kcmp(2) syscall introduced in
      recent FreeBSD-CURRENT/14.1
    - Update to the latest GitHub commit, shorten the GH_TAGNAME, and
      merge two installation targets into one (which still begs for a
      further pre/post-stage separation and cleanup)

    Fixes:  d846b489087a
    PR:     278145

 devel/plan9port/Makefile  | 22 ++++++++++------------
 devel/plan9port/distinfo  |  6 +++---
 devel/plan9port/pkg-plist |  3 +++
 3 files changed, 16 insertions(+), 15 deletions(-)