From owner-freebsd-net@FreeBSD.ORG Tue Dec 17 19:13:29 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BA3DAA80; Tue, 17 Dec 2013 19:13:29 +0000 (UTC) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) by mx1.freebsd.org (Postfix) with ESMTP id 456091289; Tue, 17 Dec 2013 19:13:29 +0000 (UTC) Received: from amavis-proxy-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 3dkTXR0dPyzGN2x; Tue, 17 Dec 2013 20:13:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= message-id:content-transfer-encoding:content-type:content-type :mime-version:user-agent:date:date:subject:subject:organization :from:from:received:received:received; s=jakla2; t=1387307601; x=1389899602; bh=SrdiS+397kwoYVVx5GEbJtVtCK1XAJRUEEACx7syEAo=; b= SL1VWv0OUMX8xjwX5PM46s6GqnWoieUVrI6fHmqn3p9KS6fDDIr1D4JQbnzaHasN Rg8Bf9OquYolbeY77wz+JYZSBjWHLrt2UW6fatjGnrf5mI0/vLe6AN7lnnA9UDeh VJShWeikk9iVLyy41UEvaTZbQ+xxrhh1Ye6dyo5tn1Y= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-proxy-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10012) with ESMTP id DjH_k13aax62; Tue, 17 Dec 2013 20:13:21 +0100 (CET) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP; Tue, 17 Dec 2013 20:13:21 +0100 (CET) Received: from neli.ijs.si (neli.ijs.si [IPv6:2001:1470:ff80:88:21c:c0ff:feb1:8c91]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mildred.ijs.si (Postfix) with ESMTPSA id 7AE174F8; Tue, 17 Dec 2013 20:13:21 +0100 (CET) From: Mark Martinec Organization: J. Stefan Institute To: freebsd-current@freebsd.org, freebsd-net@freebsd.org Subject: 10-RC unable to build kernel without INET (i.e. IPv6-only) Date: Tue, 17 Dec 2013 20:13:20 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.2-STABLE; KDE/4.10.5; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201312172013.20436.Mark.Martinec+freebsd@ijs.si> X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2013 19:13:29 -0000 Under 9.2 the following could be used to build an IPv6-only kernel: /sys/amd64/conf/TEST : include GENERIC makeoptions MKMODULESENV+="WITHOUT_INET_SUPPORT=" nooptions INET Now with stable/10 the: make buildkernel KERNCONF=TEST fails while building xen support: [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -g -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 -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error- parentheses-equality -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind- tables -ffreestanding -fstack-protector -Werror /usr/src/sys/dev/xen/control/control.c ctfconvert -L VERSION -g control.o cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -g -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 -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error- parentheses-equality -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind- tables -ffreestanding -fstack-protector -Werror /usr/src/sys/dev/xen/netback/netback.c /usr/src/sys/dev/xen/netback/netback.c:2244:8: error: use of undeclared identifier 'ifr' if (ifr->ifr_reqcap & IFCAP_TXCSUM) { ^ /usr/src/sys/dev/xen/netback/netback.c:2251:9: error: use of undeclared identifier 'ifr' if ((ifr->ifr_reqcap & IFCAP_RXCSUM)) { ^ /usr/src/sys/dev/xen/netback/netback.c:2284:18: error: use of undeclared identifier 'ifr' ifp->if_mtu = ifr->ifr_mtu; ^ /usr/src/sys/dev/xen/netback/netback.c:2292:31: error: use of undeclared identifier 'ifr' error = ifmedia_ioctl(ifp, ifr, &xnb->sc_media, cmd); ^ 4 errors generated. *** Error code 1 Stop. make[2]: stopped in /usr/obj/usr/src/sys/TEST *** Error code 1 Mark