Subject: Re: anyone else having trouble compiling nmap on current?
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: tech-pkg
Date: 07/12/2004 15:11:47
On Mon, 12 Jul 2004, Lubomir Sedlacik wrote:

> hi,
> 
> On Sun, Jul 11, 2004 at 11:21:27AM -0700, Hisashi T Fujinaka wrote:
> > The error I see is:
> > 
> > g++ -c -I/usr/pkg/include -I/usr/include -I/include -I/usr/include -O2 
> > -I/usr/pkg/include -I/usr/include -Wall  -I/usr/include -Inbase 
> > -Insock/include  -DHAVE_CONFIG_H -DNMAP_VERSION=\"3.55\" 
> > -DNMAP_NAME=\"nmap\" -DNMAP_URL=\"http://www.insecure.org/nmap/\" 
> > -DNMAP_PLATFORM=\"i386--netbsdelf\" -DNMAPDATADIR=\"/usr/pkg/share/nmap\" 
> > -I. nmap.cc -o nmap.o
> > nmap.cc: In function `int parse_scanflags(char*)':
> > nmap.cc:115: error: `strcasestr' undeclared (first use this function)
> > nmap.cc:115: error: (Each undeclared identifier is reported only once for 
> > each
> >    function it appears in.)
> >    *** Error code 1
> 
> is your userland fully installed?  strcasestr(3) was added few days ago
> to -current and i can't reproduce the problem on today's build.
> 
>   NetBSD 2.0G #0: Mon Jul 12 12:07:59
> 
> $ ident /lib/libc.so| grep strcasestr
>      $NetBSD: strcasestr.c,v 1.1 2004/07/03 08:27:25 junyoung Exp $
> $ grep strcasestr /usr/include/string.h
> char    *strcasestr(const char *, const char *);
> 
> check your build.log what it says about strcasestr() test.

OK.

htodd@allison:/usr/pkgsrc/net/nmap > ident /lib/libc.so | grep strcasestr
      $NetBSD: strcasestr.c,v 1.1 2004/07/03 08:27:25 junyoung Exp $

htodd@allison:/usr/pkgsrc/net/nmap > grep strcasestr /usr/include/string.h
Exit 1

htodd@allison:/usr/pkgsrc/net/nmap > grep strcasestr /usr/src/obj.i386/destdir.i386/usr/include/string.h
char    *strcasestr(const char *, const char *);


Hmm. I did a './build.sh -U install=/'.

OK, so is this my METALOG or is it the distrib lists that are off?

-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte