zsnes on ubuntu intrepid crash

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

zsnes on ubuntu intrepid crash

Post by jznomoney »

when trying to compile zsnes for ubuntu intrepid i get a crash. Either compiling it myself or downloading the ubuntu package. Here is the crash output:
(%:~)- ZSNES v1.51, (c) 1997-2007, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

Use ZSNES -? for command line definitions.

Starting Mouse detection.
Unable to poll /dev/input/event5. Make sure you have read permissions to it.
Unable to poll /dev/input/event3. Make sure you have read permissions to it.
Unable to poll /dev/input/event4. Make sure you have read permissions to it.
Unable to poll /dev/input/event8. Make sure you have read permissions to it.
Unable to poll /dev/input/event1. Make sure you have read permissions to it.
Unable to poll /dev/input/event0. Make sure you have read permissions to it.
ManyMouse: 0 mice detected.
*** buffer overflow detected ***: zsnes terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7dcc388]
/lib/tls/i686/cmov/libc.so.6[0xb7dca4b0]
zsnes[0x8056c1b]
======= Memory map: ========
08048000-08303000 r-xp 00000000 08:01 10043511 /usr/bin/zsnes
08303000-08304000 r--p 002ba000 08:01 10043511 /usr/bin/zsnes
08304000-08343000 rw-p 002bb000 08:01 10043511 /usr/bin/zsnes
08343000-088f7000 rw-p 08343000 00:00 0
097af000-097fa000 rw-p 097af000 00:00 0 [heap]
b6c86000-b77b5000 rw-p b6c86000 00:00 0
b77b5000-b77b8000 r-xp 00000000 08:01 18055396 /lib/libcap.so.1.10
b77b8000-b77b9000 rw-p 00002000 08:01 18055396 /lib/libcap.so.1.10
b77b9000-b7807000 r-xp 00000000 08:01 16061643 /usr/lib/libpulse.so.0.4.1
b7807000-b7808000 rw-p 0004d000 08:01 16061643 /usr/lib/libpulse.so.0.4.1
b7808000-b7814000 r-xp 00000000 08:01 16061647 /usr/lib/libpulse-simple.so.0.0.1
b7814000-b7815000 rw-p 0000b000 08:01 16061647 /usr/lib/libpulse-simple.so.0.0.1
b7815000-b782a000 r-xp 00000000 08:01 16041704 /usr/lib/libICE.so.6.3.0
b782a000-b782b000 rw-p 00014000 08:01 16041704 /usr/lib/libICE.so.6.3.0
b782b000-b782d000 rw-p b782b000 00:00 0
b782d000-b787a000 r-xp 00000000 08:01 16041273 /usr/lib/libXt.so.6.0.0
b787a000-b787e000 rw-p 0004c000 08:01 16041273 /usr/lib/libXt.so.6.0.0
b787e000-b7894000 r-xp 00000000 08:01 16041012 /usr/lib/libaudio.so.2.4
b7894000-b7895000 r--p 00015000 08:01 16041012 /usr/lib/libaudio.so.2.4
b7895000-b7896000 rw-p 00016000 08:01 16041012 /usr/lib/libaudio.so.2.4
b78ac000-b78ad000 rw-p b78ac000 00:00 0
b78ad000-b78cf000 r-xp 00000000 08:01 16040397 /usr/lib/libaudiofile.so.0.0.2
b78cf000-b78d2000 rw-p 00021000 08:01 16040397 /usr/lib/libaudiofile.so.0.0.2
b78d2000-b78db000 r-xp 00000000 08:01 16040787 /usr/lib/libesd.so.0.2.38
b78db000-b78dc000 rw-p 00008000 08:01 16040787 /usr/lib/libesd.so.0.2.38
b78dc000-b7904000 r-xp 00000000 08:01 18055868 /lib/libpcre.so.3.12.1
b7904000-b7905000 r--p 00027000 08:01 18055868 /lib/libpcre.so.3.12.1
b7905000-b7906000 rw-p 00028000 08:01 18055868 /lib/libpcre.so.3.12.1
b7906000-b791e000 r-xp 00000000 08:01 18055259 /lib/libselinux.so.1
b791e000-b791f000 r--p 00017000 08:01 18055259 /lib/libselinux.so.1
b791f000-b7920000 rw-p 00018000 08:01 18055259 /lib/libselinux.so.1
b7920000-b79d5000 r-xp 00000000 08:01 16041660 /usr/lib/libglib-2.0.so.0.1703.0
b79d5000-b79d6000 r--p 000b4000 08:01 16041660 /usr/lib/libglib-2.0.so.0.1703.0
b79d6000-b79d7000 rw-p 000b5000 08:01 16041660 /usr/lib/libglib-2.0.so.0.1703.0
b79d7000-b79db000 r-xp 00000000 08:01 16044329 /usr/lib/libgthread-2.0.so.0.1703.0
b79db000-b79dc000 r--p 00003000 08:01 16044329 /usr/lib/libgthread-2.0.so.0.1703.0
b79dc000-b79dd000 rw-p 00004000 08:01 16044329 /usr/lib/libgthread-2.0.so.0.1703.0
b79e0000-b79e2000 r-xp 00000000 08:01 16171172 /usr/lib/ao/plugins-2/libpulse.so
b79e2000-b79e4000 rw-p 00001000 08:01 16171172 /usr/lib/ao/plugins-2/libpulse.so
b79e4000-b79e6000 r-xp 00000000 08:01 16171171 /usr/lib/ao/plugins-2/liboss.so
b79e6000-b79e8000 rw-p 00001000 08:01 16171171 /usr/lib/ao/plugins-2/liboss.so
b79e8000-b79ef000 r-xp 00000000 08:01 16045087 /usr/lib/libSM.so.6.0.0
b79ef000-b79f0000 r--p 00006000 08:01 16045087 /usr/lib/libSM.so.6.0.0
b79f0000-b79f1000 rw-p 00007000 08:01 16045087 /usr/lib/libSM.so.6.0.0
b79f1000-b79f2000 r-xp 00000000 08:01 16171169 /usr/lib/ao/plugins-2/libnas.so
b79f2000-b79f4000 rw-p 00000000 08:01 16171169 /usr/lib/ao/plugins-2/libnas.so
b79f4000-b79fe000 r-xp 00000000 08:01 18058802 /lib/tls/i686/cmov/libnss_files-2.8.90.so
b79fe000-b79ff000 r--p 00009000 08:01 18058802 /lib/tls/i686/cmov/libnss_files-2.8.90.so
b79ff000-b7a00000 rw-p 0000a000 08:01 18058802 /lib/tls/i686/cmov/libnss_files-2.8.90.so
b7a00000-b7a09000 r-xp 00000000 08:01 18058804 /lib/tls/i686/cmov/libnss_nis-2.8.90.so
b7a09000-b7a0a000 r--p 00008000 08:01 18058804 /lib/tls/i686/cmov/libnss_nis-2.8.90.so
b7a0a000-b7a0b000 rw-p 00009
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Post by odditude »

please clarify: do you see any issues during the actual compilation process, or only when you try to run the resulting executable?
Why yes, my shift key *IS* broken.
jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

Post by jznomoney »

running the executable. Its listed here:
https://bugs.launchpad.net/ubuntu/+sour ... bug/250425
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

It almost sounds to me an issue of the libs used to compile on Ubuntu, or whoever was responsible for uploading a non-working binary for the distro's repository.

We are not responsible for anything uploaded to your repository.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

Post by jznomoney »

I never said you were just wondering if anyone knew how to fix it.
sweener2001
Inmate
Posts: 1751
Joined: Mon Dec 06, 2004 7:47 am
Location: WA

Post by sweener2001 »

it's be easier at this point to compile it yourself
[img]http://i26.photobucket.com/albums/c128/sweener2001/StewieSIGPIC.png[/img]
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Re: zsnes on ubuntu intrepid crash

Post by odditude »

sweener2001 wrote:it's be easier at this point to compile it yourself
jznomoney wrote:when trying to compile zsnes for ubuntu intrepid i get a crash. Either compiling it myself or downloading the ubuntu package.
that taken care of, take a look in the readme and (re)install all of the dependencies using apt or synaptic.
Why yes, my shift key *IS* broken.
sweener2001
Inmate
Posts: 1751
Joined: Mon Dec 06, 2004 7:47 am
Location: WA

Post by sweener2001 »

/brain fart
[img]http://i26.photobucket.com/albums/c128/sweener2001/StewieSIGPIC.png[/img]
jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

Post by jznomoney »

here is what error I get when I go to start the compile process

Generating build information using aclocal and autoconf...
./autogen.sh: 6: aclocal: not found
./autogen.sh: 7: autoconf: not found
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for nasm... nasm
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... yes
checking if you want the zsnes debugger... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for initscr in -lpdcurses... no
checking if you want libao support... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking for JMA support... yes
checking for cpu info... *** buffer overflow detected ***: tools/archopt terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb806c558]
/lib/tls/i686/cmov/libc.so.6[0xb806a680]
/lib/tls/i686/cmov/libc.so.6[0xb80698fd]
tools/archopt[0x8048926]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7f88685]
tools/archopt[0x8048621]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 08:06 237986 /home/jznomoney/zsnes_1_51/src/tools/archopt
0804a000-0804b000 r--p 00001000 08:06 237986 /home/jznomoney/zsnes_1_51/src/tools/archopt
0804b000-0804c000 rw-p 00002000 08:06 237986 /home/jznomoney/zsnes_1_51/src/tools/archopt
09c42000-09c63000 rw-p 09c42000 00:00 0 [heap]
b7f55000-b7f62000 r-xp 00000000 08:06 598078 /lib/libgcc_s.so.1
b7f62000-b7f63000 r--p 0000c000 08:06 598078 /lib/libgcc_s.so.1
b7f63000-b7f64000 rw-p 0000d000 08:06 598078 /lib/libgcc_s.so.1
b7f71000-b7f72000 rw-p b7f71000 00:00 0
b7f72000-b80ca000 r-xp 00000000 08:06 615764 /lib/tls/i686/cmov/libc-2.8.90.so
b80ca000-b80cc000 r--p 00158000 08:06 615764 /lib/tls/i686/cmov/libc-2.8.90.so
b80cc000-b80cd000 rw-p 0015a000 08:06 615764 /lib/tls/i686/cmov/libc-2.8.90.so
b80cd000-b80d0000 rw-p b80cd000 00:00 0
b80dc000-b80df000 rw-p b80dc000 00:00 0
b80df000-b80f9000 r-xp 00000000 08:06 598035 /lib/ld-2.8.90.so
b80f9000-b80fa000 r-xp b80f9000 00:00 0 [vdso]
b80fa000-b80fb000 r--p 0001a000 08:06 598035 /lib/ld-2.8.90.so
b80fb000-b80fc000 rw-p 0001b000 08:06 598035 /lib/ld-2.8.90.so
bffe6000-bfffb000 rw-p bffeb000 00:00 0 [stack]
failed
checking if you want gdb friendly executable... no
checking which cpu architecture to optimize for... guessing i386
configure: WARNING: This is not what you want, use --target or force-arch
checking if you want crazy optimizations... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether sys/types.h defines makedev... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h


ZSNES v1.51

SDL support Version 1.2.12
NASM support NASM version 2.03.01 compiled on Jun 19 2008
zlib support Version 1.2.3.3
PNG support Yes, version 1.2.27
OpenGL support Yes
JMA support Yes
ZSNES debugger Enabled

The binary will be installed in /usr/local/bin

Configure complete, now type 'make' and pray.
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Post by odditude »

no offense, but please note that a crash during compilation does indeed constitute an "issue."
Why yes, my shift key *IS* broken.
paulguy
Zealot
Posts: 1076
Joined: Sat Jul 02, 2005 2:01 am
Contact:

Post by paulguy »

Also missing autotools and there's something fishy about the compiler it's using. It's called gcc but it's not "detected" as the Gnu C compiler so whatever it is might be producing invalid code.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Main issues:
jznomoney wrote:./autogen.sh: 6: aclocal: not found
./autogen.sh: 7: autoconf: not found
(...)
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
(...)
checking which cpu architecture to optimize for... guessing i386
configure: WARNING: This is not what you want, use --target or force-arch
Moved to proper place.

Also: grab the effin dev packages ! And someone put all this in a 'special' buntu faq already.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

Post by jznomoney »

ok i got all the dev packages and this is what comes up

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... yes
checking if you want the zsnes debugger... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for initscr in -lpdcurses... no
checking if you want libao support... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking for JMA support... yes
checking for cpu info... *** buffer overflow detected ***: tools/archopt terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7ebe558]
/lib/tls/i686/cmov/libc.so.6[0xb7ebc680]
/lib/tls/i686/cmov/libc.so.6[0xb7ebb8fd]
tools/archopt[0x8048926]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7dda685]
tools/archopt[0x8048621]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 08:06 280187 /home/jznomoney/zsnes_1_51/src/tools/archopt
0804a000-0804b000 r--p 00001000 08:06 280187 /home/jznomoney/zsnes_1_51/src/tools/archopt
0804b000-0804c000 rw-p 00002000 08:06 280187 /home/jznomoney/zsnes_1_51/src/tools/archopt
08866000-08887000 rw-p 08866000 00:00 0 [heap]
b7da6000-b7db3000 r-xp 00000000 08:06 852030 /lib/libgcc_s.so.1
b7db3000-b7db4000 r--p 0000c000 08:06 852030 /lib/libgcc_s.so.1
b7db4000-b7db5000 rw-p 0000d000 08:06 852030 /lib/libgcc_s.so.1
b7dc3000-b7dc4000 rw-p b7dc3000 00:00 0
b7dc4000-b7f1c000 r-xp 00000000 08:06 869716 /lib/tls/i686/cmov/libc-2.8.90.so
b7f1c000-b7f1e000 r--p 00158000 08:06 869716 /lib/tls/i686/cmov/libc-2.8.90.so
b7f1e000-b7f1f000 rw-p 0015a000 08:06 869716 /lib/tls/i686/cmov/libc-2.8.90.so
b7f1f000-b7f22000 rw-p b7f1f000 00:00 0
b7f2f000-b7f32000 rw-p b7f2f000 00:00 0
b7f32000-b7f4c000 r-xp 00000000 08:06 851987 /lib/ld-2.8.90.so
b7f4c000-b7f4d000 r-xp b7f4c000 00:00 0 [vdso]
b7f4d000-b7f4e000 r--p 0001a000 08:06 851987 /lib/ld-2.8.90.so
b7f4e000-b7f4f000 rw-p 0001b000 08:06 851987 /lib/ld-2.8.90.so
bf839000-bf84e000 rw-p bffeb000 00:00 0 [stack]
failed
checking if you want gdb friendly executable... no
checking which cpu architecture to optimize for... guessing i386
configure: WARNING: This is not what you want, use --target or force-arch
checking if you want crazy optimizations... yes
configure: WARNING: If you intend to distribute this binary, make sure you use force_arch and set to i586 (or whichever CPU Arch you intend for)
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether sys/types.h defines makedev... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged


ZSNES v1.51

SDL support Version 1.2.12
NASM support NASM version 2.03.01 compiled on Jun 19 2008
zlib support Version 1.2.3.3
PNG support Yes, version 1.2.27
OpenGL support Yes
JMA support Yes
ZSNES debugger Enabled

The binary will be installed in /usr/local/bin

Configure complete, now type 'make' and pray.
DancemasterGlenn
Veteran
Posts: 637
Joined: Sat Apr 21, 2007 8:05 pm

Post by DancemasterGlenn »

...

so do it?
I bring the trouble.
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Post by odditude »

it's still dying trying to determine CPU type.

what hardware does the OP have?
Why yes, my shift key *IS* broken.
jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

Post by jznomoney »

when I type make I get this:

g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=i386 -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -s -D__RELEASE__ -fno-rtti -o tools/strutil.o -c tools/strutil.cpp
tools/strutil.cpp:1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches)
In file included from tools/strutil.cpp:22:
tools/strutil.h: In static member function ‘static int ci_char_traits::compare(const char*, const char*, size_t)’:
tools/strutil.h:34: error: ‘strncasecmp’ was not declared in this scope
make: *** [tools/strutil.o] Error 1
jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

Post by jznomoney »

I have a amd athlon x2 5000+ am2 on a msi motherboard. It compiles fine on ubuntu 8.04 but not on ubuntu 8.10 beta
Deathlike2
ZSNES Developer
ZSNES Developer
Posts: 6747
Joined: Tue Dec 28, 2004 6:47 am

Post by Deathlike2 »

jznomoney wrote:I have a amd athlon x2 5000+ am2 on a msi motherboard. It compiles fine on ubuntu 8.04 but not on ubuntu 8.10 beta
It is a beta for good reason.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
dfreer
Lurker
Posts: 139
Joined: Fri May 11, 2007 5:28 am

Post by dfreer »

Not sure if this helps OP, but did you try the following before compiling?:
sudo apt-get install build-essential
sudo apt-get build-dep zsnes
jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

Post by jznomoney »

yes i did that already
odditude
Official tech support dood
Posts: 2118
Joined: Wed Jan 25, 2006 7:57 am

Post by odditude »

did you upgrade to intrepid or was it a clean install?

on my old box, upgrading from breezy to hoary broke a few packages, and they needed to be removed and reinstalled...
Why yes, my shift key *IS* broken.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Not being able to compile archopt is a proof that something really bites with your setup.

Especially the *way* it's not being able to. I'll wait for Nach to investigate that.

Anyway... use force-arch for the time being, as mentionned.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
FranMichaels
New Member
Posts: 4
Joined: Fri Aug 08, 2008 5:10 am
Contact:

Post by FranMichaels »

Edit: Discard all that. This has been taken care of already.

http://board.zsnes.com/phpBB2/viewtopic.php?t=11513

Use those instead of the tarball offered on the zsnes front page.

I can vouch that it builds on intrepid, but buffer overflow on execution... :(
Let him choose out of my files, his projects to accomplish.
-- Shakespeare, "Coriolanus"
jznomoney
Rookie
Posts: 10
Joined: Wed Oct 01, 2008 2:11 pm

Post by jznomoney »

I still cannot build with your like to another src. I get this

g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=i386 -O3 -fomit-frame-pointer -s -fno-rtti -o tools/fileutil.o -c tools/fileutil.cpp
g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=i386 -O3 -fomit-frame-pointer -s -fno-rtti -o tools/strutil.o -c tools/strutil.cpp
g++ -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D__OPENGL__ -march=i386 -O3 -fomit-frame-pointer -s -fno-rtti -o tools/depbuild tools/depbuild.cpp tools/fileutil.o tools/strutil.o
tools/depbuild.cpp: In function ‘void dependency_calculate_asm(const char*)’:
tools/depbuild.cpp:134: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
/tmp/ccynwejl.o: In function `dependency_calculate_psr(char const*)':
depbuild.cpp:(.text+0x297): undefined reference to `__sync_fetch_and_add_4'
depbuild.cpp:(.text+0x2cb): undefined reference to `__sync_fetch_and_add_4'
depbuild.cpp:(.text+0x302): undefined reference to `__sync_fetch_and_add_4'
/tmp/ccynwejl.o: In function `dependency_calculate_asm(char const*)':
depbuild.cpp:(.text+0x4b4): undefined reference to `__sync_fetch_and_add_4'
depbuild.cpp:(.text+0x4ec): undefined reference to `__sync_fetch_and_add_4'
/tmp/ccynwejl.o:depbuild.cpp:(.text+0x524): more undefined references to `__sync_fetch_and_add_4' follow
collect2: ld returned 1 exit status
make: *** [tools/depbuild] Error 1
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

First of all, your libs seem seriously screwed up. You probably lack some dev package.

Second, I still see a -march=i386.

READ THE DAMN THING SOMETIMES:

Code: Select all

checking which cpu architecture to optimize for... guessing i386
configure: WARNING: This is not what you want, use --target or force-arch
The guy who hates repeating himself wrote:Anyway... use force-arch for the time being, as mentionned.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Post Reply