nmap build failure

Adam McLaurin blueeskimo at gmx.net
Fri Sep 26 07:39:37 PDT 2003


On Fri, 2003-09-26 at 02:46, Jon Noack wrote:
> nmap 3.46 from ports fails to build on my 5.1-RELEASE-p8 machine with 
> the following error (full build log attached):
> 
> *************************** error ***************************
> c++ -c  -I/usr/local/include -O -pipe -march=pentium3 -fmemoize-lookups 
> -fsave-memoized -Wall  -I/usr/local/include -Ilibpcap-possiblymodified 
> -Inbase -Insock/include  -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.46\" 
> -DNMAP_NAME=\"nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\"
> -DNMAP_PLATFORM=\"i386-portbld-freebsd5.1\" 
> -DNMAPDATADIR=\"/usr/local/share/nmap\" -Ilibpcap-possiblymodified 
> main.cc -o main.o
> In file included from nbase/nbase.h:256,
>                   from nmap.h:109,
>                   from main.cc:87:
> /usr/local/include/getopt.h:115: declaration of C function `int getopt()'
>     conflicts with
> /usr/include/unistd.h:377: previous declaration `int getopt(int, char* 
> const*,
>     const char*)' here
> *** Error code 1
> *************************************************************

I'm having the same problem. I think it has something to do with pcre,
but I'm not sure yet. I'll report back if I find something more.

-- 
Adam McLaurin <blueeskimo at gmx.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030926/385452c6/attachment.bin


More information about the freebsd-questions mailing list