Nmap Development mailing list archives

SVN build failure on OpenBSD


From: "Thomas Buchanan" <TBuchanan () thecompassgrp net>
Date: Fri, 31 Oct 2008 15:41:01 -0500

Current SVN (revision 10859) fails to compile for me on OpenBSD 4.3 and
4.4.  The error occurs in the ncat directory, as follows:

gmake[1]: Entering directory `/home/thomas/dev/svn/nmap/ncat'
gcc -I../libpcap -DHAVE_CONFIG_H -I. -I.. -I../nsock/include/ -I../nbase
-I/usr/include  -c ncat_main.c
In file included from ../nbase/nbase.h:153,
                 from ncat.h:12,
                 from ncat_main.c:4:
/usr/include/unistd.h:159: error: conflicting types for `truncate'
/usr/include/sys/types.h:210: error: previous declaration of `truncate'
gmake[1]: *** [ncat_main.o] Error 1
gmake[1]: Leaving directory `/home/thomas/dev/svn/nmap/ncat'
gmake: *** [ncat_build] Error 2

Here are the versions I'm working on:

$ uname -a
OpenBSD host.local 4.3 GENERIC#698 i386
$ gcc --version
gcc (GCC) 3.3.5 (propolice)

$ uname -a
OpenBSD host.local 4.4 GENERIC#1021 i386
$ gcc --version
gcc (GCC) 3.3.5 (propolice)

If I run ./configure with the --without-ncat option, then the build
completes successfully.

Any thoughts or suggestions?

Thanks,

Thomas

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


Current thread: