freebsd-games: hack needs -fwritable-strings
James Cook
james.cook at utoronto.ca
Thu Jan 10 22:15:40 PST 2008
On Thu, Jan 10, 2008 at 11:10:07PM +0100, Kris Kennaway wrote:
> Robert Huff wrote:
> >James Cook writes:
> >
> >> This seems to be caused by line 170 of hack.u_init.c, which
> >> attempts to modify a string constant.
> >>
> >> 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.)
> >
> > Has something changed in the definition of correctly written
> >code while I was away at the funny farm? Why is the solution not
> >"Don't modify a costant."?
>
> This code has been largely untouched since the 1980s :)
>
> Kris
I like to think of the code as a museum artifact. An age-old scroll,
written in an archaic language just close enough to modern C for us
to understand.
The original form will always be preserved somewhere, though. If somebody
has the energy to modernize the code, I'm happy.
James
More information about the freebsd-ports
mailing list