freebsd-games: hack needs -fwritable-strings
gahr at gahr.ch
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
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.
PGP Public Key:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080111/dfcb8912/signature.pgp
More information about the freebsd-ports