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
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
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
Nuno Teixeira wrote:
> Hello Warner,
>
> My poudriere jails:
> ---
> 124amd64 12.4-RELEASE-p2 amd64 http 2023-03-17
> 08:04:15 /usr/local/poudriere/jails/124amd64
> 124i386 12.4-RELEASE-p2 i386 http 2023-03-17
> 08:04:38 /usr/local/poudriere/jails/12
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
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
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
> 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
A modern and standard solution is std::byteswap.
https://en.cppreference.com/w/cpp/numeric/byteswap
According to this
https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B23_library_features
you will need llvm 14 for that.
A+
Paul
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
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
On Fri, Mar 24, 2023 at 3:23 AM Floyd, Paul wrote:
>
> A modern and standard solution is std::byteswap.
>
> https://en.cppreference.com/w/cpp/numeric/byteswap
>
> According to this
>
> https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B23_library_features
>
> you will need llvm 14 for that
I'm thinking in the best plan to patch port.
What about patch it for OSVERSION < 14 that will fix 12 and 13 and when
13.2 is out patching it only for 12.
Any thoughts?
Warner Losh escreveu no dia sexta, 24/03/2023 à(s) 09:37:
>
>
> On Fri, Mar 24, 2023 at 3:23 AM Floyd, Paul wrote:
>
>>
>> A m
13 matches
Mail list logo