Date: Fri, 11 Jan 2008 11:50:35 +0100 From: Pietro Cerutti <gahr@gahr.ch> To: James Cook <james.cook@utoronto.ca>, freebsd ports <freebsd-ports@freebsd.org> Subject: Re: freebsd-games: hack needs -fwritable-strings Message-ID: <478749FB.6010303@gahr.ch> In-Reply-To: <20080110174126.GA45584@glider> References: <20080110174126.GA45584@glider>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig63BCFBDDD3E2585F1B728755 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable James Cook wrote: > $ uname -a > FreeBSD glider 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Tue Dec 11 13:= 40:40 PST 2007 james@angel:/usr/obj/usr/src/sys/GLIDER i386 >=20 > The problem: > - Install games/freebsd-games > - run hack > - Say "y" when it asks if you're experienced. > - Type "T" for tourist. > There will be a bus error. >=20 > This seems to be caused by line 170 of hack.u_init.c, which attempts to= > modify a string constant. >=20 > SOLUTION: > Add -fwritable-strings to CFLAGS in hack's Makefile. (There's already > a patch that changes that line of the Makefile, so this is easy to > change.) the -fwritable-strings option has been deprecated on GCC 3.x and has removed on GCC 4.x. A code modernization is likely to be needed. --=20 Pietro Cerutti PGP Public Key: http://gahr.ch/pgp --------------enig63BCFBDDD3E2585F1B728755 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHh0oBwMJqmJVx944RClKcAJ0X2VLPUbwP74oTfOZj/rbpyWQ9dgCffwdG s6u+quW6eqyv1mjV7NNGHOw= =S3zM -----END PGP SIGNATURE----- --------------enig63BCFBDDD3E2585F1B728755--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478749FB.6010303>