The recent network changes to inet{4,6} autoconf have broken shells/nsh.
AGAIN.
I'm getting rather tired of cleaning this up each time. sthen@ too,
I think.
------------------------------------------------------------------------
>>> Building on amd64-1 under shells/nsh
BDEPENDS = [databases/sqlite3]
DIST = [shells/nsh:nsh-1.0.20201006-4b92f912.tar.gz]
FULLPKGNAME = nsh-1.0.20201006
RDEPENDS = [databases/sqlite3]
(Junk lock obtained for amd64-1 at 1615918841.10)
>>> Running depends in shells/nsh at 1615918841.14
last junk was in net/net-snmp
/usr/sbin/pkg_add -aI -Drepair sqlite3-3.34.1
was: /usr/sbin/pkg_add -aI -Drepair sqlite3-3.34.1
/usr/sbin/pkg_add -aI -Drepair sqlite3-3.34.1
>>> Running show-prepare-results in shells/nsh at 1615918842.16
===> shells/nsh
===> nsh-1.0.20201006 depends on: sqlite3-* -> sqlite3-3.34.1
===> Verifying specs: c curses edit sqlite3
===> found c.96.0 curses.14.0 edit.5.2 sqlite3.37.12
sqlite3-3.34.1
(Junk lock released for amd64-1 at 1615918842.47)
distfiles size=130053
>>> Running build in shells/nsh at 1615918842.48
===> shells/nsh
===> Checking files for nsh-1.0.20201006
`/usr/ports/distfiles/nsh-1.0.20201006-4b92f912.tar.gz' is up to date.
>> (SHA256) nsh-1.0.20201006-4b92f912.tar.gz: OK
===> Extracting for nsh-1.0.20201006
===> Patching for nsh-1.0.20201006
===> Applying OpenBSD patch patch-MANUAL
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-MANUAL,v 1.3 2021/02/04 22:13:09 naddy Exp $
|
|Index: MANUAL
|--- MANUAL.orig
|+++ MANUAL
--------------------------
Patching file MANUAL using Plan A...
Hunk #1 succeeded at 149.
done
===> Applying OpenBSD patch patch-externs_h
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-externs_h,v 1.3 2021/02/04 22:13:10 naddy Exp $
|
|Index: externs.h
|--- externs.h.orig
|+++ externs.h
--------------------------
Patching file externs.h using Plan A...
Hunk #1 succeeded at 87.
done
===> Applying OpenBSD patch patch-kroute_c
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$OpenBSD: patch-kroute_c,v 1.7 2021/02/04 22:13:10 naddy Exp $
|
|Index: kroute.c
|--- kroute.c.orig
|+++ kroute.c
--------------------------
Patching file kroute.c using Plan A...
Hunk #1 succeeded at 62.
done
===> Compiler link: clang -> /usr/bin/clang
===> Compiler link: clang++ -> /usr/bin/clang++
===> Compiler link: cc -> /usr/bin/cc
===> Compiler link: c++ -> /usr/bin/c++
===> Generating configure for nsh-1.0.20201006
===> Configuring for nsh-1.0.20201006
===> Building for nsh-1.0.20201006
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c arp.c
sh
/usr/obj/ports/nsh-1.0.20201006/nsh-4b92f9124641caddcce238293919b1ec45b5a20d/compile.sh
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c
compile.c
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c
main.c
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c
genget.c
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c
commands.c
commands.c:454:44: warning: expression which evaluates to zero treated as a
null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *argv[] = { PKILL, "-9", "-t", line, '\0' };
^~~~
commands.c:1676:36: warning: expression which evaluates to zero treated as a
null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *argv[] = { x->cmd, x->arg, '\0' };
^~~~
commands.c:1723:35: warning: size argument in 'strlcpy' call appears to be size
of the source; expected the size of the destination [-Wstrlcpy-strlcat-size]
strlcpy(saveline, line, sizeof(line));
~~~~~~~^~~~~
commands.c:1723:28: note: change size argument to be the size of the destination
strlcpy(saveline, line, sizeof(line));
^~~~~~~~~~~~
sizeof(saveline)
commands.c:1879:43: warning: expression which evaluates to zero treated as a
null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *argv[] = { SAVESCRIPT, NSHRC_TEMP, '\0' };
^~~~
commands.c:2075:36: warning: expression which evaluates to zero treated as a
null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *argv[] = { PFCTL, "-sinfo", '\0' };
^~~~
commands.c:2088:63: warning: expression which evaluates to zero treated as a
null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *args[NOPTFILL] = { NULL, NULL, NULL, NULL, NULL, NULL, '\0' };
^~~~
commands.c:2153:14: warning: expression which evaluates to zero treated as a
null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
args[i] = '\0';
^~~~
commands.c:2172:15: warning: expression which evaluates to zero treated as a
null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
args[i] = '\0';
^~~~
8 warnings generated.
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c
stats.c
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c
kroute.c
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c ctl.c
ctl.c:113:48: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_pf_test[] = { PFCTL, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:128:50: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_ospf_test[] = { OSPFD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:147:52: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_ospf6_test[] = { OSPF6D, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:166:52: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_eigrp_test[] = { EIGRPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:185:54: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_bgp_test[] = { BGPD, "-nf", REQTEMP, NULL, '\0' };
^~~~
ctl.c:208:48: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_rip_test[] = { RIPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:225:48: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_ldp_test[] = { LDPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:242:54: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_ipsec_test[] = { IPSECCTL, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:257:48: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_ike_test[] = { IKED, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:282:52: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_dvmrp_test[] = { DVMRPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:302:56: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_ifstate_test[] = { IFSTATED, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:326:50: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_nppp_test[] = { NPPPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:345:50: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_dhcp_test[] = { DHCPD, "-nc", REQTEMP, '\0' };
^~~~
ctl.c:359:50: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_snmp_test[] = { SNMPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:374:49: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_sshd_test[] = { SSHD, "-tf", REQTEMP, '\0' };
^~~~
ctl.c:388:48: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_ntp_test[] = { NTPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:401:52: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_relay_test[] = { RELAYD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:426:50: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_smtp_test[] = { SMTPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:501:50: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *ctl_ldap_test[] = { LDAPD, "-nf", REQTEMP, '\0' };
^~~~
ctl.c:548:68: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *step_args[NOPTFILL] = { NULL, NULL, NULL, NULL, NULL, NULL, '\0'
};
^~~~
ctl.c:549:67: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *tmp_args[NOPTFILL] = { NULL, NULL, NULL, NULL, NULL, NULL, '\0' };
^~~~
ctl.c:651:21: warning: comparing a pointer to a null character constant; did
you mean to compare to NULL? [-Wpointer-compare]
if(fillargs[i] == '\0' || fillargs[i] == NULL) {
^~~~
(void *)0
ctl.c:688:37: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *argv[] = { editor, tmpfile, '\0' };
^~~~
23 warnings generated.
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c
show.c
cc -O2 -pipe -Wmissing-prototypes -Wformat -Wall -Wpointer-arith
-Wbad-function-cast -I/usr/local/include -MD -MP -I/usr/local/include -c if.c
if.c:760:47: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *args[] = { PKILL, "dhclient", ifname, '\0' };
^~~~
if.c:761:42: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *args_set[] = { DHCLIENT, ifname, '\0' };
^~~~
if.c:1359:48: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *cmd[] = { DHCRELAY, "-i", ifname, NULL, '\0' };
^~~~
if.c:1391:43: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *killcmd[] = { PKILL, "-xf", NULL, '\0' };
^~~~
if.c:1559:44: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *vnet_argv[] = { "vnetid", argv[0], '\0' };
^~~~
if.c:1560:43: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
char *par_argv[] = { "parent", argv[2], '\0' };
^~~~
if.c:1817:12: error: use of undeclared identifier 'IFXF_INET6_NOPRIVACY'
value = -IFXF_INET6_NOPRIVACY;
^
if.c:1987:3: warning: misleading indentation; statement is not part of the
previous 'if' [-Wmisleading-indentation]
if (errmsg) {
^
if.c:1985:2: note: previous statement is here
if (argc == 1)
^
if.c:2149:37: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
"/var/run/rtadvd.0", ifname, '\0' };
^~~~
if.c:2167:16: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
ifname, '\0' };
^~~~
9 warnings and 1 error generated.
*** Error 1 in
/usr/obj/ports/nsh-1.0.20201006/nsh-4b92f9124641caddcce238293919b1ec45b5a20d
(<sys.mk>:87 'if.o')
*** Error 2 in shells/nsh (/usr/ports/infrastructure/mk/bsd.port.mk:2950
'/usr/obj/ports/nsh-1.0.20201006/.build_done': @cd /usr/obj/ports/n...)
*** Error 2 in shells/nsh (/usr/ports/infrastructure/mk/bsd.port.mk:2605
'build': @lock=nsh-1.0.20201006; export _LOCKS_HELD=" nsh-1.0.2020...)
===> Exiting shells/nsh with an error
*** Error 1 in /usr/ports (infrastructure/mk/bsd.port.subdir.mk:137 'build': @:
${echo_msg:=echo}; : ${target:=build}; for i in ; do eval...)
>>> Ended at 1615918844.71
max_stuck=0.00/depends=1.02/show-prepare-results=0.34/build=2.24
Error: job failed with 512 on amd64-1 at 1615918844
--
Christian "naddy" Weisgerber [email protected]