Date: Sat, 30 Dec 2006 02:47:18 -0300 From: Alejandro Pulver <alepulver@FreeBSD.org> To: freebsd-hackers@FreeBSD.org Subject: Program not being executed at all Message-ID: <20061230024718.22131bff@phobos.mars.bsd>
next in thread | raw e-mail | index | archive | help
--Sig_5B+3Wn=CO3+_4K/d/q4oOcI Content-Type: multipart/mixed; boundary=MP_9JbH.FRHcGOaiW4jlKjLmDJ --MP_9JbH.FRHcGOaiW4jlKjLmDJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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. --MP_9JbH.FRHcGOaiW4jlKjLmDJ Content-Type: text/x-patch; name=quake2max.diff Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=quake2max.diff Index: quake2max/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 @@ # =20 PORTNAME=3D quake2max -PORTVERSION=3D 0.44 -PORTREVISION=3D 1 +PORTVERSION=3D 0.45 CATEGORIES=3D games MASTER_SITES=3D http://qudos.quakedev.com/linux/quake2/engines/Quake2MaX/:= src \ ${MASTER_SITE_LOCAL:S/$/:data/} @@ -24,9 +23,9 @@ =20 USE_BZIP2=3D yes USE_GMAKE=3D yes -USE_GCC=3D 3.2+ +USE_GCC=3D 3.4+ ALL_TARGET=3D release -WRKSRC=3D ${WRKDIR}/Quake2maX-44-src_unix +WRKSRC=3D ${WRKDIR}/${DISTNAME:S/quake2max/Quake2maX/} =20 OPTIONS=3D CLIENT "Build client" on \ DEDICATED "Build dedicated server" on \ @@ -40,10 +39,7 @@ PLIST_SUB=3D LIBDIR=3D"${LIBDIR:S/${PREFIX}\///}" LIBDIR=3D ${PREFIX}/lib/${PORTNAME} =20 -Q2MAX_DATA=3D ${PORTNAME}.${PORTVERSION:S/.//}.rar - -# The data is not available and compiled executables do not work for 0.45. -PORTSCOUT=3D skipv:0.45 +Q2MAX_DATA=3D ${PORTNAME}.044.rar =20 .include "${.CURDIR}/../quake2-data/Makefile.include" =20 Index: quake2max/distinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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) =3D 862d114541a49df2ef78f2700fde636b -SHA256 (Quake2maX_0.44-src_unix.tar.bz2) =3D 579aa80b1f26ebb5e7cd4dff40965= 04c378c7b225dd6c05fd5f076e3a4b5c8b7 -SIZE (Quake2maX_0.44-src_unix.tar.bz2) =3D 535440 +MD5 (Quake2maX_0.45-src_unix.tar.bz2) =3D 1bbc2611a8d84711f6a2416d04480430 +SHA256 (Quake2maX_0.45-src_unix.tar.bz2) =3D daca65e62a359f4ec526d85e809f9= f22e66f7d2e70e6b8e0047daa4434499942 +SIZE (Quake2maX_0.45-src_unix.tar.bz2) =3D 528143 MD5 (quake2max.044.rar) =3D 8a18fa4a431acbe1891a9666abb210e7 SHA256 (quake2max.044.rar) =3D a8fd147c747e283438780bc8a4700df9c6173f4417e= 7ace0c67975036a08bce1 SIZE (quake2max.044.rar) =3D 2071329 Index: quake2max/files/patch-qcommon__files.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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) ); + =09 + 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 @@ =20 sv_defaultpaks =3D Cvar_Get ("sv_defaultpaks", "0", CVAR_ARCHIVE); =20 -@@ -1027,8 +1021,11 @@ +@@ -1024,8 +1018,11 @@ // // start up with baseq2 by default // Index: quake2max/files/patch-unix__sys_unix.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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> +=20 +-#ifdef __linux__ +-#include <mntent.h> +-#endif +- + #include <dlfcn.h> +=20 + #include "../qcommon/qcommon.h" +@@ -220,15 +216,8 @@ void *(*GetGameAPI) (void *); =20 char name[MAX_OSPATH]; @@ -17,7 +28,7 @@ =20 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"); =20 @@ -26,7 +37,7 @@ Com_Printf("------- Loading %s -------\n", gamename); =20 // now run through the search paths -@@ -247,7 +238,7 @@ +@@ -247,7 +234,7 @@ path =3D FS_NextPath (path); if (!path) return NULL; // couldn't find one anywhere @@ -35,19 +46,3 @@ game_library =3D dlopen (name, RTLD_LAZY ); if (game_library) { -@@ -319,6 +310,7 @@ -=20 - 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 - } -=20 - #if 0 --MP_9JbH.FRHcGOaiW4jlKjLmDJ-- --Sig_5B+3Wn=CO3+_4K/d/q4oOcI Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFlf2BiV05EpRcP2ERAoAIAJ41J0QUni70RGB8K6QYWkBIAIi0OQCeKDa7 tbzNjtrSGYGL6l1sVgrFcx0= =67l9 -----END PGP SIGNATURE----- --Sig_5B+3Wn=CO3+_4K/d/q4oOcI--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061230024718.22131bff>