Date: Fri, 29 Dec 2023 12:29:34 +0100 From: tuexen@freebsd.org To: Nuno Teixeira <eduardo@freebsd.org> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: devel/nspr: Fails to build on 1500008 5f71f9636efa Message-ID: <9EE91B0D-6CFB-464E-AB9C-3A15D77D55FB@freebsd.org> In-Reply-To: <CAFDf7U%2BxbTuhS7nUzeZgVknMPyyfYxuakFtrE4=h-1LtFK_Yig@mail.gmail.com> References: <CAFDf7U%2BxbTuhS7nUzeZgVknMPyyfYxuakFtrE4=h-1LtFK_Yig@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Dec 29, 2023, at 10:18, Nuno Teixeira <eduardo@freebsd.org> wrote: >=20 > Hello all, >=20 > =46rom 1500007 to 1500008 devel/nspr (dependency of firefox) fails: >=20 > ### > cc -o prmapopt.o -c -fvisibility=3Dhidden -O2 -pipe = -fstack-protector-strong -fno-strict-aliasing -ansi -Wall -fPIC = -UDEBUG -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" = -DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" = -DPACKAGE_BUGREPORT=3D\"\" -DPACKAGE_URL=3D\"\" -DNDEBUG=3D1 = -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=3D1 -DHAVE_VISIBILITY_PRAGMA=3D1 = -DXP_UNIX=3D1 -DFREEBSD=3D1 -DHAVE_BSD_FLOCK=3D1 -DHAVE_SOCKLEN_T=3D1 = -DHAVE_POINTER_LOCALTIME_R=3D1 -DHAVE_DLADDR=3D1 -DHAVE_LCHOWN=3D1 = -DHAVE_SETPRIORITY=3D1 -DHAVE_STRERROR=3D1 -DHAVE_SYSCALL=3D1 = -DHAVE_SECURE_GETENV=3D1 -D_REENTRANT=3D1 -D_THREAD_SAFE=3D1 = -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ = -I../../../dist/include/nspr -I./../../pr/include = -I../../../pr/include/private prmapopt.c > In file included from prmapopt.c:46: > /usr/include/netinet/tcp.h:82:8: error: unknown type name 'inline' > 82 | static inline uint16_t > | ^ > /usr/include/netinet/tcp.h:82:23: error: expected ';' after top level = declarator > 82 | static inline uint16_t > | ^ > /usr/include/netinet/tcp.h:88:8: error: unknown type name 'inline' > 88 | static inline void > | ^ > 3 errors generated. > ### >=20 > Any clues? You are compiling with -ansi, which means C89. C89 does not support = inline. I think support for inline was added in C99. I think we have two options: 1. Build the ports with a C version of at least C99. 2. Remove the inline from tcp_[gs]et_flags(). Best regards Michael > --=20 > Nuno Teixeira > FreeBSD Committer (ports)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9EE91B0D-6CFB-464E-AB9C-3A15D77D55FB>