From nobody Mon Feb 27 21:10:02 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 4PQY7S0GT1z3t86P for ; Mon, 27 Feb 2023 21:10:44 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp052.goneo.de (smtp052.goneo.de [85.220.129.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQY7R4d4Mz3CXc; Mon, 27 Feb 2023 21:10:43 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; none Received: from hub2.goneo.de (hub2.goneo.de [IPv6:2001:1640:5::8:53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by smtp5.goneo.de (Postfix) with ESMTPS id 1B8E810A1E5A; Mon, 27 Feb 2023 22:10:40 +0100 (CET) Received: from hub2.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPS id 085E710A32F3; Mon, 27 Feb 2023 22:10:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1677532236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Js15bvTO5mGS6rBUFTovMJFdkh6Qy/wpmuPe/3KGESI=; b=mVhlYDo5jWMtEqJUFb3ek1bpU2OO6dWS/7iEFAfdNGph9QsqzjXdh7mB03wb1Lhnhn61qi 7gGqb/4ryHXCUqbR21z7dWKig5eFTceLbu6JwFWsupufUARuQbjKN06XgpU8nYgWbRdVo8 GB5IFa6gVne1/h6ChjQCJEzuoO3djO8hpE6NQ5fW4yo26+rpfFA1oM9U6ksRPAvLrIqUWs gwBOGDQb84ksaA7QKgowYFlRPEiVFu35hYAH42Ta8r2ul41qivy+S9zhWd1fC/i4pujpY3 P1XMK0UlDV/9fOVmWdH2dsa9J73JnAA80Nsnw4aLyskb+RNsvLCVwGiTYAi11w== Received: from thor.intern.walstatt.dynvpn.de (dynamic-077-013-048-012.77.13.pool.telefonica.de [77.13.48.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPSA id C0E2810A32F2; Mon, 27 Feb 2023 22:10:35 +0100 (CET) Date: Mon, 27 Feb 2023 22:10:02 +0100 From: FreeBSD User To: Dimitry Andric Cc: FreeBSD CURRENT Subject: Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C Message-ID: <20230227221022.3ed6f780@thor.intern.walstatt.dynvpn.de> In-Reply-To: References: <20230227192011.08f7aa8e@thor.intern.walstatt.dynvpn.de> Organization: walstatt-de.de 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 Content-Type: multipart/signed; boundary="Sig_/ryTzCoFmcxMgYns8clzJtZK"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-UID: 282706 X-Rspamd-UID: 34ec19 X-Rspamd-Queue-Id: 4PQY7R4d4Mz3CXc X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:25394, ipnet:85.220.128.0/17, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --Sig_/ryTzCoFmcxMgYns8clzJtZK Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Mon, 27 Feb 2023 20:57:19 +0100 Dimitry Andric schrieb: > On 27 Feb 2023, at 19:19, FreeBSD User wrote: > >=20 > > Running recent CURRENT as host (FreeBSD 14.0-CURRENT #23 main-n261147-b= 8bb73ab724b: Sun > > Feb 26 17:39:38 CET 2023 amd64), and nanoBSD (recent 13-STABLE, git sta= ble/13). > >=20 > > Building an appliance based on 13-STABLE sources, a customized kernel v= ia nanoBSD, since a > > couple of weeks for now building the sources fails in kernel sources: > >=20 > > [...] > > --- modules-all --- > > --- all_subdir_an --- > > /pool/home/ohartmann/Projects/router/router/apu2c4/src/sys/dev/an/if_an= _pci.c:143:1: > > error: a function definition without a prototype is deprecated in all v= ersions of C and is > > not supported in C2x [-Werror,-Wdeprecated-non-prototype] > > [..] > >=20 > > Disabling all wireless options in the kernel config starts dropping err= ors of a similar > > kind on other kernel places. > >=20 > > Compiling on FBSD 13-STABLE seems to be all right. > >=20 > > Can this be fixed. please? What causes the error and how can this be re= solved if the > > subtree of FreeBSD's sources is a submodule? =20 >=20 > Not sure what you mean with "subtree is a submodule", but this is likely > caused by skipping the cross-tools stage somehow. Do you have any > specific make.conf or src.conf settings for that? >=20 > -Dimitry >=20 Using a subtree "./src" withing the tree of our own repository for FreeBSD'= s sources, it is a git submodule. According to your question about specific src.conf and make.conf - Sometime= s I really do not know what NanoBSD or any cross compiling tool is picking up which one: the = host's one or the one supposed to control NanoBSD's build. So, the host itself does have a specific /etc/src.conf, make.conf is only a= bout some ports options to apply for the host. For the NanoBSD sources, it is considered one file, a merger of make.conf, = src.conf, and yes, those ones or in that case this one is highly customized due to spefici req= uirements for space reduction. Since that has been in the past a source of evil, I tried also w= ith a "vanilla" setup of this sepcific NanoBSD driven config (the host's src.conf/make.conf= has been left untouched) - in other words, deleting it, making a full fledged kernel/base= system with all the compiler settings at FreeBSD's default - with the same result as shown = above. Can you hint me towards what to look after in specific? Kind regards, Oliver --=20 O. Hartmann --Sig_/ryTzCoFmcxMgYns8clzJtZK Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCY/0cRQAKCRCxzvs8Oqok rz3LAQC0k55Rknz8ZdCOCXS7OJyEzaa33RtEbTGrq3KVfbyAgwEAlrDkFvrEl5sQ wlZff26U0E3HF3lF8aei0CGNll/1lwc= =DF19 -----END PGP SIGNATURE----- --Sig_/ryTzCoFmcxMgYns8clzJtZK--