From owner-freebsd-current@freebsd.org Tue Jun 27 11:20:11 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A5AEADA79F7 for ; Tue, 27 Jun 2017 11:20:11 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6C77B1E6D for ; Tue, 27 Jun 2017 11:20:11 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1dPoXT-000JOb-Q6; Tue, 27 Jun 2017 13:20:11 +0200 Date: Tue, 27 Jun 2017 13:20:11 +0200 From: Kurt Jaeger To: "Ngie Cooper (yaneurabeya)" Cc: freebsd-current@freebsd.org Subject: Re: Compiler more strict on 12 with r320337 ? Message-ID: <20170627112011.GC65214@home.opsec.eu> References: <20170627063107.GB1256@fc.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2017 11:20:11 -0000 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=) 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 !