Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261827 - games-sports/roadfighter (New package)
Summary: games-sports/roadfighter (New package)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Default Assignee for New Packages
URL: http://roadfighter.jorito.net/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2009-03-09 08:19 UTC by Piotr Szymaniak
Modified: 2018-12-03 12:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
roadfighter-1.0.1269.ebuild (roadfighter-1.0.1269.ebuild,803 bytes, text/plain)
2009-03-09 08:19 UTC, Piotr Szymaniak
Details
files/1.0.1269-Makefile.patch (1.0.1269-Makefile.patch,2.10 KB, patch)
2009-03-09 08:19 UTC, Piotr Szymaniak
Details | Diff
(In reply to comment #8) (roadfighter.dbg,409 bytes, text/plain)
2009-03-19 15:26 UTC, John Simmonds (overfuse)
Details
(In reply to comment #8) (RoadFighter.cfg,24 bytes, text/plain)
2009-03-19 15:27 UTC, John Simmonds (overfuse)
Details
roadfighter-1.0.1269-makefile.patch (roadfighter-1.0.1269-makefile.patch,2.05 KB, patch)
2010-06-02 18:40 UTC, Denilson Sá Maia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Szymaniak 2009-03-09 08:19:04 UTC
Konami's Road Fighter remake

Reproducible: Always

Steps to Reproduce:
Comment 1 Piotr Szymaniak 2009-03-09 08:19:29 UTC
Created attachment 184418 [details]
roadfighter-1.0.1269.ebuild
Comment 2 Piotr Szymaniak 2009-03-09 08:19:52 UTC
Created attachment 184420 [details, diff]
files/1.0.1269-Makefile.patch
Comment 3 John Simmonds (overfuse) 2009-03-09 20:25:49 UTC
I can emerge the package with no problems and all seems well. The game loads and I can get to the menu but when I select one player and the map and hit enter to play the game it bails out. Error message is "Segmentation fault".

Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_T5800_@_2.00GHz-with-glibc2.0
Timestamp of tree: Mon, 09 Mar 2009 00:15:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -mtune=nocona -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -mtune=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ ftp://mirror.qubenet/mirror/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb branding bzip2 cdr cli consolekit cracklib crypt cups dbus dri dvd dvdr encode fortran gdbm gif gnome gpm gtk hal iconv isdnlog jpeg jpeg2k kde laptop midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly offensive opengl openmp pam pcre perl png pppd python qt4 readline reflection session spl sse sse2 ssl ssse3 startup-notification sysfs syslog tcpd tiff unicode win32codecs x86 xorg xscreensaver zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="fbdev vesa nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 John Simmonds (overfuse) 2009-03-09 20:27:52 UTC
I see the game depends on libSDL. My  media-libs/libsdl is version 1.2.13-r1.
Comment 5 John Simmonds (overfuse) 2009-03-09 21:00:42 UTC
Tried it on a diffrent computer and it worked fine.. How strange.

Below is the "emerge info" for the computer it did work on. The noticable diffrence is the gcc version and the libSDL is 1.2.13 (not 1.2.13-r1).

Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.2.4, glibc-2.6.1-r0, 2.6.25-gentoo-r9 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r9-i686-Intel-R-_Core-TM-2_Extreme_CPU_X9650_@_3.00GHz-with-glibc2.0
Timestamp of tree: Thu, 26 Feb 2009 22:45:01 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/ "
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/wschlich-testing /usr/portage/local/layman/gnome /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa avahi bash-completion berkdb branding bzip2 cairo cddb cdr cli consolekit cracklib crypt cups curl cvs dbus doc dri dvd dvdr emacs encode examples fam firefox flac fortran gdbm gif gimp gnome gpm gstreamer gtk hal iconv isdnlog jpeg libnotify mad midi mikmod mime mmx mp3 mpeg mplayer msn mudflap nautilus ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl png posix pppd python quicktime rdesktop readline reflection rss samba session spell spl sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd tiff truetype unicode usb vim-syntax vorbis win32codecs wmf wxwindows x86 xine xorg xpm xv yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 John Simmonds (overfuse) 2009-03-11 11:10:49 UTC
After advise from author via Piotr Szymaniak (thanks), I built it from
source myself and changed the Makefile CFLAGS from '-g3 -O3' to just '-g' and changed 'STRIP=strip' to 'STRIP=echo') and run
it through gdb.

Here are the results:

(gdb) run
Starting program: /home/jprsimmo/roadfighter/usr/share/games/roadfighter/roadfighter 
[Thread debugging using libthread_db enabled]
[New Thread 0xb7b4eab0 (LWP 9785)]
[New Thread 0xb7922b90 (LWP 9788)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7b4eab0 (LWP 9785)]
0x08079b26 in CPlayerCarObject (this=0x9224040, nx=146, ny=64640, l=0x8efc1c4, first_tile=0, last_tile=8, lk=276, rk=275, 
    fk=32, sc=0, init_delay=183, g=0x8efb168) at src/CPlayerCarObject.cpp:82
82			S_carskid_working.abuf=new Uint8[game->S_carskid->alen];
(gdb) bt
#0  0x08079b26 in CPlayerCarObject (this=0x9224040, nx=146, ny=64640, l=0x8efc1c4, first_tile=0, last_tile=8, lk=276, 
    rk=275, fk=32, sc=0, init_delay=183, g=0x8efb168) at src/CPlayerCarObject.cpp:82
#1  0x080750c9 in CGame (this=0x8efb168, mapname=0x8087740 "maps/level1.mg2", mode=0, left_key=276, right_key=275, 
    fire_key=32, score=0, cl=1, extras=true) at src/CGame.cpp:241
#2  0x08080226 in CRoadFighter::interlevel_cycle (this=0x8e9af48) at src/interlevel_state.cpp:82
#3  0x0807ab8e in CRoadFighter::cycle (this=0x8e9af48) at src/CRoadFighter.cpp:193
#4  0x0808606f in main (argc=1, argv=0xbff44094) at src/main.cpp:250
Comment 7 John Simmonds (overfuse) 2009-03-11 15:09:41 UTC
After advise from author via Piotr Szymaniak (thanks), I built it from
source myself and changed the Makefile CFLAGS from '-g3 -O3' to just '-g' and changed 'STRIP=strip' to 'STRIP=echo') and run
it through gdb.

Here are the results:

(gdb) run
Starting program: /home/jprsimmo/roadfighter/usr/share/games/roadfighter/roadfighter 
[Thread debugging using libthread_db enabled]
[New Thread 0xb7b4eab0 (LWP 9785)]
[New Thread 0xb7922b90 (LWP 9788)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7b4eab0 (LWP 9785)]
0x08079b26 in CPlayerCarObject (this=0x9224040, nx=146, ny=64640, l=0x8efc1c4, first_tile=0, last_tile=8, lk=276, rk=275, 
    fk=32, sc=0, init_delay=183, g=0x8efb168) at src/CPlayerCarObject.cpp:82
82			S_carskid_working.abuf=new Uint8[game->S_carskid->alen];
(gdb) bt
#0  0x08079b26 in CPlayerCarObject (this=0x9224040, nx=146, ny=64640, l=0x8efc1c4, first_tile=0, last_tile=8, lk=276, 
    rk=275, fk=32, sc=0, init_delay=183, g=0x8efb168) at src/CPlayerCarObject.cpp:82
#1  0x080750c9 in CGame (this=0x8efb168, mapname=0x8087740 "maps/level1.mg2", mode=0, left_key=276, right_key=275, 
    fire_key=32, score=0, cl=1, extras=true) at src/CGame.cpp:241
#2  0x08080226 in CRoadFighter::interlevel_cycle (this=0x8e9af48) at src/interlevel_state.cpp:82
#3  0x0807ab8e in CRoadFighter::cycle (this=0x8e9af48) at src/CRoadFighter.cpp:193
#4  0x0808606f in main (argc=1, argv=0xbff44094) at src/main.cpp:250
Comment 8 Piotr Szymaniak 2009-03-12 09:25:53 UTC
@John
Can you try the second debug hint?

# --
It looks like it can't find or read the file ./sound/car_brake.ogg 
First please check if this file is there and if you have read permissions on it. (and also read and execute permissions on the 'sound' directory itself) 
Perhaps this file has been corrupted somehow. Try downloading it again. My md5sum is 6eb753080ad2cd618bb80f96d1821646 and the file size is 21686 bytes. 
The file extension should be 'car_brake.ogg' or 'car_brake.OGG' no other capitalizations. 

If all this still doesn't work further debugging can be done by adding '#include "debug.h"' to the ./src/sound.cpp file and adding '-D__DEBUG_MESSAGES' (starts with double underscore) to the CFLAGS in the Makefile. After runnning the game there should be some debug output from the game in '$HOME/.roadfighter/roadfighter.dbg'
# --
Comment 9 John Simmonds (overfuse) 2009-03-19 15:26:54 UTC
Created attachment 185531 [details]
(In reply to comment #8) 


Ok I have done that. Still didn't work but here are the two files in ~/.roadfighter

Thanks.
Comment 10 John Simmonds (overfuse) 2009-03-19 15:27:06 UTC
Created attachment 185533 [details]
(In reply to comment #8)
Comment 11 John Simmonds (overfuse) 2009-03-19 18:47:41 UTC
Forgot to mention. I checked the car_brake.ogg file in question an its size and check sum are correct as well as permissions.

(In reply to comment #9)
> Created an attachment (id=185531) [edit]
> (In reply to comment #8) 
> 
> 
> Ok I have done that. Still didn't work but here are the two files in
> ~/.roadfighter
> 
> Thanks.
> 

Comment 12 Denilson Sá Maia 2010-06-02 18:40:14 UTC
Created attachment 233875 [details, diff]
roadfighter-1.0.1269-makefile.patch

Updated patch. Removes old useless X11 path, and it now respects the user choice of CFLAGS.