Nmap Development mailing list archives
Re: 3.90 won't compile on openbsd 3.6
From: Okan Demirmen <okan () demirmen com>
Date: Thu, 8 Sep 2005 15:15:13 -0400
(pardon, this may be a duplicate) On Thu 2005.09.08 at 09:56 -0700, Michael Hornung wrote:
It doesn't appear to compile cleanly on OpenBSD 3.6 (stable).
it will. follow the port in the tree (or pull from it what you need). i
have it working on -current, which i'm sure you can backport that if you
wish. this patch, along with the other relevant patches, will get to
ports () openbsd org only once it's tested on more archs - not quite
working on amd64/sparc64 - but i'm out of time for now ;( i386 works
fine for what i can tell now.
openbsd uses bpf_timeval for better portability.
--- tcpip.cc.orig Thu Sep 8 11:06:07 2005
+++ tcpip.cc Thu Sep 8 11:09:13 2005
@@ -1607,7 +1607,8 @@ if (timedout) {
gettimeofday(&tv_end, NULL);
*rcvdtime = tv_end;
#else
- *rcvdtime = head.ts;
+ rcvdtime->tv_sec = head.ts.tv_sec;
+ rcvdtime->tv_usec = head.ts.tv_usec;
assert(head.ts.tv_sec);
#endif
}
@@ -1778,7 +1779,8 @@ int read_arp_reply_pcap(pcap_t *pd, u8 *
gettimeofday(&tv_end, NULL);
*rcvdtime = tv_end;
#else
- *rcvdtime = head.ts;
+ rcvdtime->tv_sec = head.ts.tv_sec;
+ rcvdtime->tv_usec = head.ts.tv_usec;
assert(head.ts.tv_sec);
#endif
}
and looks like fyodor's change to pcap_lookupnet() call eliminated a
patch which was required for APLHA{1,2}. thanks.
I ran
configure as:
./configure --without-nmapfe --with-openssl=/usr/lib
and again, follow what is in the port's Makefile - it is there for a reason. cheers, okan _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- 3.90 won't compile on openbsd 3.6 Michael Hornung (Sep 08)
- Re: 3.90 won't compile on openbsd 3.6 Michael Hornung (Sep 08)
- Re: 3.90 won't compile on openbsd 3.6 Okan Demirmen (Sep 08)
- Re: 3.90 won't compile on openbsd 3.6 Fyodor (Sep 09)
