Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2000 14:56:08 +0300
From:      Maxim Sobolev <sobomax@altavista.net>
To:        Will Andrews <andrews@technologist.com>
Cc:        ports@freebsd.org
Subject:   Re: GLTron update - need help
Message-ID:  <39097C58.F9EF566F@altavista.net>
References:  <20000425225959.C1683@argon.blackdawn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------A08FC8A85CE195C24D54EE7E
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

Will Andrews wrote:

> Hi,
>
> I've managed to upgrade GLTron to 0.59 with the recent SDL 1.1 and
> SDL_mixer imports. However, I can't get the game to actually run (for some
> reason every time I run it it gives me an error such as "Fatal signal:
> Segmentation Fault (SDL Parachute Deployed)".
>
> Not being a SDL expert, and not finding any coredumps, I couldn't figure
> out what to do.

This probably was caused by mixing SDL-1.0.8 and SDL-1.1 code. Following patch
against your version should fix it, at least it works on my 5.0-CURRENT system.

-Maxim


--------------A08FC8A85CE195C24D54EE7E
Content-Type: text/plain; charset=koi8-r;
 name="gltr.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="gltr.diff"

diff -ruN /var/tmp/gltron/Makefile gltron/Makefile
--- /var/tmp/gltron/Makefile	Thu Apr 27 23:25:19 2000
+++ gltron/Makefile	Fri Apr 28 14:00:02 2000
@@ -8,11 +8,11 @@
 PORTNAME=	gltron
 PORTVERSION=	0.59
 CATEGORIES=	games
-MASTER_SITES=	ftp://ftp.sourceforge.net/pub/sourceforge/gltron/
+MASTER_SITES=	http://gltron.sourceforge.net/download/
 
 MAINTAINER=	will@FreeBSD.org
 
-LIB_DEPENDS=	SDL.2:${PORTSDIR}/devel/sdl \
+LIB_DEPENDS=	SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer \
 		glut.3:${PORTSDIR}/graphics/Mesa3
 
 .if defined(NO_SOUND)
diff -ruN /var/tmp/gltron/patches/patch-ad gltron/patches/patch-ad
--- /var/tmp/gltron/patches/patch-ad	Thu Apr 27 23:20:08 2000
+++ gltron/patches/patch-ad	Fri Apr 28 14:47:06 2000
@@ -1,5 +1,5 @@
---- configure	Thu Mar 30 03:22:00 2000
-+++ configure.new	Mon Apr 24 23:46:58 2000
+--- configure.orig	Thu Mar 30 11:22:00 2000
++++ configure	Fri Apr 28 14:46:13 2000
 @@ -523,7 +523,7 @@
  
  
@@ -27,7 +27,7 @@
  cat > conftest.$ac_ext <<EOF
  #line 714 "configure"
  #include "confdefs.h"
-@@ -738,7 +738,7 @@
+@@ -738,21 +738,21 @@
  #define $ac_tr_lib 1
  EOF
  
@@ -36,12 +36,20 @@
  
  else
    echo "$ac_t""no" 1>&6
-@@ -752,7 +752,7 @@
+ { echo "configure: error: SDL needs pthread to run properly" 1>&2; exit 1; }
+ fi
+ 
+-echo $ac_n "checking for main in -lSDL""... $ac_c" 1>&6
+-echo "configure:750: checking for main in -lSDL" >&5
++echo $ac_n "checking for main in -lSDL-1.1""... $ac_c" 1>&6
++echo "configure:750: checking for main in -lSDL-1.1" >&5
+ ac_lib_var=`echo SDL'_'main | sed 'y%./+-%__p_%'`
+ if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
 -LIBS="-lSDL -lpthread $LIBS"
-+LIBS="-L$ac_default_prefix/lib -lSDL -pthread $LIBS"
++LIBS="-L$ac_default_prefix/lib -lSDL-1.1 -pthread $LIBS"
  cat > conftest.$ac_ext <<EOF
  #line 758 "configure"
  #include "confdefs.h"
@@ -50,7 +58,7 @@
  EOF
  
 -  LIBS="-lSDL $LIBS"
-+  LIBS="-L$ac_default_prefix/lib -lSDL $LIBS"
++  LIBS="-L$ac_default_prefix/lib -lSDL-1.1 $LIBS"
  
  else
    echo "$ac_t""no" 1>&6
diff -ruN /var/tmp/gltron/patches/patch-ae gltron/patches/patch-ae
--- /var/tmp/gltron/patches/patch-ae	Thu Apr 27 23:20:08 2000
+++ gltron/patches/patch-ae	Fri Apr 28 14:23:18 2000
@@ -1,5 +1,5 @@
---- Makefile.in	Tue Mar 21 16:34:04 2000
-+++ Makefile.in.new	Mon Apr 24 23:52:40 2000
+--- Makefile.in.orig	Tue Mar 21 23:34:04 2000
++++ Makefile.in	Fri Apr 28 14:22:24 2000
 @@ -1,11 +1,16 @@
  # Makefile for gltron
  
@@ -17,9 +17,9 @@
 +OPT		=	-Wall ${SOUND} -DSHARE1="\"$(PREFIX)/share/gltron\"" -DSHARE2="\"$(X11BASE)/share/gltron\""
 +INCS		=	-I$(LOCALBASE)/include -I$(X11BASE)/include -I$(LOCALBASE)/include/SDL11
 +CFLAGS		?=	-O -pipe
-+GL_LIBS		=	-lm -lGL -lGLU -lSDL -pthread -lpng
++GL_LIBS		=	-lm -lGL -lGLU -lSDL-1.1 -pthread -lpng
 +XLIBS		=	-L$(X11BASE)/lib -lX11
-+SNDLIBS		=	-L$(LOCALBASE)/lib -lSDL_mixer -lSDL -lsmpeg
++SNDLIBS		=	-L$(LOCALBASE)/lib -lSDL_mixer -lSDL-1.1 -lsmpeg
  
  GLTRON_INSTALLDIR = /usr/bin
  GLTRON_HOME = /usr/share/games/gltron

--------------A08FC8A85CE195C24D54EE7E--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39097C58.F9EF566F>