Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2017 10:43:09 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD current <freebsd-current@freebsd.org>
Subject:   ipfw_netflow in base/head r320944 & r321008
Message-ID:  <alpine.BSF.2.21.1707161038530.53090@mail.fig.ol.no>

next in thread | raw e-mail | index | archive | help
At boot time /etc/rc display this message:

/etc/rc: WARNING: $ipfw_netflow_enable is not set properly - see rc.conf(5).

This was introduced in r320944 and corrected to some extent in 
r321008.

Nevertheless, a default value for ipfw_netflow_enable should be 
provided:

Index: etc/defaults/rc.conf
===================================================================
--- etc/defaults/rc.conf	(revision 321041)
+++ etc/defaults/rc.conf	(working copy)
@@ -195,6 +195,7 @@
 				# of state tables at shutdown and boot
 ipfs_program="/sbin/ipfs"	# where the ipfs program lives
 ipfs_flags=""			# additional flags for ipfs
+ipfw_netflow_enable="NO"	# Set yo YES to enable ipfw netflow.
 pf_enable="NO"			# Set to YES to enable packet filter (pf)
 pf_rules="/etc/pf.conf"		# rules definition file for pf
 pf_program="/sbin/pfctl"	# where the pfctl program lives

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-current@freebsd.org  Sun Jul 16 08:44:58 2017
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76DA8BF9CF0
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Sun, 16 Jul 2017 08:44:58 +0000 (UTC)
 (envelope-from trond@fagskolen.gjovik.no)
Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no
 [IPv6:2001:700:1100:1:200:ff:fe00:b])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "smtp.fagskolen.gjovik.no",
 Issuer "Fagskolen i Gj??vik" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 0EA0871F76
 for <freebsd-current@freebsd.org>; Sun, 16 Jul 2017 08:44:57 +0000 (UTC)
 (envelope-from trond@fagskolen.gjovik.no)
Received: from mail.fig.ol.no (localhost [127.0.0.1])
 by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id v6G8islW058392
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
 for <freebsd-current@freebsd.org>; Sun, 16 Jul 2017 10:44:54 +0200 (CEST)
 (envelope-from trond@fagskolen.gjovik.no)
Received: from localhost (trond@localhost)
 by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id v6G8is2Q058389
 for <freebsd-current@freebsd.org>; Sun, 16 Jul 2017 10:44:54 +0200 (CEST)
 (envelope-from trond@fagskolen.gjovik.no)
X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs
Date: Sun, 16 Jul 2017 10:44:54 +0200 (CEST)
From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
Sender: Trond.Endrestol@fagskolen.gjovik.no
To: FreeBSD current <freebsd-current@freebsd.org>
Subject: Re: ipfw_netflow in base/head r320944 & r321008
In-Reply-To: <alpine.BSF.2.21.1707161038530.53090@mail.fig.ol.no>
Message-ID: <alpine.BSF.2.21.1707161044040.53090@mail.fig.ol.no>
References: <alpine.BSF.2.21.1707161038530.53090@mail.fig.ol.no>
User-Agent: Alpine 2.21 (BSF 202 2017-01-01)
Organization: Fagskolen Innlandet
OpenPGP: url=http://fig.ol.no/~trond/trond.key
MIME-Version: 1.0
X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED
 autolearn=unavailable autolearn_force=no version=3.4.1
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
X-Content-Filtered-By: Mailman/MimeDel 2.1.23
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Jul 2017 08:44:58 -0000

On Sun, 16 Jul 2017 10:43+0200, Trond Endrestøl wrote:

> At boot time /etc/rc display this message:
> 
> /etc/rc: WARNING: $ipfw_netflow_enable is not set properly - see rc.conf(5).
> 
> This was introduced in r320944 and corrected to some extent in 
> r321008.
> 
> Nevertheless, a default value for ipfw_netflow_enable should be 
> provided:
> 
> Index: etc/defaults/rc.conf
> ===================================================================
> --- etc/defaults/rc.conf	(revision 321041)
> +++ etc/defaults/rc.conf	(working copy)
> @@ -195,6 +195,7 @@
>  				# of state tables at shutdown and boot
>  ipfs_program="/sbin/ipfs"	# where the ipfs program lives
>  ipfs_flags=""			# additional flags for ipfs

> +ipfw_netflow_enable="NO"	# Set yo YES to enable ipfw netflow.

Typo fixed:

+ipfw_netflow_enable="NO"	# Set to YES to enable ipfw netflow.

>  pf_enable="NO"			# Set to YES to enable packet filter (pf)
>  pf_rules="/etc/pf.conf"		# rules definition file for pf
>  pf_program="/sbin/pfctl"	# where the pfctl program lives

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-current@freebsd.org  Sun Jul 16 16:11:32 2017
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04592C0AE3F
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Sun, 16 Jul 2017 16:11:32 +0000 (UTC)
 (envelope-from flo@snakeoilproductions.net)
Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3])
 by mx1.freebsd.org (Postfix) with ESMTP id E15E283114
 for <freebsd-current@freebsd.org>; Sun, 16 Jul 2017 16:11:31 +0000 (UTC)
 (envelope-from flo@snakeoilproductions.net)
Received: by mailman.ysv.freebsd.org (Postfix)
 id DD96FC0AE3C; Sun, 16 Jul 2017 16:11:31 +0000 (UTC)
Delivered-To: current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD307C0AE39
 for <current@mailman.ysv.freebsd.org>; Sun, 16 Jul 2017 16:11:31 +0000 (UTC)
 (envelope-from flo@snakeoilproductions.net)
Received: from turad.lysandor.de (turad.lysandor.de [136.243.10.60])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 8903E8310D
 for <current@freebsd.org>; Sun, 16 Jul 2017 16:11:30 +0000 (UTC)
 (envelope-from flo@snakeoilproductions.net)
Received: from localhost (localhost [127.0.0.1])
 by turad.lysandor.de (Postfix) with ESMTP id 6610CAA23EA
 for <current@freebsd.org>; Sun, 16 Jul 2017 18:03:35 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at turad.lysandor.de
Received: from turad.lysandor.de ([127.0.0.1])
 by localhost (turad.lysandor.de [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Hko6xSKFhCWh for <current@freebsd.org>;
 Sun, 16 Jul 2017 18:03:34 +0200 (CEST)
Received: from [192.168.2.105] (p4FDCC866.dip0.t-ipconnect.de [79.220.200.102])
 (Authenticated sender: flo@snakeoilproductions.net)
 by turad.lysandor.de (Postfix) with ESMTPSA id 9B6A0AA236B
 for <current@freebsd.org>; Sun, 16 Jul 2017 18:03:34 +0200 (CEST)
To: current@freebsd.org
From: Florian Limberger <flo@snakeoilproductions.net>
Subject: cc(1) errors in libc includes
Message-ID: <5e6e12f9-ade9-a6ff-bb3e-fc7e94f2cc75@snakeoilproductions.net>
Date: Sun, 16 Jul 2017 18:03:34 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.2.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>;
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Jul 2017 16:11:32 -0000

Hi -current,

today I built -CURRENT for the first time in a VM and installed from nfs
mounts. But now cc(1) from base seems to be broken, as it fails
compiling a simple hello-world program with errors in include files from
the libc. The previously installed clang40 works just fine for this
task, but since I lost track of -CURRENT around the time of the ino64
changes, I don't necessarily trust it to do the right thing.

Do you have any solutions for me how to get the compiler working again?

Below the uname info and the actual error messages:

 > # uname -a
 > FreeBSD nachtschatten 12.0-CURRENT FreeBSD 12.0-CURRENT #1 
aa8f1c64d43(master): Sun Jul 16 09:41:10 UTC 2017 
root@:/usr/obj/usr/src/sys/GENERIC-NODEBUG  amd64

 > # cat test.c
 > #include <stdio.h>
 >
 > int
 > main(void)
 > {
 >         printf("hello, world!\n");
 > }
 > # cc test.c
 > In file included from test.c:1:
 > In file included from /usr/include/stdio.h:41:
 > /usr/include/sys/_types.h:117:19: error: array is too large (128 
elements)
 >         char            __mbstate8[128];
 >                                    ^~~
 > In file included from test.c:1:
 > /usr/include/stdio.h:139:22: error: array is too large (3 elements)
 >         unsigned char _ubuf[3]; /* guarantee an ungetc() buffer */
 >                             ^
 > /usr/include/stdio.h:140:22: error: array is too large (1 elements)
 >         unsigned char _nbuf[1]; /* guarantee a getc() buffer */
 >                             ^
 > /usr/include/stdio.h:290:24: error: integer constant expression 
evaluates to value 3 that cannot be represented in a 32-bit unsigned 
integer type
 >             ...) __printflike(3, 4);
 >                               ^
 > /usr/include/stdio.h:292:18: error: integer constant expression 
evaluates to value 2 that cannot be represented in a 32-bit unsigned 
integer type
 >             __scanflike(2, 0);
 >                         ^
 > /usr/include/stdio.h:293:61: error: integer constant expression 
evaluates to value 1 that cannot be represented in a 32-bit unsigned 
integer type
 > int      vscanf(const char * __restrict, __va_list) __scanflike(1, 0);
 >                                                                 ^
 > /usr/include/stdio.h:295:30: error: integer constant expression 
evaluates to value 3 that cannot be represented in a 32-bit unsigned 
integer type
 >             __va_list) __printflike(3, 0);
 >                                     ^
 > /usr/include/stdio.h:297:18: error: integer constant expression 
evaluates to value 2 that cannot be represented in a 32-bit unsigned 
integer type
 >             __scanflike(2, 0);
 >                         ^
 > /usr/include/stdio.h:361:69: error: integer constant expression 
evaluates to value 2 that cannot be represented in a 32-bit unsigned 
integer type
 > int      vdprintf(int, const char * __restrict, __va_list) 
__printflike(2, 0);
 >                                                                         ^
 > /usr/include/stdio.h:364:62: error: integer constant expression 
evaluates to value 2 that cannot be represented in a 32-bit unsigned 
integer type
 > int      dprintf(int, const char * __restrict, ...) __printflike(2, 3);
 >                                                                  ^
 > /usr/include/stdio.h:371:56: error: integer constant expression 
evaluates to value 2 that cannot be represented in a 32-bit unsigned 
integer type
 > int      asprintf(char **, const char *, ...) __printflike(2, 3);
 >                                                            ^
 > /usr/include/stdio.h:381:19: error: integer constant expression 
evaluates to value 2 that cannot be represented in a 32-bit unsigned 
integer type
 >             __printflike(2, 0);
 >                          ^
 > 12 errors generated.

Regards


flo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.1707161038530.53090>