It worked wonders.<br><br>Thanks... and I mean A LOT!<br><br><div class="gmail_quote">On Thu, Apr 5, 2012 at 12:29 AM, Kuroishi Mitsuo <span dir="ltr"><<a href="mailto:kuroishi@iij.ad.jp">kuroishi@iij.ad.jp</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div><div class="h5">
> Hello.<br>
><br>
> Is there a way to compile the ISC DHCP without code optimization?. I tried<br>
> editing the Makefile created by ./configure, changing in the "CFLAGS" line<br>
> the "-O2" option to "-O0" or even removing it completely, but then when I<br>
> Make the output leads me to think that the code it's still being optimized.<br>
><br>
> For example: the last gcc output is "gcc -g -O2 -Wall -Werror<br>
> -fno-strict-aliasing -I../bind/include -o dhcpd dhcpd-dhcpd.o......".<br>
><br>
> Also, running the dhclient through GDB shows that the values of some<br>
> variables/pointers used in a function I created are being optimized ("value<br>
> optimized out"). I'm getting a Segmentation fault during a malloc to a<br>
> pointer (only initialized, pointing to NULL) which value is being optimized<br>
> before the malloc and I'd like to try if compiling without optimizations<br>
> would fix that problem.<br>
><br>
> Any help will be greatly appreciated.<br>
> Thanks.<br>
<br>
</div></div>Hi.<br>
<br>
I did ./configure CFLAGS="-g3 -O0" and it seems to be OK.<br>
<br>
Regards,<br>
<font color="#888888"><br>
--<br>
Kuroishi Mitsuo<br>
</font></blockquote></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%" id="avg_ls_inline_popup"></div>