<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class=""><br>
<br>
</div>Comment(by hamish):<br> a guess- recent versions of Debian (and thus Ubuntu) packaging rules add<br>
 hardening flags to the compiler CFLAGS. I believe one of the results of<br>
 this is that it forces programs to crash instead of continuing on in a<br>
 memory-corrupted state. It also adds a number of warnings to the compile<br>
 log when it suspects something bad could happen.<br>
<br>
 see <a href="https://wiki.debian.org/Hardening" target="_blank">https://wiki.debian.org/Hardening</a><br>
<br></blockquote><div>This might be very useful. Do you have some exact suggestion what flags to use?</div><div><br></div><div>On Ubuntu 12.04 I get:</div><div><br></div><div><div>$ dpkg-buildflags</div><div>CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security</div>

<div>CPPFLAGS=-D_FORTIFY_SOURCE=2</div><div>CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security</div><div>FFLAGS=-g -O2</div><div>LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro</div>

</div><div><br></div><div>So, I will put this into my configure script wrapper.</div><div><br></div><div>Vaclav</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<br>
 You only get those flags for a self-compile if you add them manually or if<br>
 you use the package build scripts.<br>
<br>
<br>
 regards,<br>
 Hamish<br>
<span class=""><font color="#888888"><br>
--<br>
Ticket URL: <<a href="https://trac.osgeo.org/grass/ticket/2235#comment:5" target="_blank">https://trac.osgeo.org/grass/ticket/2235#comment:5</a>><br>
</font></span><div class=""><div class="h5">GRASS GIS <<a href="http://grass.osgeo.org" target="_blank">http://grass.osgeo.org</a>><br>
<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></div></div></blockquote></div><br></div></div>