Date: Tue, 27 Jun 2017 13:20:11 +0200 From: Kurt Jaeger <lists@opsec.eu> To: "Ngie Cooper (yaneurabeya)" <yaneurabeya@gmail.com> Cc: freebsd-current@freebsd.org Subject: Re: Compiler more strict on 12 with r320337 ? Message-ID: <20170627112011.GC65214@home.opsec.eu> In-Reply-To: <AD6222B5-8777-4A6D-A688-818314968917@gmail.com> References: <20170627063107.GB1256@fc.opsec.eu> <AD6222B5-8777-4A6D-A688-818314968917@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@opsec.eu +49 171 3101372 3 years to go !
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170627112011.GC65214>