Hello.

I tried to update the port I maintain "games/quake2max", a Quake II
engine, but when I try to run the compiled executables, except for
the dedicated server (quake2max-ded) they output "Abort" and quit.

The output of 'ktrace' is the following (it just stops before running
it):

82753 ktrace   RET   ktrace 0
82753 ktrace   CALL  execve(0xbfbfe320,0xbfbfe844,0xbfbfe84c)
82753 ktrace   NAMI  "/sbin/quake2max"
82753 ktrace   RET   execve -1 errno 2 No such file or directory
82753 ktrace   CALL  execve(0xbfbfe320,0xbfbfe844,0xbfbfe84c)
82753 ktrace   NAMI  "/bin/quake2max"
82753 ktrace   RET   execve -1 errno 2 No such file or directory
82753 ktrace   CALL  execve(0xbfbfe320,0xbfbfe844,0xbfbfe84c)
82753 ktrace   NAMI  "/usr/sbin/quake2max"
82753 ktrace   RET   execve -1 errno 2 No such file or directory
82753 ktrace   CALL  execve(0xbfbfe320,0xbfbfe844,0xbfbfe84c)
82753 ktrace   NAMI  "/usr/bin/quake2max"
82753 ktrace   RET   execve -1 errno 2 No such file or directory
82753 ktrace   CALL  execve(0xbfbfe320,0xbfbfe844,0xbfbfe84c)
82753 ktrace   NAMI  "/usr/games/quake2max"
82753 ktrace   RET   execve -1 errno 2 No such file or directory
82753 ktrace   CALL  execve(0xbfbfe320,0xbfbfe844,0xbfbfe84c)
82753 ktrace   NAMI  "/usr/local/sbin/quake2max"
82753 ktrace   RET   execve -1 errno 2 No such file or directory
82753 ktrace   CALL  execve(0xbfbfe320,0xbfbfe844,0xbfbfe84c)
82753 ktrace   NAMI  "/usr/local/bin/quake2max"

Interestingly 'ldd' also crashes when examining it, outputting the
following (however 'ktrace' has more information):

/usr/local/bin/quake2max:
/usr/local/bin/quake2max: signal 6

My first thought was that it was a GCC bug, so I tried compiling it
with 4.1 (my system is a FreeBSD 6.1-RELEASE-p1 with GCC 3.4.4
20050518) but it made no difference.

Interestingly the actual "games/quake2max" port works just fine
(version 0.44), and I couldn't see something suspicious with a quick
look to the 'diff' output. I have attached a patch to update the port
in the tree to the 0.45 version.

Could someone investigate this please?

Thanks and Best Regards,
Ale

P.S.: please CC me since I am not subscribed to the list.
Index: quake2max/Makefile
===================================================================
RCS file: /home/pcvs/ports/games/quake2max/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- quake2max/Makefile	28 Dec 2006 13:55:46 -0000	1.4
+++ quake2max/Makefile	30 Dec 2006 05:46:07 -0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	quake2max
-PORTVERSION=	0.44
-PORTREVISION=	1
+PORTVERSION=	0.45
 CATEGORIES=	games
 MASTER_SITES=	http://qudos.quakedev.com/linux/quake2/engines/Quake2MaX/:src \
 		${MASTER_SITE_LOCAL:S/$/:data/}
@@ -24,9 +23,9 @@
 
 USE_BZIP2=	yes
 USE_GMAKE=	yes
-USE_GCC=	3.2+
+USE_GCC=	3.4+
 ALL_TARGET=	release
-WRKSRC=		${WRKDIR}/Quake2maX-44-src_unix
+WRKSRC=		${WRKDIR}/${DISTNAME:S/quake2max/Quake2maX/}
 
 OPTIONS=	CLIENT "Build client" on \
 		DEDICATED "Build dedicated server" on \
@@ -40,10 +39,7 @@
 PLIST_SUB=	LIBDIR="${LIBDIR:S/${PREFIX}\///}"
 LIBDIR=		${PREFIX}/lib/${PORTNAME}
 
-Q2MAX_DATA=	${PORTNAME}.${PORTVERSION:S/.//}.rar
-
-# The data is not available and compiled executables do not work for 0.45.
-PORTSCOUT=	skipv:0.45
+Q2MAX_DATA=	${PORTNAME}.044.rar
 
 .include "${.CURDIR}/../quake2-data/Makefile.include"
 
Index: quake2max/distinfo
===================================================================
RCS file: /home/pcvs/ports/games/quake2max/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
--- quake2max/distinfo	28 Jul 2006 22:05:00 -0000	1.1
+++ quake2max/distinfo	30 Dec 2006 05:46:07 -0000
@@ -1,6 +1,6 @@
-MD5 (Quake2maX_0.44-src_unix.tar.bz2) = 862d114541a49df2ef78f2700fde636b
-SHA256 (Quake2maX_0.44-src_unix.tar.bz2) = 579aa80b1f26ebb5e7cd4dff4096504c378c7b225dd6c05fd5f076e3a4b5c8b7
-SIZE (Quake2maX_0.44-src_unix.tar.bz2) = 535440
+MD5 (Quake2maX_0.45-src_unix.tar.bz2) = 1bbc2611a8d84711f6a2416d04480430
+SHA256 (Quake2maX_0.45-src_unix.tar.bz2) = daca65e62a359f4ec526d85e809f9f22e66f7d2e70e6b8e0047daa4434499942
+SIZE (Quake2maX_0.45-src_unix.tar.bz2) = 528143
 MD5 (quake2max.044.rar) = 8a18fa4a431acbe1891a9666abb210e7
 SHA256 (quake2max.044.rar) = a8fd147c747e283438780bc8a4700df9c6173f4417e7ace0c67975036a08bce1
 SIZE (quake2max.044.rar) = 2071329
Index: quake2max/files/patch-qcommon__files.c
===================================================================
RCS file: /home/pcvs/ports/games/quake2max/files/patch-qcommon__files.c,v
retrieving revision 1.1
diff -u -r1.1 patch-qcommon__files.c
--- quake2max/files/patch-qcommon__files.c	28 Jul 2006 22:05:00 -0000	1.1
+++ quake2max/files/patch-qcommon__files.c	30 Dec 2006 05:46:07 -0000
@@ -1,16 +1,16 @@
---- ./qcommon/files.c.orig	Wed Jan  4 07:14:49 2006
-+++ ./qcommon/files.c	Fri Jul 28 13:30:29 2006
-@@ -778,6 +778,9 @@
- 		Cvar_FullSet ("gamedir", dir, CVAR_SERVERINFO|CVAR_NOSET);
+--- qcommon/files.c.orig	Wed Jan  4 07:33:05 2006
++++ qcommon/files.c	Sat Dec 30 02:02:16 2006
+@@ -775,6 +775,9 @@
  		if (fs_cddir->string[0])
- 			FS_AddGameDirectory (va("%s/%s", fs_cddir->string, dir) );
+ 		
+ 		FS_AddGameDirectory (va("%s/%s", fs_cddir->string, dir) );
 +#ifdef DATADIR
 +		FS_AddGameDirectory(va("%s/%s", DATADIR, dir));
 +#endif
  #ifdef LIBDIR
  		FS_AddGameDirectory(va("%s/%s", LIBDIR, dir));
  #endif
-@@ -1002,16 +1005,7 @@
+@@ -999,16 +1002,7 @@
  	// basedir <path>
  	// allows the game to run from outside the data tree
  	//
@@ -27,7 +27,7 @@
  
  	sv_defaultpaks = Cvar_Get ("sv_defaultpaks", "0", CVAR_ARCHIVE);
  
-@@ -1027,8 +1021,11 @@
+@@ -1024,8 +1018,11 @@
  	//
  	// start up with baseq2 by default
  	//
Index: quake2max/files/patch-unix__sys_unix.c
===================================================================
RCS file: /home/pcvs/ports/games/quake2max/files/patch-unix__sys_unix.c,v
retrieving revision 1.1
diff -u -r1.1 patch-unix__sys_unix.c
--- quake2max/files/patch-unix__sys_unix.c	28 Jul 2006 22:05:00 -0000	1.1
+++ quake2max/files/patch-unix__sys_unix.c	30 Dec 2006 05:46:07 -0000
@@ -1,6 +1,17 @@
---- ./unix/sys_unix.c.orig	Wed Jan  4 07:57:40 2006
-+++ ./unix/sys_unix.c	Fri Jul 28 13:30:29 2006
-@@ -220,15 +220,8 @@
+--- unix/sys_unix.c.orig	Wed Jan 11 10:06:28 2006
++++ unix/sys_unix.c	Sat Dec 30 02:03:37 2006
+@@ -36,10 +36,6 @@
+ #include <sys/mman.h>
+ #include <errno.h>
+ 
+-#ifdef __linux__
+-#include <mntent.h>
+-#endif
+-
+ #include <dlfcn.h>
+ 
+ #include "../qcommon/qcommon.h"
+@@ -220,15 +216,8 @@
  	void	*(*GetGameAPI) (void *);
  
  	char	name[MAX_OSPATH];
@@ -17,7 +28,7 @@
  
  	setreuid(getuid(), getuid());
  	setegid(getgid());
-@@ -236,8 +229,6 @@
+@@ -236,8 +225,6 @@
  	if (game_library)
  		Com_Error (ERR_FATAL, "Sys_GetGameAPI without Sys_UnloadingGame");
  
@@ -26,7 +37,7 @@
  	Com_Printf("------- Loading %s -------\n", gamename);
  
  	// now run through the search paths
-@@ -247,7 +238,7 @@
+@@ -247,7 +234,7 @@
  		path = FS_NextPath (path);
  		if (!path)
  			return NULL;		// couldn't find one anywhere
@@ -35,19 +46,3 @@
  		game_library = dlopen (name, RTLD_LAZY );
  		if (game_library)
  		{
-@@ -319,6 +310,7 @@
- 
- void Sys_CopyProtect(void)
- {
-+#if 0
- 	FILE *mnt;
- 	struct mntent *ent;
- 	char path[MAX_OSPATH];
-@@ -366,6 +358,7 @@
- 		Com_Error (ERR_FATAL, "Could not find a Quake2 CD in your CD drive.");
- 	Com_Error (ERR_FATAL, "Unable to find a mounted iso9660 file system.\n"
- 		"You must mount the Quake2 CD in a cdrom drive in order to play.");
-+#endif
- }
- 
- #if 0

Attachment: signature.asc
Description: PGP signature

Reply via email to