AROS ABIv11 Release Thread

deadwood · 10845

deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #150 on: May 02, 2023, 03:00:17 PM
@AMIGASYSTEM

Thanks, I will handle those answers.



salass00

  • Newbie
  • *
    • Posts: 19
    • Karma: +25/-0
    • A500.org
Reply #151 on: June 09, 2023, 09:07:30 AM
@deadwood

With --sysroot I seem to be able to use the cross toolchain to compile x86_64 ABIv11 executables, but when compiling libsmb2 (for smb2fs) I get duplicate member th_off and th_x2 errors in <netinet/tcp.h>.

The reason it seems is because in this code part:
Code: [Select]
struct tcphdr {
...
#if BYTE_ORDER == LITTLE_ENDIAN
u_char th_x2:4, /* (unused) */
th_off:4; /* data offset */
#endif
#if BYTE_ORDER == BIG_ENDIAN
u_char th_off:4, /* data offset */
th_x2:4; /* (unused) */
#endif
both "BYTE_ORDER == LITTLE_ENDIAN" and "BYTE_ORDER == BIG_ENDIAN" conditions are evaluated as true by the pre-processor (most likely because the macros are undefined). If I add -D__BSD_VISIBLE to CFLAGS then I don't get these errors.



deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #152 on: June 10, 2023, 02:07:28 AM
@salass00

I'll look into that.

Thanks for compiling your software for 64-bit. If you ran into any problem with the port, let me know :)