pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/34113: pkgsrc/emulators/tme fix for gcc4



>Number:         34113
>Category:       pkg
>Synopsis:       pkgsrc/emulators/tme fix for gcc4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 29 16:45:01 +0000 2006
>Originator:     Izumi Tsutsui
>Release:        NetBSD 3.99.23
>Organization:
>Environment:
System: NetBSD 3.99.23 around 20060721
Architecture: i386
Machine: i386
>Description:
tme specifies -Wall -Werror so compile fails on some sources with gcc4.
(mostly strict-aliasing and different signed pointers)

>How-To-Repeat:
>Fix:
Just modify CFLAGS, and add casts, or change decls:

Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/tme/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo    5 Dec 2005 20:50:12 -0000       1.5
+++ distinfo    29 Jul 2006 15:11:47 -0000
@@ -4,6 +4,12 @@
 RMD160 (tme-0.4.tar.gz) = a5b5ac56c8247f94cd96c92a04a6cb132ba92931
 Size (tme-0.4.tar.gz) = 1448981 bytes
 SHA1 (patch-aa) = 0fe6c37472caa876c253b9e8bb4e09cd278e5def
-SHA1 (patch-ac) = 885286eb6893d5af9769791805d054212b6d0db5
+SHA1 (patch-ac) = 94940e5f0a99c4c1e4e718ffc35fbb2117bceb21
 SHA1 (patch-ad) = 3f5adbaa94e5b97ded14e9a05cce912ed01f406f
 SHA1 (patch-ae) = 2f472a55f5afd1c0079349ce49bd3eb251ea9d76
+SHA1 (patch-af) = 6f6be39f73542ef128824aaa969fa9e793c478a5
+SHA1 (patch-ag) = 06342dbebbf9a73bf4bc77d9dffd6f39e8e3502a
+SHA1 (patch-ah) = 29ededa7be17a570be7d5f38b9536ff725ece5dc
+SHA1 (patch-ai) = b36aecb7f3a89d80be4631bebaa3f3230ce7c8e7
+SHA1 (patch-aj) = 2c216b3549ad02a81ba829e43dfa46dcd0525e24
+SHA1 (patch-ak) = c6317d655348bb679f1ea6eef79e8743f3eb0158
Index: patches/patch-ac
===================================================================
RCS file: /cvsroot/pkgsrc/emulators/tme/patches/patch-ac,v
retrieving revision 1.3
diff -u -r1.3 patch-ac
--- patches/patch-ac    27 Jul 2005 07:29:26 -0000      1.3
+++ patches/patch-ac    29 Jul 2006 15:11:47 -0000
@@ -1,8 +1,17 @@
 $NetBSD: patch-ac,v 1.3 2005/07/27 07:29:26 skrll Exp $
 
---- libtme/module.c.orig       2005-01-26 12:59:24.000000000 +0000
-+++ libtme/module.c
-@@ -230,7 +230,7 @@ tme_module_open(const char *module_fake_
+--- libtme/module.c.orig       2005-01-26 21:59:24.000000000 +0900
++++ libtme/module.c    2006-07-29 14:41:36.000000000 +0900
+@@ -214,7 +214,7 @@
+   char *modules_dir;
+   char line_buffer[1024];
+   char **tokens;
+-  unsigned int tokens_count;
++  int tokens_count;
+   char *module_basename;
+   char *module_pathname;
+   lt_dlhandle handle;
+@@ -230,7 +230,7 @@
    for (p1 = module_raw_name;
         (c = *p1) != '\0';
         p1++) {
--- /dev/null   2006-07-30 00:10:26.000000000 +0900
+++ patches/patch-af    2006-07-29 15:36:16.000000000 +0900
@@ -0,0 +1,242 @@
+$NetBSD$
+
+--- bus/multibus/Makefile.in.orig      2005-05-15 10:26:15.000000000 +0900
++++ bus/multibus/Makefile.in   2006-07-29 14:32:31.000000000 +0900
+@@ -221,9 +221,10 @@
+ @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/3c400.Plo ./$(DEPDIR)/sun-mie.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/sun-sc.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- generic/Makefile.in.orig   2005-05-15 10:26:16.000000000 +0900
++++ generic/Makefile.in        2006-07-29 14:30:19.000000000 +0900
+@@ -247,9 +247,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/scsi.Plo ./$(DEPDIR)/serial.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/tape.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- host/bsd/Makefile.in.orig  2005-05-15 10:26:17.000000000 +0900
++++ host/bsd/Makefile.in       2006-07-29 14:32:41.000000000 +0900
+@@ -217,9 +217,10 @@
+ am__depfiles_maybe = depfiles
+ @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/bsd-bpf.Plo ./$(DEPDIR)/bsd-if.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- host/gtk/Makefile.in.orig  2005-05-15 10:26:17.000000000 +0900
++++ host/gtk/Makefile.in       2006-07-29 14:32:52.000000000 +0900
+@@ -221,9 +221,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/gtk-mouse.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/gtk-screen.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- host/posix/Makefile.in.orig        2005-05-15 10:26:18.000000000 +0900
++++ host/posix/Makefile.in     2006-07-29 14:33:04.000000000 +0900
+@@ -225,9 +225,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/posix-serial.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/posix-tape.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- ic/Makefile.in.orig        2005-05-15 10:26:19.000000000 +0900
++++ ic/Makefile.in     2006-07-29 14:30:51.000000000 +0900
+@@ -280,9 +280,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/isil7170.Plo ./$(DEPDIR)/mm58167.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/ncr5380.Plo ./$(DEPDIR)/z8530.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- ic/ieee754/Makefile.in.orig        2005-05-15 10:26:19.000000000 +0900
++++ ic/ieee754/Makefile.in     2006-07-29 14:33:17.000000000 +0900
+@@ -190,9 +190,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/ieee754-ops-auto.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/softfloat-tme.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- ic/m68k/Makefile.in.orig   2005-05-15 10:26:20.000000000 +0900
++++ ic/m68k/Makefile.in        2006-07-29 14:33:27.000000000 +0900
+@@ -241,9 +241,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/m68k-misc.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/m68k-opmap.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- libltdl/Makefile.in.orig   2003-05-14 11:33:05.000000000 +0900
++++ libltdl/Makefile.in        2006-07-29 14:31:04.000000000 +0900
+@@ -177,9 +177,10 @@
+ depcomp =
+ am__depfiles_maybe =
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- libtme/Makefile.in.orig    2005-05-15 10:26:20.000000000 +0900
++++ libtme/Makefile.in 2006-07-29 14:31:20.000000000 +0900
+@@ -195,9 +195,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/misc.Plo ./$(DEPDIR)/module.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/threads-sjlj.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+
+--- machine/sun/Makefile.in.orig       2005-05-15 10:26:22.000000000 +0900
++++ machine/sun/Makefile.in    2006-07-29 14:33:37.000000000 +0900
+@@ -205,9 +205,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/sun-mmu.Plo ./$(DEPDIR)/sun-obie.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/sun-si.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
++++ machine/sun2/Makefile.in   2006-07-29 14:33:45.000000000 +0900
+@@ -230,9 +230,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/sun2-mainbus.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/sun2-mmu.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- machine/sun3/Makefile.in.orig      2005-05-15 10:26:23.000000000 +0900
++++ machine/sun3/Makefile.in   2006-07-29 14:33:54.000000000 +0900
+@@ -230,9 +230,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/sun3-mainbus.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/sun3-mmu.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- scsi/Makefile.in.orig      2005-05-15 10:26:23.000000000 +0900
++++ scsi/Makefile.in   2006-07-29 14:31:42.000000000 +0900
+@@ -235,9 +235,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/scsi-disk.Plo ./$(DEPDIR)/scsi-msg.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/scsi-tape.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- serial/Makefile.in.orig    2005-05-15 10:26:24.000000000 +0900
++++ serial/Makefile.in 2006-07-29 14:31:54.000000000 +0900
+@@ -228,9 +228,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/ms-mssystems.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/serial-kb.Plo ./$(DEPDIR)/serial-ms.Plo
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+--- tmesh/Makefile.in.orig     2005-05-15 10:26:27.000000000 +0900
++++ tmesh/Makefile.in  2006-07-29 14:32:10.000000000 +0900
+@@ -200,9 +200,10 @@
+ @AMDEP_TRUE@  ./$(DEPDIR)/tmesh-input.Plo \
+ @AMDEP_TRUE@  ./$(DEPDIR)/tmesh-util.Plo ./$(DEPDIR)/tmesh.Po
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+-      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CFLAGS_NO_STRICT_ALIASING)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+-      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
++      $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \
++      $(CFLAGS_NO_STRICT_ALIASING)
+ CCLD = $(CC)
+ LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
--- /dev/null   2006-07-30 00:10:26.000000000 +0900
+++ patches/patch-ag    2006-07-30 00:11:21.000000000 +0900
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- dist/softfloat/softfloat/bits64/softfloat.c.orig   2005-05-11 
09:06:30.000000000 +0900
++++ dist/softfloat/softfloat/bits64/softfloat.c        2006-07-29 
23:57:11.000000000 +0900
+@@ -4909,7 +4909,7 @@
+         sub128( aSig0, aSig1, bSig0, bSig1, &aSig0, &aSig1 );
+     } while ( 0 <= (sbits64) aSig0 );
+     add128(
+-        aSig0, aSig1, alternateASig0, alternateASig1, &sigMean0, &sigMean1 );
++        aSig0, aSig1, alternateASig0, alternateASig1, (bits64 *)&sigMean0, 
&sigMean1 );
+     if (    ( sigMean0 < 0 )
+          || ( ( ( sigMean0 | sigMean1 ) == 0 ) && ( q & 1 ) ) ) {
+         aSig0 = alternateASig0;
--- /dev/null   2006-07-30 00:10:26.000000000 +0900
+++ patches/patch-ah    2006-07-29 15:37:57.000000000 +0900
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- scsi/scsi-cdb.c.orig       2004-12-06 12:40:33.000000000 +0900
++++ scsi/scsi-cdb.c    2006-07-29 15:14:52.000000000 +0900
+@@ -187,7 +187,7 @@
+ /* this adds one of the inquiry strings to the data: */
+ static tme_uint8_t *
+ _tme_scsi_device_make_inquiry_string(tme_uint8_t *data,
+-                                   const tme_uint8_t *string,
++                                   char *string,
+                                    unsigned int size)
+ {
+   tme_uint8_t c;
--- /dev/null   2006-07-30 00:10:26.000000000 +0900
+++ patches/patch-ai    2006-07-29 15:39:01.000000000 +0900
@@ -0,0 +1,30 @@
+$NetBSD$
+
+--- host/gtk/gtk-mouse.c.orig  2003-07-31 10:41:48.000000000 +0900
++++ host/gtk/gtk-mouse.c       2006-07-29 15:04:20.000000000 +0900
+@@ -312,8 +312,8 @@
+   gdk_window_get_geometry(screen->tme_gtk_screen_gtkimage->window,
+                         &junk,
+                         &junk,
+-                        &screen->tme_gtk_screen_mouse_warp_x,
+-                        &screen->tme_gtk_screen_mouse_warp_y,
++                        (gint *)&screen->tme_gtk_screen_mouse_warp_x,
++                        (gint *)&screen->tme_gtk_screen_mouse_warp_y,
+                         &junk);
+   screen->tme_gtk_screen_mouse_warp_x >>= 1;
+   screen->tme_gtk_screen_mouse_warp_y >>= 1;
+@@ -626,12 +626,12 @@
+   /* create the mouse cursor: */
+   source
+     = gdk_bitmap_create_from_data(NULL,
+-                                _tme_gtk_mouse_cursor_source,
++                                (const gchar *)_tme_gtk_mouse_cursor_source,
+                                 TME_GTK_MOUSE_CURSOR_WIDTH,
+                                 TME_GTK_MOUSE_CURSOR_HEIGHT);
+   mask
+     = gdk_bitmap_create_from_data (NULL,
+-                                 _tme_gtk_mouse_cursor_mask,
++                                 (const gchar *)_tme_gtk_mouse_cursor_mask,
+                                  TME_GTK_MOUSE_CURSOR_WIDTH,
+                                  TME_GTK_MOUSE_CURSOR_HEIGHT);
+   display->tme_gtk_display_mouse_cursor
--- /dev/null   2006-07-30 00:10:26.000000000 +0900
+++ patches/patch-aj    2006-07-29 15:39:30.000000000 +0900
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- ic/m68k/m68k-bus-auto.c.orig       2005-03-23 11:24:55.000000000 +0900
++++ ic/m68k/m68k-bus-auto.c    2006-07-29 14:46:47.000000000 +0900
+@@ -156,7 +156,7 @@
+ };
+ 
+ /* the 32-bit bus router used on the 68020 and 68030: */
+-static const tme_bus_lane_t 
tme_m68k_router_32[TME_M68K_BUS_ROUTER_SIZE(TME_BUS32_LOG2)] = {
++const tme_bus_lane_t 
tme_m68k_router_32[TME_M68K_BUS_ROUTER_SIZE(TME_BUS32_LOG2)] = {
+ 
+   /* [m68k] initiator maximum cycle size: 8 bits
+      [m68k] initiator A1,A0: 00
--- /dev/null   2006-07-30 00:10:26.000000000 +0900
+++ patches/patch-ak    2006-07-29 15:41:28.000000000 +0900
@@ -0,0 +1,30 @@
+$NetBSD$
+
+--- machine/sun/sun-si.c.orig  2005-02-17 21:19:17.000000000 +0900
++++ machine/sun/sun-si.c       2006-07-29 14:59:24.000000000 +0900
+@@ -475,7 +475,6 @@
+   tme_uint32_t csr_old, csr_new, csr_diff, csr_mask;
+   tme_bus_addr_t address;
+   tme_uint8_t cycle_size;
+-  tme_uint32_t csr;
+   tme_uint32_t dma_count;
+   int new_callouts;
+ 
+@@ -561,7 +560,7 @@
+       case TME_SUN_SI_TYPE_VME:
+       TME_SUN_SI_REG16_PUT(sun_si, TME_SUN_SI_REG_FIFO_COUNT_L, 0);
+       TME_SUN_SI_REG16_PUT(sun_si, TME_SUN_SI_REG_VME_FIFO_COUNT_H, 0);
+-      csr &= ~TME_SUN_SI_CSR_VME_LOB_MASK;
++      csr_new &= ~TME_SUN_SI_CSR_VME_LOB_MASK;
+       break;
+       case TME_SUN_SI_TYPE_COBRA:
+       abort();
+@@ -1428,7 +1427,7 @@
+   sun_si = tme_new0(struct tme_sun_si, 1);
+   sun_si->tme_sun_si_type = si_type;
+   sun_si->tme_sun_si_3e_dma = (si_type == TME_SUN_SI_TYPE_3E
+-                             ? tme_new(char, TME_SUN_SI_3E_SIZ_DMA)
++                             ? tme_new(unsigned char, TME_SUN_SI_3E_SIZ_DMA)
+                              : NULL);
+   sun_si->tme_sun_si_element = element;
+   TME_SUN_SI_CSR_PUT(sun_si,




Home | Main Index | Thread Index | Old Index