From owner-freebsd-current@FreeBSD.ORG Fri Apr 26 08:56:34 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8B4AAE98; Fri, 26 Apr 2013 08:56:34 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1C2A21A55; Fri, 26 Apr 2013 08:56:33 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.6/8.14.6) with ESMTP id r3Q8uWpQ075678; Fri, 26 Apr 2013 12:56:32 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.6/8.14.6/Submit) id r3Q8uWMv075677; Fri, 26 Apr 2013 12:56:32 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 26 Apr 2013 12:56:32 +0400 From: Gleb Smirnoff To: FreeBSD Tinderbox Subject: Re: [head tinderbox] failure on ia64/ia64 Message-ID: <20130426085632.GR76816@FreeBSD.org> References: <201304252213.r3PMDXW1030467@freebsd-current.sentex.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <201304252213.r3PMDXW1030467@freebsd-current.sentex.ca> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 26 Apr 2013 08:56:34 -0000 On Thu, Apr 25, 2013 at 10:13:33PM +0000, FreeBSD Tinderbox wrote: F> cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ia64/libuwx/src -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -fpic -ffreestanding -Werror /src/sys/netinet/ip_output.c F> cc1: warnings being treated as errors F> /src/sys/netinet/ip_output.c: In function 'ip_output': F> /src/sys/netinet/ip_output.c:625: warning: cast discards qualifiers from pointer target type F> /src/sys/netinet/ip_output.c:659: warning: cast discards qualifiers from pointer target type So, the r249894 appeared buildable on clang, but not on gcc. What I can do is to change if_output declaration to use pointer to a constant sockaddr. The change requires editing a lot, and changes API. However this is a change in a right direction. Any objections? -- Totus tuus, Glebius.