Bug 254640

Summary: sysutils/pefs-kmod: An error occurs when trying to install pefs-kmod on FreeBSD 14
Product: Ports & Packages Reporter: Jonas Lopes <jonasbsd>
Component: Individual Port(s)Assignee: Gleb Kurtsou <gleb>
Status: New ---    
Severity: Affects Only Me CC: crees, grahamperrin, mail
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
make install and pkg install none

Description Jonas Lopes 2021-03-29 15:13:38 UTC
Created attachment 223682 [details]
make install and pkg install

Dears,

An error occurs when trying to install pefs-kmod.

Evidence of errors is attached.

Hardware: IdeaPad S145
OS: FreeBSD freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT # 0 main-n245511-a771bf748f9: Qui Mar 18 06:35:21 UTC 2021 root@releng1.nyi.freebsd.org: /usr/obj/ usr/src/amd64.amd64/sys/GENÉRIC amd64

MESSAGE:

/usr/ports/sysutils/pefs-kmod/work/pefs-2018-11-26/sys/modules/pefs/../../fs/pefs/pefs_subr.c:249:21: error: too many arguments to function call, expected single argument 'vp', have 2 arguments
                        VOP_UNLOCK(ldvp, 0);
                        ~~~~~~~~~~       ^
./vnode_if.h:1145:21: note: 'VOP_UNLOCK' declared here
static __inline int VOP_UNLOCK(
                    ^
/usr/ports/sysutils/pefs-kmod/work/pefs-2018-11-26/sys/modules/pefs/../../fs/pefs/pefs_subr.c:254:18: error: too many arguments to function call, expected single argument 'vp', have 2 arguments
        VOP_UNLOCK(lvp, 0);
        ~~~~~~~~~~      ^
./vnode_if.h:1145:21: note: 'VOP_UNLOCK' declared here
static __inline int VOP_UNLOCK(
                    ^
/usr/ports/sysutils/pefs-kmod/work/pefs-2018-11-26/sys/modules/pefs/../../fs/pefs/pefs_subr.c:256:44: error: too many arguments to function call, expected 3, have 4
        error = vn_vptocnp(&nldvp, cred, encname, encname_len);
                ~~~~~~~~~~                        ^~~~~~~~~~~
/usr/src/sys/sys/vnode.h:686:5: note: 'vn_vptocnp' declared here
int     vn_vptocnp(struct vnode **vp, char *buf, size_t *buflen);
        ^
/usr/ports/sysutils/pefs-kmod/work/pefs-2018-11-26/sys/modules/pefs/../../fs/pefs/pefs_subr.c:383:23: error: use of undeclared identifier 'VI_DOOMED'
                if ((lvp->v_iflag & VI_DOOMED) != 0) {
Comment 1 Chris Rees freebsd_committer 2021-03-29 15:41:28 UTC
Canonicalise and assign
Comment 2 mail 2021-04-14 19:57:07 UTC
This also affects FreeBSD 13.0-RELEASE.
Comment 3 Graham Perrin 2021-07-05 06:19:07 UTC
Bug 256956

> sysutils/pefs-kmod: Take maintainership, fix build on FreeBSD 13 & -current