Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Mar 2021 04:29:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 253928] [PATCH] devel/libgtop - fix build under 14-CURRENT
Message-ID:  <bug-253928-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253928

            Bug ID: 253928
           Summary: [PATCH] devel/libgtop - fix build under 14-CURRENT
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome@FreeBSD.org
          Reporter: cy@FreeBSD.org
                CC: ports-bugs@FreeBSD.org
             Flags: maintainer-feedback?(gnome@FreeBSD.org)

Created attachment 222895
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D222895&action=
=3Dedit
Fix build under 14-CURRENT

devel/libgtop fails to build under 14-CURRENT due to missing definition of
bool.

In file included from procmap.c:57:
In file included from /usr/include/ufs/ufs/inode.h:50:
/usr/include/sys/buf.h:569:1: error: unknown type name 'bool'
bool    inmem(struct vnode *, daddr_t);
^
procmap.c:104:25: warning: unused variable 'um' [-Wunused-variable]
        struct ufsmount um;
                        ^
procmap.c:408:16: warning: cast from 'gchar *' (aka 'char *') to
'glibtop_map_entry *' (aka 'struct _glibtop_map_entry *') increases required
alignment from 1 to 8 [-Wcast-align]
        return (glibtop_map_entry*) g_array_free(maps, FALSE);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
gmake[4]: *** [Makefile:573: procmap.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....

The attached patch fixes the build.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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