Re: byteswap.h not found on 12 and 13

From: Warner Losh <imp_at_bsdimp.com>
Date: Fri, 24 Mar 2023 08:30:24 UTC
On Fri, Mar 24, 2023, 9:23 AM Nuno Teixeira <eduardo@freebsd.org> wrote:

> Hello all,
>
> I'm getting a file not found on 12 and 13 compiling net/sflowtool latest
> update:
> It compile fine on 14.
>
> I've searched 14 src and found:
> ---
> ./include/byteswap.h
> ./contrib/ofed/include/byteswap.h
> ./contrib/llvm-project/libcxx/include/__bit/byteswap.h
> ---
> Any clues?
>


I added it a short time ago. I thought I mfc'd it to 13 but not 12. How
recent a 13? It's a non standard glibc extension that may be in the next
posix standard though. I've not looked at the draft for it yet to see if it
complies or not.

Warner

Thanks,
>
> ---
> ===>  Building for sflowtool-6.01
> --- all ---
> /usr/bin/make  all-recursive
> --- all-recursive ---
> Making all in src
> --- sflowtool.o ---
> cc -DHAVE_CONFIG_H -I. -I..      -O2 -pipe  -fstack-protector-strong
> -fno-strict-aliasing -MT sflowtool.o -MD -MP -MF .deps/sflowtool.Tpo -c -o
> sflowtool.o sflowtool.c
> sflowtool.c:32:10: fatal error: 'byteswap.h' file not found
> #include <byteswap.h>
>          ^~~~~~~~~~~~
> 1 error generated.
> *** [sflowtool.o] Error code 1
> ---
>
>
> --
> Nuno Teixeira
> FreeBSD Committer (ports)
>