From: Wei Liu Subject: Re: xen-4.6 compile error Date: Wed, 30 Sep 2015 15:13:39 +0100 Message-ID: <20150930141339.GN13821@zion.uk.xensource.com> References: <20150930134635.GA15199@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20150930134635.GA15199@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Sep 30, 2015 at 03:46:35PM +0200, Olaf Hering wrote: > Current xen-4.6-staging fails to compile on openSUSE 11.4 and SLES11 > > [ 1227s] gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .libxl_psr.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Werror -Wno-format-zero-length -Wmissing-declarations -Wno-declaration-after-statement -Wformat-nonliteral -I. -fPIC -pthread -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/libxc/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/libxc/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/package s/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/xenstore/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/blktap2/control -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/blktap2/include -I/usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/include -I/usr/include/libnl3 -Wshadow -include /usr/src/packages/BUILD/xen-4.6.0.0/non-dbg/tools/libxl/../../tools/config.h -c -o libxl_psr.o libxl_psr.c > [ 1227s] cc1: warnings being treated as errors > [ 1227s] libxl_psr.c: In function 'libxl_psr_cat_get_l3_info': > [ 1227s] libxl_psr.c:342: error: declaration of 'socket' shadows a global declaration > [ 1227s] /usr/include/sys/socket.h:105: error: shadowed declaration is here > [ 1227s] make[3]: *** [libxl_psr.o] Error 1 > I will provide a patch to fix it. > The last snapshot from 2015-09-09 23:51:17 +0200 (21 days ago) built ok. > > Olaf > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel