freebsd-games: hack needs -fwritable-strings

Pietro Cerutti gahr at
Fri Jan 11 02:52:29 PST 2008

James Cook wrote:
> $ uname -a
> FreeBSD glider 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Tue Dec 11 13:40:40 PST 2007     james at angel:/usr/obj/usr/src/sys/GLIDER  i386
> 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.
> This seems to be caused by line 170 of hack.u_init.c, which attempts to
> modify a string constant.
> 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.

Pietro Cerutti

PGP Public Key:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-ports mailing list