Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2008 23:10:07 +0100
From:      Kris Kennaway <kris@FreeBSD.org>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        ports@freebsd.org, James Cook <james.cook@utoronto.ca>
Subject:   Re: freebsd-games: hack needs -fwritable-strings
Message-ID:  <478697BF.5020604@FreeBSD.org>
In-Reply-To: <18310.35480.307764.676937@jerusalem.litteratus.org>
References:  <20080110174126.GA45584@glider> <18310.35480.307764.676937@jerusalem.litteratus.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?478697BF.5020604>