Compiler more strict on 12 with r320337 ?
Kurt Jaeger
lists at opsec.eu
Tue Jun 27 11:20:11 UTC 2017
Hi!
> > Compiling devel/lfcbase, it fails while including sys/socketvar.h with
> > this error:
> >
> > In file included from Net.cc:36:
> > /usr/include/sys/socketvar.h:117:4: error: types cannot be declared in an
> > anonymous struct
> > enum {
> > ^
> > 1 error generated.
> >
> > Should sys/socketvar.h be included at all ?
>
> Hi Kurt,
> What compiler/CFLAGS (in particular, -std=<foo>) are you using to compile devel/lfcbase?
http://people.freebsd.org/~pi/logs/lfcbase.txt
says:
/bin/sh ../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I.. -O3 -O2 -pipe -fstack-protector -fno-strict-aliasing -MT Net.lo -MD -MP -MF .deps/Net.Tpo -c -o Net.lo Net.cc
and:
c++ --version
says:
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin
--
pi at opsec.eu +49 171 3101372 3 years to go !
More information about the freebsd-current
mailing list