Nmap Development mailing list archives

Re: gcc-4 troubleshooting


From: "Duilio J. Protti" <dprotti () flowgate net>
Date: Sun, 28 Aug 2005 16:52:38 -0300

Attached is a patch to configure.ac that take this into account. I have
tested successfully with both gcc 3 and gcc 4 on FC3.


Regards,
Duilio Protti.

Greg Darke wrote:
I found that the code will compile correctly with GCC 4, if you enable
the no-strict-aliasing option (because strict-aliasing is enabled with
level 2 or higher optimization).

The command I used to configure Nmap was:
./configure CFLAGS="-O2 -fno-strict-aliasing"

Is there a way that we can check for GCC 4 and then automatically use
the -fno-strict-aliasing option?

Greg Darke


Attachment: nmap-gcc4-no-strict-aliasing.patch
Description:



_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev

Current thread: