Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Error compiling nmap-5.50 on Solaris (with solution)
From: Richard <rleeden () gmail com>
Date: Sat, 29 Jan 2011 11:42:18 +0000

Hi,

I get the following error compiling nmap-5.50 on a Solaris Sparc 9 machine:

EchoServer.cc: In member function `int EchoServer::nep_listen_socket()':
EchoServer.cc:219: error: `SIGPIPE' was not declared in this scope
EchoServer.cc:219: error: `SIG_IGN' was not declared in this scope
EchoServer.cc:219: error: `signal' was not declared in this scope
EchoServer.cc:219: warning: unused variable 'SIGPIPE'
EchoServer.cc:219: warning: unused variable 'SIG_IGN'
EchoServer.cc:219: warning: unused variable 'signal'
make[3]: *** [EchoServer.o] Error 1
make[3]: Leaving directory `/build/nmap-5.50/nping'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/build/nmap-5.50/nping'
make[1]: *** [build-nping] Error 2
make[1]: Leaving directory `/build/nmap-5.50'
make: *** [all] Error 2

The following simple patch fixed this for me:

--- EchoServer.cc.orig  2011-01-29 10:52:33.811485000 +0000
+++ EchoServer.cc       2011-01-29 11:40:13.144967000 +0000
@@ -96,6 +96,7 @@
 #include "output.h"
 #include "NpingOps.h"
 #include "ProbeMode.h"
+#include "<signal.h>"

 extern NpingOps o;
 extern EchoServer es;


Regards,

Richard van der Leeden


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


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]