tech-pkg archive

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

zsnes/amd64



I don't know if anyone's interested in this, but i got zsnes to build on
amd64. It segfaults when it runs, though, with this in the tail of the ktrace
output:

  2197      1 zsnes    RET   read 8105/0x1fa9
  2197      1 zsnes    CALL  close(3)
  2197      1 zsnes    RET   close 0
  2197      1 zsnes    CALL  __gettimeofday50(0x7f7fffffdaf0,0)
  2197      1 zsnes    RET   __gettimeofday50 0
  2197      1 zsnes    PSIG  SIGSEGV SIG_DFL: code=SEGV_ACCERR, addr=0xd96c71, 
trap=4)
  2197      1 zsnes    NAMI  "zsnes.core"


Here's the diff of emulators/zsnes and "wip"/zsnes-amd64:

diff ./Makefile ../../wip/zsnes-amd64/Makefile
17c17
< ONLY_FOR_PLATFORM=    *-*-i386
---
> #ONLY_FOR_PLATFORM=   *-*-i386
diff ./distinfo ../../wip/zsnes-amd64/distinfo
6,12c6,20
< SHA1 (patch-aa) = f564e61b3105594d935e4fb46c41f3d5d21f254e
< SHA1 (patch-ab) = 2fa2fd6c4eb721d6588b9a72eb0dbf41c265c739
< SHA1 (patch-ac) = 451e3a56da55d6d58ecc2c335b804ba374ed31e5
< SHA1 (patch-ad) = 6244778c7f5c3c5d8c4f040760f8243161ae886d
< SHA1 (patch-ae) = 81236ed52fe7095f6317f655374234ce17cf30dd
< SHA1 (patch-af) = f223476d4ef39a9fe9d60b827fc7c7e2d77f26ee
< SHA1 (patch-makefilein) = d75b9b99888106bfbc7c5d12b311527103ceaccd
---
> SHA1 (patch-aa) = 1b4c69e5df9908ba651e28d2b171b79060cd51f5
> SHA1 (patch-ab) = 4fa1e8ab04e1657fb25cc38e13eb758958f05511
> SHA1 (patch-ac) = 486b2b8135c3df89e77414c31998a5af6d8a31d6
> SHA1 (patch-ad) = f2ba64d8fdc56dc994fab748da63c80adaa4cf7e
> SHA1 (patch-ae) = 1e5b55ec15eac66f66446d4d84dad7e1da360e13
> SHA1 (patch-af) = 75c7b5d84cb51a3442ab38d82398b975f1838a27
> SHA1 (patch-linux_battery.c) = c92e310183bd5d5ae784ad79194a8cf7b19aeda3
> SHA1 (patch-makefilein) = 23d83af01cf5434b9ed51f83664d8e2d1f0724a1
> SHA1 (patch-parsegen.cpp) = dc89eae752a822e095e8f0bf602334db04761308
> SHA1 (patch-tools_extraext.cpp) = 6d6250326c16470d5f4f9579096d9453b4a31cf6
> SHA1 (patch-tools_macroll.cpp) = 9fdc64b95f7825c11a1bf47b3c1f42ceb7bc2676
> SHA1 (patch-tools_minwhite.cpp) = 0c98a5eaed3bc5a41fefefb9afda75597502242e
> SHA1 (patch-tools_nreplace.cpp) = b8b06ac0d13c0fa70f0bac604053e510cff4041f
> SHA1 (patch-tools_strutil.h) = 536bf9bd1a095570ea6174aaea1489e8ae93f618
> SHA1 (patch-tools_varrep.cpp) = 38f17d23f78089819069b4bc23462fce5d18f107


Common subdirectories: patches/CVS and ../../wip/zsnes-amd64/patches/CVS
diff patches/patch-aa ../../wip/zsnes-amd64/patches/patch-aa
5c5
< @@ -3422,7 +3422,7 @@ case x$target in
---
> @@ -3422,9 +3422,9 @@ case x$target in
12c12,13
<      NFLAGS="$NFLAGS -D__BSDSDL__ -f elf -DELF"
---
> -    NFLAGS="$NFLAGS -D__BSDSDL__ -f elf -DELF"
> +    NFLAGS="$NFLAGS -D__BSDSDL__ -f elf64 -DELF"
13a15,29
>    *-*-darwin* )
>      CFLAGS="$CFLAGS -D__MACOSX__ -D__OPENGL__ -arch i386 -mdynamic-no-pic
>      -mstackrealign -fno-unit-at-a-time"
> @@ -5200,9 +5200,9 @@ echo "${ECHO_T}guessing i486" >&6; }
>            CFLAGS="$CFLAGS -march=i486"
>            ;;
>          *)
> -          { echo "$as_me:$LINENO: result: guessing i386" >&5
> -echo "${ECHO_T}guessing i386" >&6; }
> -          CFLAGS="$CFLAGS -march=i386"
> +          { echo "$as_me:$LINENO: result: guessing native" >&5
> +echo "${ECHO_T}guessing native" >&6; }
> +          CFLAGS="$CFLAGS -march=native"
>            { echo "$as_me:$LINENO: WARNING: This is not what you want, use
>            --target or force-arch" >&5
>  echo "$as_me: WARNING: This is not what you want, use --target or
>  force-arch" >&2;}
>            ;;
diff patches/patch-ab ../../wip/zsnes-amd64/patches/patch-ab
3c3
< --- gblhdr.h.orig     2006-12-27 11:47:05.000000000 +0100
---
> --- gblhdr.h.orig     2006-12-27 10:47:05.000000000 +0000
diff patches/patch-ac ../../wip/zsnes-amd64/patches/patch-ac
3c3
< --- zip/unzip.c.orig  2005-08-14 15:49:35.000000000 +0200
---
> --- zip/unzip.c.orig  2005-08-14 13:49:35.000000000 +0000
diff patches/patch-ad ../../wip/zsnes-amd64/patches/patch-ad
3c3
< --- linux/sw_draw.c.orig      2007-01-18 17:52:16.000000000 +0100
---
> --- linux/sw_draw.c.orig      2007-01-18 16:52:16.000000000 +0000
diff patches/patch-ae ../../wip/zsnes-amd64/patches/patch-ae
3,4c3,4
< --- zip/zunzip.h.orig 2005-01-20 01:37:57.000000000 +0100
< +++ zip/zunzip.h      2005-01-20 01:38:09.000000000 +0100
---
> --- zip/zunzip.h.orig 2005-06-02 01:05:50.000000000 +0000
> +++ zip/zunzip.h
diff patches/patch-af ../../wip/zsnes-amd64/patches/patch-af
3c3
< --- tools/depbuild.cpp.orig   2007-04-16 15:40:03.000000000 +0000
---
> --- tools/depbuild.cpp.orig   2006-12-27 11:04:05.000000000 +0000
5c5,9
< @@ -24,6 +24,7 @@ This program generates dependencies for 
---
> @@ -21,9 +21,11 @@ This is part of a toolkit used to assist
>  This program generates dependencies for all C/C++/Assembly files
>  */
>  
> +#include <stdlib.h>
12a17,25
> @@ -183,7 +185,7 @@ void dependency_calculate(const char *fi
>    }
>  }
>  
> -int main(size_t argc, const char *const *const argv)
> +int main(int argc, const char *const *const argv)
>  {
>    if (argc < 5)
>    {
diff patches/patch-makefilein ../../wip/zsnes-amd64/patches/patch-makefilein
5,6c5,6
< --- Makefile.in.orig  2007-01-24 21:54:12.000000000 +0100
< +++ Makefile.in       2007-06-06 23:59:19.000000000 +0200
---
> --- Makefile.in.orig  2007-01-24 20:54:12.000000000 +0000
> +++ Makefile.in


$NetBSD$

--- linux/battery.c.orig        2007-01-07 20:02:28.000000000 +0000
+++ linux/battery.c
@@ -246,7 +246,7 @@ the battery specific code.
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
-#include <machine/apmvar.h>
+#include <i386/apmvar.h>
 
 #ifndef APM_BATT_ABSENT
 #define APM_BATT_ABSENT APM_BATTERY_ABSENT



$NetBSD$

--- parsegen.cpp.orig   2007-01-15 23:58:43.000000000 +0000
+++ parsegen.cpp
@@ -26,6 +26,7 @@ Config file handler creator by Nach (C) 
 #include <iostream>
 #include <fstream>
 #include <string>
+#include <strings.h>
 #include <vector>
 #include <algorithm>
 #include <sstream>
@@ -1828,7 +1829,7 @@ void parser_generate(istream& psr_stream
   }
 }
 
-int main(size_t argc, const char **argv)
+int main(int argc, const char **argv)
 {
   const char *cheader_file = 0;
   bool compile = false;



$NetBSD$

--- tools/extraext.cpp.orig     2006-12-27 11:04:05.000000000 +0000
+++ tools/extraext.cpp
@@ -21,6 +21,8 @@ This is part of a toolkit used to assist
 This program tells us if an assembly file has extra EXTSYMs.
 */
 
+#include <stdlib.h>
+#include <g++/backward/algo.h>
 #include <iostream>
 #include <fstream>
 #include <set>
@@ -256,7 +258,7 @@ void extra_check(const char *filename, s
   }
 }
 
-int main(size_t argc, char **argv)
+int main(int argc, char **argv)
 {
   for (char **i = argv+1; *i; i++)
   {




$NetBSD$

--- tools/macroll.cpp.orig      2006-12-27 11:04:05.000000000 +0000
+++ tools/macroll.cpp
@@ -21,6 +21,7 @@ This is part of a toolkit used to assist
 This program prints out a macro with params passed on command line in
expanded/unrolled form.
 */
 
+#include <stdlib.h>
 #include <iostream>
 #include <fstream>
 #include <set>
@@ -207,7 +208,7 @@ void build_macro(const char *filename, s
   }
 }
 
-int main(size_t argc, char **argv)
+int main(int argc, char **argv)
 {
   if (argc > 1)
   {



$NetBSD$

--- tools/minwhite.cpp.orig     2006-12-27 11:04:05.000000000 +0000
+++ tools/minwhite.cpp
@@ -102,7 +102,7 @@ void trim_whitespace(const char *filenam
   }
 }
 
-int main(size_t argc, char **argv)
+int main(int argc, char **argv)
 {
   if (argc > 1)
   {





$NetBSD$

--- tools/nreplace.cpp.orig     2006-12-27 11:04:05.000000000 +0000
+++ tools/nreplace.cpp
@@ -22,6 +22,7 @@ This program is able to replace one list
 Multiline replace is of course supported.
 */
 
+#include <stdlib.h>
 #include <iostream>
 #include <fstream>
 #include <string>
@@ -95,7 +96,7 @@ void handle_file(const char *filename, s
   }
 }
 
-int main(size_t argc, const char **argv)
+int main(int argc, const char **argv)
 {
   bool subdir_scan = false;
   const char **argp = argv+1;



$NetBSD$

--- tools/strutil.h.orig        2006-12-27 11:04:05.000000000 +0000
+++ tools/strutil.h
@@ -23,6 +23,7 @@ This is part of a toolkit used to assist
 #define STRUTIL_H
 
 #include <string>
+#include <strings.h>
 #include <vector>
 #include <cctype>
 



$NetBSD$

--- tools/varrep.cpp.orig       2006-12-27 11:04:05.000000000 +0000
+++ tools/varrep.cpp
@@ -145,7 +145,7 @@ bool process_vars(const char *fname)
   return(false);
 }
 
-int main(size_t argc, const char *const *const argv)
+int main(int argc, const char *const *const argv)
 {
   if (argc >= 4)
   {



Home | Main Index | Thread Index | Old Index