On October 11, 2007 11:57:09 am Vijay Sankar wrote:
> Unfortunately, I am not able to compile nmap on OpenBSD 4.1 or 4.2
> (release) or 4.2-current. gmake dies at tcpip.o.
>
> Earlier on (while I was having errors with SOC6 code), I did get a message
> from Eddie Bell, author of portreasons.h, who was planning to look at his
> portreasons.h., so that may resolve this but I am wondering if I am making
> some other mistake or if there is something else that is wrong. If you have
> any thoughts on how I could compile this properly, please let me know.
>
> Thanks very much,
>
> Vijay
>

Thanks to David Fifield, I was able to compile nmap-4.22SOC7 on OpenBSD 4.1.
The new user graphical user interface for nmap is also working very nicely on
OpenBSD 4.1.

As per David's advice, I changed portreasons.h as follows:

Index: portreasons.h
===================================================================
--- portreasons.h       (revision 6010)
+++ portreasons.h       (working copy)
@@ -102,6 +102,8 @@
 #ifndef REASON_H
 #define REASON_H
 
+#include "nmap.h"
+
 #ifdef WIN32
 #include "winsock2.h"
 #else

After that, my normal .configure command worked. Just in case it is of help to
anyone else, here is the command I typically use:

./configure --with-libpcap=/usr --with-openssl=/usr --with-libpcre=/usr/local
--
with-libdnet=/usr/local --prefix=/usr/local --sysconfdir=/etc
--mandir=/usr/loca
l/man --infodir=/usr/local/info

Vijay

--
Vijay Sankar, M.Eng., P.Eng.
President & CEO
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB Canada R3J 0X6
Phone: +1 204 885 9535, E-Mail: [EMAIL PROTECTED]

Reply via email to