Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2001 12:00:56 -0700 (PDT)
From:      John Polstra <jdp@polstra.com>
To:        current@freebsd.org
Cc:        david@catwhisker.org
Subject:   Re: World is broken...
Message-ID:  <200104291900.f3TJ0uS39289@vashon.polstra.com>
In-Reply-To: <200104291719.f3THJP726340@bunrab.catwhisker.org>
References:  <200104291719.f3THJP726340@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <200104291719.f3THJP726340@bunrab.catwhisker.org>,
David Wolfskill  <david@catwhisker.org> wrote:
> >From: Poul-Henning Kamp <phk@FreeBSD.ORG>
> >Date: Sun, 29 Apr 2001 19:10:36 +0200
> 
> > /usr/obj/flat/src/sys/boot/i386/loader/../../ficl/libficl.a /usr/obj/flat/src/sys/boot/i386/loader/../libi386/libi386.a /usr/obj/flat/src/sys/boot/
> >i386/loader/../../../../lib/libstand/libstand.a
> >/usr/obj/flat/src/sys/boot/i386/loader/../../ficl/libficl.a(words.o): In function `ficlParseNumber':
> >words.o(.text+0x1ae): undefined reference to `isalnum'
> >*** Error code 1
> >1 error
> >*** Error code 2
> >1 error
[...]
> 
> The only reference to isalnum() I see is in boot/ficl/words.c:274, and
> appears to replace a couple of references, one to isdigit() and the
> other to isalpha().
> 
> Perhaps something was omitted in the upgrade to ficl 2.05?

It's because words.c uses <stand.h> instead of <ctype.h>, and
<stand.h> is missing the #define for isalnum().  I imagine adding
something like this to <stand.h> would fix it:

#define	isalnum(c)	(isalpha(c) || isdigit(c))

John
-- 
  John Polstra                                               jdp@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Disappointment is a good sign of basic intelligence."  -- Chögyam Trungpa


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104291900.f3TJ0uS39289>