illegal instructions

mike at fluffypenguin.org mike at fluffypenguin.org
Mon Aug 19 19:50:11 EDT 2002


I've been having a problem with quake2 segfaulting when cross-compiled.
The box doing the compiling in an athlon xp 1800+ and the server box is a
p1 133mhz. I compile with nothing other than -march=i486 -mcpu=i486, but
when i connect to the server it dies with an illegal instruction. I'm not
really sure why it doesn't work- i used to do this same thing around the
0.6 relnev release and it worked just fine.

Also, on a side note, attached is a small patch to fix a warning in the
latest cvs.
-- 
To smash a single atom, all mankind was intent.
Now any day the atom may return the compliment.
gpg key: http://fluffypenguin.org/novas007.asc
-------------- next part --------------
Index: src/linux/rw_sdl.c
===================================================================
RCS file: /cvs/cvsroot/quake2/src/linux/rw_sdl.c,v
retrieving revision 1.16
diff -u -r1.16 rw_sdl.c
--- src/linux/rw_sdl.c	2002/05/27 15:25:01	1.16
+++ src/linux/rw_sdl.c	2002/08/19 23:25:53
@@ -186,7 +186,7 @@
 */
 void RW_IN_Commands (void)
 {
-	int i, key_index;
+	int i;
    
 	if (mouse_avail) {
 	  for (i=0 ; i<3 ; i++) {
@@ -211,7 +211,8 @@
 	  mouse_oldbuttonstate = mouse_buttonstate;
 	}
 #ifdef Joystick
-	if (joystick_avail && joy) {
+	int key_index;
+    if (joystick_avail && joy) {
 	  for (i=0 ; i < joy_numbuttons ; i++)
 	    {
 	      if ( SDL_JoystickGetButton(joy, i) && joy_oldbuttonstate!=i )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://icculus.org/pipermail/quake2/attachments/20020819/078af6ae/attachment.pgp>


More information about the quake2 mailing list