[GRASS-dev] FORTIFY_SOURCE=2 brakes congigure

Maciej Sieczka msieczka at sieczka.org
Sun Apr 21 14:08:29 PDT 2013


W dniu 21.04.2013 21:43, Markus Neteler pisze:
> On Sun, Apr 21, 2013 at 8:23 PM, Maciej Sieczka <msieczka at sieczka.org> wrote:

>> Arch has recently added CPPFLAGS="-D_FORTIFY_SOURCE=2" [1] to its package
>> and build management toolset config [2].
>>
>> This brakes ./configure for any GRASS version as follows:
>>
>> $ CPPFLAGS="-D_FORTIFY_SOURCE=2" ./configure | tail
>> configure: error: *** Unable to locate curses includes.

> ... apparently you try with GRASS 6 here?

7 svn too.

> /usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE
> requires compiling with optimization (-O) [-Wcpp]

Missed that. Thanks.

`CPPFLAGS="-O -D_FORTIFY_SOURCE=2" ./configure' works. I don't like the 
idea of forcing the optimisation though. I think I'll rather override 
the Arch's default with -D_FORTIFY_SOURCE=0.

Maciek

-- 
Maciej Sieczka
http://www.sieczka.org


More information about the grass-dev mailing list