Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Dec 2020 19:43:28 -0500
From:      Mark Johnston <markj@freebsd.org>
To:        Chuck Tuffli <chuck@freebsd.org>
Cc:        FreeBSD-Current <freebsd-current@freebsd.org>
Subject:   Re: port build fails with missing sys/smr_types.h
Message-ID:  <X8mGML3ibLsa/r0Q@raichu>
In-Reply-To: <CAKAYmML2eq5cJwG4GJmLA8QAqxQ_zopM5sTEiNUKr=%2B7DXhAfw@mail.gmail.com>
References:  <CAKAYmMJ0WbDXcamCHv1WL1Vpabm1ypKDOCkgf2yrGfLto=dHmw@mail.gmail.com> <X8lyNECcN3jnunKh@raichu> <CAKAYmML2eq5cJwG4GJmLA8QAqxQ_zopM5sTEiNUKr=%2B7DXhAfw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 03, 2020 at 03:42:40PM -0800, Chuck Tuffli wrote:
> On Thu, Dec 3, 2020 at 3:18 PM Mark Johnston <markj@freebsd.org> wrote:
> >
> > On Thu, Dec 03, 2020 at 01:08:52PM -0800, Chuck Tuffli wrote:
> > > Hi
> > >
> > > I'm trying to fix the build of qemu-utils but am seeing failures on
> > > CURRENT (13.0-HEAD-9e082d278b9) like:
> > >
> > > In file included from util/oslib-posix.c:50:
> > > In file included from /usr/include/sys/user.h:51:
> > > In file included from /usr/include/sys/proc.h:50:
> > > /usr/include/sys/filedesc.h:47:10: fatal error: 'sys/smr_types.h' file not found
> > > #include <sys/smr_types.h>
> > >          ^~~~~~~~~~~~~~~~~
> > >
> > > # uname -a
> > > FreeBSD sv0.tuffli.net 13.0-HEAD-9e082d278b9 FreeBSD
> > > 13.0-HEAD-9e082d278b9 #0 9e082d278b91-c254726(HEAD)-dirty: Fri Nov 27
> > > 00:09:50 PST 2020
> > > root@freebsd:/build/9e082d278b9/obj/build/9e082d278b9/src/amd64.amd64/sys/GENERIC-NODEBUG
> > >  amd64
> > > # ls -l /usr/include/sys/*smr*
> > > -r--r--r--  1 root  wheel  1988 Nov 30 14:04 /usr/include/sys/_smr.h
> > > -r--r--r--  1 root  wheel  7822 Nov 30 14:04 /usr/include/sys/smr.h
> > >
> > > So it appears the file is missing. Any ideas?
> >
> > How old is your world?  I have /usr/include/sys/smr_types.h on my
> > systems.  It's present on freefall as well.
> 
> It is the FreeBSD-13.0-CURRENT-amd64-20201126-9e082d278b9 snapshot. If
> this is fixed in recent snapshots, I can move to one of those.

$ fetch http://ftp.freebsd.org/pub/FreeBSD/snapshots/VM-IMAGES/13.0-CURRENT/amd64/20201126/FreeBSD-13.0-CURRENT-amd64-20201126-9e082d278b9.raw.xz
$ unxz FreeBSD-13.0-CURRENT-amd64-20201126-9e082d278b9.raw.xz
$ sudo mdconfig -a -f FreeBSD-13.0-CURRENT-amd64-20201126-9e082d278b9.raw
md0
$ sudo mount /dev/md0p4 /mnt
$ stat /mnt/usr/include/sys/smr_types.h
544 241404 -r--r--r-- 1 root wheel 554933 4985 "Nov 26 03:57:51 2020" "Nov 26 03:51:14 2020" "Nov 26 03:58:26 2020" "Nov 26 03:51:14 2020" 32768 16 0 /mnt/usr/include/sys/smr_types.h
$

So I'm not sure what's going on in your case.  smr_types.h was added a
number of months ago.



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