Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2003 21:29:06 +0200 (CEST)
From:      Lukas Ertl <l.ertl@univie.ac.at>
To:        current@freebsd.org
Subject:   make buildkernel currently broken in sys/pci/agp_intel.c
Message-ID:  <20030527211854.U667@leelou.in.tern>

next in thread | raw e-mail | index | archive | help
cc -c -O -pipe -march=3Dathlon -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-q=
ual
-fformat-extensions -std=3Dc99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/=
src/sys/dev
-I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/ipfilter -D_KERNEL
-include opt_global.h -fno-common  -mno-align-long-strings
-mpreferred-stack-boundary=3D2 -ffreestanding -Werror  /usr/src/sys/pci/agp=
_intel.c
/usr/src/sys/pci/agp_intel.c: In function `agp_intel_attach':
/usr/src/sys/pci/agp_intel.c:173: `value' undeclared (first use in this
function)
/usr/src/sys/pci/agp_intel.c:173: (Each undeclared identifier is reported
only once
/usr/src/sys/pci/agp_intel.c:173: for each function it appears in.)
*** Error code 1

This is probably because of rev. 1.13, which jhb@ committed just about an
hour ago.

Fix:

---8<---
Index: sys/pci/agp_intel.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /u/cvs/cvs/src/sys/pci/agp_intel.c,v
retrieving revision 1.13
diff -u -r1.13 agp_intel.c
--- sys/pci/agp_intel.c=0927 May 2003 18:23:56 -0000=091.13
+++ sys/pci/agp_intel.c=0927 May 2003 19:28:38 -0000
@@ -131,6 +131,7 @@
 =09struct agp_gatt *gatt;
 =09u_int32_t type =3D pci_get_devid(dev);
 =09int error;
+=09u_long value;

 =09error =3D agp_generic_attach(dev);
 =09if (error)
---8<---

regards,
le

--=20
Lukas Ertl                             eMail: l.ertl@univie.ac.at
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universit=E4t Wien                   http://mailbox.univie.ac.at/~le/



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