[Bug 266441] sysutils/lsof: fails to build on recent main (aka 14-current)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 Sep 2022 09:04:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266441

            Bug ID: 266441
           Summary: sysutils/lsof: fails to build on recent main (aka
                    14-current)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ler@FreeBSD.org
          Reporter: junchoon@dec.sakura.ne.jp
             Flags: maintainer-feedback?(ler@FreeBSD.org)
          Assignee: ler@FreeBSD.org

sysutils/lsof fails to build on recent src main.
Would be affected by src main git 7ea1cac248574ed06c7823ffbfb9a60157240e57. [1]

[1]
https://cgit.freebsd.org/src/commit/sys/sys?id=7ea1cac248574ed06c7823ffbfb9a60157240e57


===== Error log below =====

--- dstore.o ---
In file included from dstore.c:38:
In file included from ./lsof.h:250:
--- dmnt.o ---
In file included from dmnt.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from dmnt.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- dnode.o ---
In file included from dnode.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from dnode.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- dnode1.o ---
In file included from dnode1.c:41:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from dnode1.c:41:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- main.o ---
In file included from main.c:40:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from main.c:40:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- dproc.o ---
In file included from dproc.c:37:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from dproc.c:37:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- dsock.o ---
In file included from dsock.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from dsock.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- dstore.o ---
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from dstore.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- arg.o ---
In file included from arg.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from arg.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- misc.o ---
In file included from misc.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from misc.c:38:
In file included from ./lsof.h:250:
In file included from ./dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- lib/liblsof.a ---
--- dvch.o ---
In file included from dvch.c:42:
--- ckkv.o ---
In file included from ckkv.c:42:
In file included from ./../lsof.h:250:
In file included from ./../dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from ckkv.c:42:
In file included from ./../lsof.h:250:
In file included from ./../dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- dvch.o ---
In file included from ./../lsof.h:250:
In file included from ./../dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from dvch.c:42:
In file included from ./../lsof.h:250:
In file included from ./../dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- fino.o ---
In file included from fino.c:51:
In file included from ./../lsof.h:250:
In file included from ./../dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:452:1: error: static declaration of 'pause' follows
non-static declaration
pause(const char *wmesg, int timo)
^
/usr/include/unistd.h:357:6: note: previous declaration is here
int      pause(void);
         ^
In file included from fino.c:51:
In file included from ./../lsof.h:250:
In file included from ./../dlsof.h:324:
In file included from /usr/src/sys/sys/file.h:44:
In file included from /usr/src/sys/sys/refcount.h:36:
/usr/src/sys/sys/systm.h:454:27: error: use of undeclared identifier 'tick_sbt'
        return (pause_sbt(wmesg, tick_sbt * timo, 0, C_HARDCLOCK));
                                 ^
--- dstore.o ---
2 errors generated.
--- lib/liblsof.a ---
--- ckkv.o ---
2 errors generated.
--- dstore.o ---
*** [dstore.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- lib/liblsof.a ---
*** [lib/liblsof.a] Error code 6

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- dnode1.o ---
In file included from dnode1.c:63:
--- dmnt.o ---
2 errors generated.
--- dnode1.o ---
./cd9660_node.h:79:9: warning: 'VTOI' macro redefined [-Wmacro-redefined]
#define VTOI(vp) ((struct iso_node *)(vp)->v_data)
        ^
/usr/src/sys/ufs/ufs/inode.h:262:9: note: previous definition is here
#define VTOI(vp)        ((struct inode *)(vp)->v_data)
        ^
--- dproc.o ---
2 errors generated.
--- arg.o ---
arg.c:481:14: warning: & has lower precedence than ==; == will be evaluated
first [-Wparentheses]
            if (!ss & ErrStat == 0)
                    ^~~~~~~~~~~~~~
arg.c:481:14: note: place parentheses around the '==' expression to silence
this warning
            if (!ss & ErrStat == 0)
                    ^
                      (           )
arg.c:481:14: note: place parentheses around the & expression to evaluate it
first
            if (!ss & ErrStat == 0)
                    ^
                (            )
--- dmnt.o ---
*** [dmnt.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- dsock.o ---
2 errors generated.
--- dnode1.o ---
In file included from dnode1.c:128:
In file included from /usr/src/sys/fs/fuse/fuse_node.h:73:
/usr/src/sys/fs/fuse/fuse_file.h:215:19: warning: declaration of 'struct
fuse_open_out' will not be visible outside of this function [-Wvisibility]
--- dproc.o ---
*** [dproc.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- dnode1.o ---
                          const struct fuse_open_out *foo);
                                       ^
In file included from dnode1.c:128:
/usr/src/sys/fs/fuse/fuse_node.h:151:2: warning: implicit declaration of
function 'getbinuptime' is invalid in C99 [-Wimplicit-function-declaration]
        getbinuptime(&now);
        ^
/usr/src/sys/fs/fuse/fuse_node.h:202:45: warning: declaration of 'struct
fuse_entry_out' will not be visible outside of this function [-Wvisibility]
int fuse_vnode_get(struct mount *mp, struct fuse_entry_out *feo,
                                            ^
--- dsock.o ---
*** [dsock.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- main.o ---
2 errors generated.
*** [main.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- dnode1.o ---
4 warnings and 2 errors generated.
*** [dnode1.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- misc.o ---
2 errors generated.
*** [misc.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- dnode.o ---
2 errors generated.
*** [dnode.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
--- arg.o ---
1 warning and 2 errors generated.
*** [arg.o] Error code 1

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
10 errors

make[1]: stopped in /usr/ports/sysutils/lsof/work/lsof-4.95.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/lsof

-- 
You are receiving this mail because:
You are the assignee for the bug.