Bug 251180 - sysutils/lsof: error compiling dnode2.c on stable/12, missing VOP_FSYNC definition, and one too many args to kern_unlinkat()
Summary: sysutils/lsof: error compiling dnode2.c on stable/12, missing VOP_FSYNC defin...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Larry Rosenman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-16 09:05 UTC by Trond Endrestøl
Modified: 2020-11-18 08:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond Endrestøl 2020-11-16 09:05:04 UTC
The system is running stable/12 amd64 r365314.
/usr/src is at r367707.
/usr/ports is at r555451.

--- dnode2.o ---
In file included from dnode2.c:62:
In file included from /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_znode.h:33:
In file included from /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dmu.h:48:
In file included from /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_context.h:73:
In file included from /usr/src/sys/cddl/compat/opensolaris/sys/vfs.h:37:
/usr/src/sys/cddl/compat/opensolaris/sys/vnode.h:243:10: warning: implicit declaration of function 'VOP_FSYNC' is invalid in C99 [-Wimplicit-function-declaration]
        error = VOP_FSYNC(vp, MNT_WAIT, curthread);
                ^
/usr/src/sys/cddl/compat/opensolaris/sys/vnode.h:281:61: error: too many arguments to function call, expected 5, have 6
        return (kern_unlinkat(curthread, AT_FDCWD, fnamep, seg, 0, 0));
                ~~~~~~~~~~~~~                                      ^
/usr/include/sys/syscallsubr.h:298:1: note: 'kern_unlinkat' declared here
int     kern_unlinkat(struct thread *td, int fd, char *path,
^
1 warning and 1 error generated.
*** [dnode2.o] Error code 1
Comment 1 Trond Endrestøl 2020-11-18 08:01:50 UTC
Solved by upgrading the running system to r366937 or newer.