Subject: Build failure
To: None <current-users@netbsd.org>
From: Paul Goyette <paul@whooppee.com>
List: current-users
Date: 12/10/2006 08:15:59
>From sources updated via CVS just a few minutes ago...

#   compile  systrace/systrace-translate.o
/usr/src/obj.amd64/tooldir.NetBSD-4.99.5-x86_64/bin/x86_64--netbsd-gcc 
-O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
-Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual 
-Wwrite-strings -Wextra -Wno-unused-parameter  -Werror   -I.
-I/usr/src/bin/systrace -I/usr/src/sys  -nostdinc
-isystem /usr/obj/destdir.amd64/usr/include  -c
/usr/src/bin/systrace/systrace-translate.c
cc1: warnings being treated as errors
/usr/src/bin/systrace/systrace-translate.c:664: warning: missing initializer
/usr/src/bin/systrace/systrace-translate.c:664: warning: (near initialization
for 'ic_linux_memprot.off2')

The following patch seems to work...

RCS file: /cvsroot/src/bin/systrace/systrace-translate.c,v
retrieving revision 1.19
diff -u -p -r1.19 systrace-translate.c
--- systrace-translate.c        10 Dec 2006 01:22:02 -0000      1.19
+++ systrace-translate.c        10 Dec 2006 16:13:06 -0000
@@ -659,6 +659,7 @@ struct intercept_translate ic_memprot =
  };

  struct intercept_translate ic_linux_memprot = {
-       "prot",
-       get_linux_memprot, print_memprot,
+       .name = "prot",
+       .translate = get_linux_memprot,
+       .print = print_memprot,
  };


----------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Network Engineer | FA29 0E3B 35AF E8AE 6651 |  paul@whooppee.com   |
|                  | 0786 F758 55DE 53BA 7731 | pgoyette@juniper.net |
----------------------------------------------------------------------