Nmap Development mailing list archives
patch for compile problem with non-gcc compiler
From: Petter Reinholdtsen <petter.reinholdtsen () usit uio no>
Date: Fri, 13 Jun 2003 14:59:07 +0200
The following patch is required to get nmap 3.27 to compile with non-gcc compilers. -Wall is unknown to most compilers. diff -ur src-3.27/Makefile.in src-3.27-local/Makefile.in --- src-3.27/Makefile.in 2003-04-28 20:34:48.000000000 +0200 +++ src-3.27-local/Makefile.in 2003-06-12 17:52:29.000000000 +0200 @@ -21,9 +21,9 @@ # For mtrace debugging -- see MTRACE define in main.cc for instructions # Should only be enabled during debugging and not in any real release. # DEFS += -DMTRACE=1 -CXXFLAGS = -g -Wall @CXXFLAGS@ $(CCOPT) $(DEFS) $(INCLS) +CXXFLAGS = -g @CXXFLAGS@ $(CCOPT) $(DEFS) $(INCLS) # CFLAGS = $(CXXFLAGS) -# CFLAGS = -g -Wall $(DEFS) $(INCLS) +# CFLAGS = -g $(DEFS) $(INCLS) STATIC = LDFLAGS = @LDFLAGS@ $(STATIC) LIBS = @LIBS@ -lpcap Only in src-3.27-local: Makefile.in~ diff -ur src-3.27/nbase/Makefile.in src-3.27-local/nbase/Makefile.in --- src-3.27/nbase/Makefile.in 2001-02-01 10:18:01.000000000 +0100 +++ src-3.27-local/nbase/Makefile.in 2003-06-12 17:52:54.000000000 +0200 @@ -11,7 +11,7 @@ CCOPT = DEFS = @DEFS@ -DNCRACK_VERSION=\"$(NCRACK_VERSION)\" -DHAVE_CONFIG_H=1 CFLAGS = @CFLAGS@ -g $(CCOPT) $(GLIB_CFLAGS) $(DEFS) $(INCLS) -# CFLAGS = -g -Wall $(DEFS) $(INCLS) +# CFLAGS = -g $(DEFS) $(INCLS) STATIC = LDFLAGS = @LDFLAGS@ $(STATIC) LIBS = @LIBS@ There are several other compile problems, but this got it compiling on Irix, at least. :) Why is the include files in libpcap-possiblymodified/ used even if a working libpcap available from the system? The version in libpcap-possiblymodified/ should btw be upgraded to make sure libpcap-possiblymodified/net/bpf.h contains the required 'extern "C" {}' block to get it compiling properly as C++. --------------------------------------------------------------------- For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).
Current thread:
- patch for compile problem with non-gcc compiler Petter Reinholdtsen (Jun 13)
- Re: patch for compile problem with non-gcc compiler Fyodor (Jun 14)
- Re: patch for compile problem with non-gcc compiler Petter Reinholdtsen (Jun 15)
- Re: patch for compile problem with non-gcc compiler Fyodor (Jun 14)