From owner-freebsd-ports Fri Apr 28 4:57: 1 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.9.224.2]) by hub.freebsd.org (Postfix) with ESMTP id 13F9B37B753 for ; Fri, 28 Apr 2000 04:56:52 -0700 (PDT) (envelope-from sobomax@altavista.net) Received: from vega.vega.com (dialup1-10.iptelecom.net.ua [212.9.226.10]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id PAA20285; Fri, 28 Apr 2000 15:04:35 +0300 (EEST) Received: from altavista.net (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.9.3/8.9.3) with ESMTP id OAA26366; Fri, 28 Apr 2000 14:56:10 +0300 (EEST) (envelope-from sobomax@altavista.net) Message-ID: <39097C58.F9EF566F@altavista.net> Date: Fri, 28 Apr 2000 14:56:08 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Will Andrews Cc: ports@freebsd.org Subject: Re: GLTron update - need help References: <20000425225959.C1683@argon.blackdawn.com> Content-Type: multipart/mixed; boundary="------------A08FC8A85CE195C24D54EE7E" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 <&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 <&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