Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2025 13:13:05 -0400
From:      Mark Johnston <markj@freebsd.org>
To:        Ian FREISLICH <ianfreislich@gmail.com>
Cc:        FreeBSD Current <current@freebsd.org>
Subject:   Re: buildkernel failure [kern/kern_descrip.c]
Message-ID:  <aGF0IaNROjEbKogH@nuc>
In-Reply-To: <ebda552e-e245-4b54-9e53-d9ee84aa4c40@gmail.com>

index | next in thread | previous in thread | raw e-mail

On Sun, Jun 29, 2025 at 11:49:55AM -0400, Ian FREISLICH wrote:
> Hi
> 
> I've tried with fresh source and /usr/obj cleared.
> 
> /usr/src/sys/kern/kern_descrip.c:2967:53: error: too many arguments to
> function call, expected 4, have 5
>  2967 |         error = fget_unlocked(td, fd, needrightsp, flagsp, fpp);
>       |                 ~~~~~~~~~~~~~                              ^~~
> /usr/src/sys/sys/filedesc.h:291:5: note: 'fget_unlocked' declared here
>   291 | int     fget_unlocked(struct thread *td, int fd,
>       |         ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~
>   292 |             const cap_rights_t *needrightsp, struct file **fpp);
>       |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /usr/src/sys/kern/kern_descrip.c:3144:3: error: use of undeclared identifier
> 'fsearch'
>  3144 |         *fsearch = ((fp->f_flag & FSEARCH) != 0);
>       |          ^
> 2 errors generated.
> *** Error code 1
> 
> Have I missed something?

This is fixed now, thanks.  Out of curiosity, why does your kernel
config not configure CAPABILITIES?


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aGF0IaNROjEbKogH>