Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 2002 09:22:33 -0700 (PDT)
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Subject:   World breakage + (possible) patch [compiles; still building world]
Message-ID:  <200208181622.g7IGMXW0000538@bunrab.catwhisker.org>

next in thread | raw e-mail | index | archive | help
Symptom:

===> sbin/ifconfig
cc -O -pipe  -DUSE_IF_MEDIA -DINET6 -DUSE_VLANS -DUSE_IEEE80211 -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings  -Wnested-externs -I..    -c /usr/src/sbin/ifconfig/ifconfig.c
cc -O -pipe  -DUSE_IF_MEDIA -DINET6 -DUSE_VLANS -DUSE_IEEE80211 -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings  -Wnested-externs -I..    -c /usr/src/sbin/ifconfig/ifmedia.c
cc -O -pipe  -DUSE_IF_MEDIA -DINET6 -DUSE_VLANS -DUSE_IEEE80211 -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings  -Wnested-externs -I..    -c /usr/src/sbin/ifconfig/ifvlan.c
cc -O -pipe  -DUSE_IF_MEDIA -DINET6 -DUSE_VLANS -DUSE_IEEE80211 -DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings  -Wnested-externs -I..    -c /usr/src/sbin/ifconfig/ifieee80211.c
gzip -cn /usr/src/sbin/ifconfig/ifconfig.8 > ifconfig.8.gz
/usr/src/sbin/ifconfig/ifconfig.c: In function `setifflags':
/usr/src/sbin/ifconfig/ifconfig.c:1002: invalid type argument of `->'
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
freebeast(5.0-C)[2] 


Patch for ifconfig ver. 1.76:
Index: sbin/ifconfig/ifconfig.c
===================================================================
RCS file: /cvs/freebsd/src/sbin/ifconfig/ifconfig.c,v
retrieving revision 1.76
diff -u -r1.76 ifconfig.c
--- sbin/ifconfig/ifconfig.c	18 Aug 2002 07:04:57 -0000	1.76
+++ sbin/ifconfig/ifconfig.c	18 Aug 2002 15:33:04 -0000
@@ -999,7 +999,7 @@
  		exit(1);
  	}
 	strncpy(my_ifr.ifr_name, name, sizeof (my_ifr.ifr_name));
- 	flags = (ifr->ifr_flags & 0xffff) | (my_ifr.ifr_flagshigh << 16);
+ 	flags = (my_ifr.ifr_flags & 0xffff) | (my_ifr.ifr_flagshigh << 16);
 
 	if (value < 0) {
 		value = -value;


As note in the Subject:, the result compiles OK.  I got through the
buildworld, but am still building the kernel, so I cannot claim to have
tested it.

Cheers,
david
-- 
David H. Wolfskill				david@catwhisker.org
To paraphrase David Hilbert, there can be no conflicts between the
discipline of systems administration and Microsoft, since they have
nothing in common.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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