Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2021 11:40:00 +0200
From:      Arrigo Marchiori via freebsd-stable <freebsd-stable@freebsd.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: [stable/11] error during buildworld on lib/libcasper/libcasper/libcasper_impl.c
Message-ID:  <YNGv8EzX%2BxWd4X6f@nuvolo>
In-Reply-To: <CAGOYWV_NtEL_jniLBGtZg7n3UVy0zHhNRAKpbe2_TXFS6YSx4Q@mail.gmail.com>
References:  <YMxk5q614SUYmOve.ref@nuvolo> <YMxk5q614SUYmOve@nuvolo> <CAGOYWV_NtEL_jniLBGtZg7n3UVy0zHhNRAKpbe2_TXFS6YSx4Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Mariusz,

On Fri, Jun 18, 2021 at 11:42:10AM +0200, Mariusz Zaborski wrote:

> Oh I was pretty sure I have add it.
> But it turns out I din't stage it in git.
> Should be fixed now.

Yes, it works now.

Thank you and best regards.

> On Fri, 18 Jun 2021 at 11:18, Arrigo Marchiori via freebsd-stable <
> freebsd-stable@freebsd.org> wrote:
> 
> > Dear All,
> >
> > I am trying to build world on the stable/11 branch and it fails with
> > the errors reported below.
> >
> > Apparently, file /usr/src/lib/libcasper/libcasper/libcasper_impl.c is
> > not including <unistd.h>
> >
> >  # uname -a
> > FreeBSD myhost 11.4-STABLE FreeBSD 11.4-STABLE #1 r369279: Tue Feb 16
> > 10:16:53 CET 2021     root@myhost:/usr/obj/usr/src/sys/GENERIC  amd64
> >
> > The error is present on both ``heads'' of the SVN and GIT repositories.
> >
> > Error log:
> >
> > ----8<--------8<--------8<--------8<--------8<--------8<--------8<---------
> >
> > --- lib/libcasper__L ---
> > /usr/src/lib/libcasper/libcasper/libcasper_impl.c:53:13: error: use of
> > undeclared identifier 'STDERR_FILENO'
> >         if (*fdp > STDERR_FILENO)
> >
> > /usr/src/lib/libcasper/libcasper/libcasper_impl.c:60:17: error: use of
> > undeclared identifier 'STDERR_FILENO'
> >
> >         while (*fdp <= STDERR_FILENO) {
> >                        ^
> >
> > /usr/src/lib/libcasper/libcasper/libcasper_impl.c:61:9: error: implicit
> > declaration of function 'dup' is invalid in C99
> > [-Werror,-Wimplicit-function-declaration]
> >
> >                 nfd = dup(*fdp);
> >
> >
> > /usr/src/lib/libcasper/libcasper/libcasper_impl.c:64:7: error: implicit
> > declaration of function 'dup2' is invalid in C99
> > [-Werror,-Wimplicit-function-declaration]
> >                 if (dup2(nullfd, *fdp) == -1)
> >                     ^
> > /usr/src/lib/libcasper/libcasper/libcasper_impl.c:64:7: note: did you mean
> > 'dup'?
> > /usr/src/lib/libcasper/libcasper/libcasper_impl.c:61:9: note: 'dup'
> > declared here
> >                 nfd = dup(*fdp);
> >                       ^
> > /usr/src/lib/libcasper/libcasper/libcasper_impl.c:69:2: error: implicit
> > declaration of function 'close' is invalid in C99
> > [-Werror,-Wimplicit-function-declaration]
> >         close(nullfd);
> >
> > ----8<--------8<--------8<--------8<--------8<--------8<--------8<---------
> >
> > Should anyone need any more information, just let me know.
> >
> > Best regards,
> > --
> > Arrigo
> >
> >
> 

-- 
Arrigo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YNGv8EzX%2BxWd4X6f>