byteswap.h not found on 12 and 13

2023-03-24 Thread Nuno Teixeira
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? Thanks, --- ===> B

Re: byteswap.h not found on 12 and 13

2023-03-24 Thread Warner Losh
On Fri, Mar 24, 2023, 9:23 AM Nuno Teixeira 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-pro

Re: byteswap.h not found on 12 and 13

2023-03-24 Thread Nuno Teixeira
Hello Warner, My poudriere jails: --- 124amd64 12.4-RELEASE-p2 amd64 http 2023-03-17 08:04:15 /usr/local/poudriere/jails/124amd64 124i38612.4-RELEASE-p2 i386 http 2023-03-17 08:04:38 /usr/local/poudriere/jails/124i386 131amd64 13.1-RELEASE-p7

Re: byteswap.h not found on 12 and 13

2023-03-24 Thread Warner Losh
Yea, I just committed this commit 1761b09bf42d2842e82c1ac614c23d31c4d4c0dc Author: Warner Losh Date: Fri Jan 20 16:33:37 2023 -0700 byteswap.h: Add a glibc/linux compatible byteswap.h For endian.h to work instead of sys/endian.h, some software needs byteswap.h available. It must d

Re: byteswap.h not found on 12 and 13

2023-03-24 Thread Warner Losh
And I just looked it up... unlike endian.h, byteswap.h is not in the draft I have of issue 8 posix (due out this year or next, give or take). Warner On Fri, Mar 24, 2023 at 2:57 AM Warner Losh wrote: > Yea, I just committed this > > commit 1761b09bf42d2842e82c1ac614c23d31c4d4c0dc > Author: Warn

Re: byteswap.h not found on 12 and 13

2023-03-24 Thread Warner Losh
one last reply, if this is for a port, then byteswap.h can usually be implemented as #include #define __bswap_16(x) __bswap16(x) #define __bswap_32(x) __bswap32(x) #define __bswap_64(x) __bswap64(x) #define bswap_16(x) __bswap16(x) #define bswap_32(x) __bswap32(x) #define bswap_64(x) __bswap64(x

Re: byteswap.h not found on 12 and 13

2023-03-24 Thread Juraj Lutter
> On 24 Mar 2023, at 10:09, Warner Losh wrote: > > one last reply, if this is for a port, then byteswap.h can usually be > implemented as > > #include > #define __bswap_16(x) __bswap16(x) > #define __bswap_32(x) __bswap32(x) > #define __bswap_64(x) __bswap64(x) > > #define bswap_16(x) __bs

Re: byteswap.h not found on 12 and 13

2023-03-24 Thread Warner Losh
On Fri, Mar 24, 2023 at 3:13 AM Juraj Lutter wrote: > > > > On 24 Mar 2023, at 10:09, Warner Losh wrote: > > > > one last reply, if this is for a port, then byteswap.h can usually be > implemented as > #include #if __FreeBSD_version < 1301500 > > #include > > #define __bswap_16(x) __bswap16

Re: byteswap.h not found on 12 and 13

2023-03-24 Thread Nuno Teixeira
Hello Juraj, --- --- src/sflowtool.c.orig2023-03-24 09:29:58 UTC +++ src/sflowtool.c @@ -29,13 +29,18 @@ extern "C" { #include #include #include -#include +#include #include #include "sflow.h" /* sFlow v5 */ #include "sflow_v2v4.h" /* sFlow v2/4 */ #include "assert.h" #inclu

Unmaintained FreeBSD ports which are out of date

2023-03-24 Thread portscout
Dear port maintainers, The portscout new distfile checker has detected that one or more unmaintained ports appears to be out of date. Please take the opportunity to check each of the ports listed below, and if possible and appropriate, submit/commit an update. Please consider also adopting this po