From nobody Wed Mar 08 11:13:49 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PWqSp5JZ7z3wGGs for ; Wed, 8 Mar 2023 11:14:02 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PWqSn5zsFz49vh; Wed, 8 Mar 2023 11:14:01 +0000 (UTC) (envelope-from tuexen@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2a02:8109:1140:c3d:55fc:e7a5:173f:ecd7]) (Authenticated sender: micmac) by mail-n.franken.de (Postfix) with ESMTPSA id 4A87D70204CEE; Wed, 8 Mar 2023 12:13:52 +0100 (CET) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C From: tuexen@freebsd.org In-Reply-To: <20230308114249.7cc1f363@thor.intern.walstatt.dynvpn.de> Date: Wed, 8 Mar 2023 12:13:49 +0100 Cc: Dimitry Andric , FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <578986DC-7F6B-4530-BA90-64B3C8CF59DA@freebsd.org> References: <20230227192011.08f7aa8e@thor.intern.walstatt.dynvpn.de> <720721A7-B1ED-405B-98EB-04A3AFCA7FD5@gromit.dlib.vt.edu> <1F3F20A1-C2BC-4A33-ABFD-D20F4ADB67E8@FreeBSD.org> <20230302064153.12940fa8@thor.intern.walstatt.dynvpn.de> <6321CA49-A38A-4FC6-A41E-E9964C2A94E3@FreeBSD.org> <20230308111931.27d9e524@thor.intern.walstatt.dynvpn.de> <20230308114249.7cc1f363@thor.intern.walstatt.dynvpn.de> To: FreeBSD User X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 4PWqSn5zsFz49vh X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:680, ipnet:193.174.0.0/15, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N > On 8. Mar 2023, at 11:42, FreeBSD User wrote: >=20 > Am Wed, 8 Mar 2023 11:28:11 +0100 > Dimitry Andric schrieb: >=20 >> On 8 Mar 2023, at 11:19, FreeBSD User wrote: >> ... >>> But I don't understand why the make environment is trying to compile = a piece of code that >>> is disabled via "nodevice" as shown in my initial report herein: >>>=20 >>> [...] >>> src/sys/dev/an/if_an_pci.c:143:1: error: a function definition = without a prototype is >>> deprecated in all versions of C and is not supported in C2x >>> [-Werror,-Wdeprecated-non-prototype] >>> [...] =20 >>=20 >> The "nodevice" is for your custom kernel configuration, but as far as = I >> can see an(4) is still built as a module, see sys/modules/Makefile: >>=20 >> ... >> .if ${MACHINE_CPUARCH} =3D=3D "i386" || ${MACHINE_CPUARCH} =3D=3D = "amd64" >> _agp=3D agp >> _an=3D an >>=20 >> -Dimitry >>=20 >=20 > Oh, I'm sorry, > my fault in logic! >=20 > Is there a "knob" to explicitely disable that specific module from = being built from a point of > view of a user like me (not touching the base build system)? Use WITHOUT_MODULES=3Dan in /etc/make.conf Best regards Michael >=20 > --=20 > O. Hartmann