Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Build failure of current (strtonum)
Hi,
Following patch fixes my build.
Index: usr.bin/m4/Makefile
===================================================================
RCS file: /cvsroot/src/usr.bin/m4/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- usr.bin/m4/Makefile 14 Aug 2011 12:59:25 -0000 1.17
+++ usr.bin/m4/Makefile 29 Jan 2015 09:36:03 -0000
@@ -8,6 +8,7 @@
PROG= m4
CPPFLAGS+= -DEXTENDED -I${.CURDIR}/lib
+CPPFLAGS+= -D_OPENBSD_SOURCE
SRCS= parser.y tokenizer.l eval.c expr.c look.c main.c misc.c gnum4.c trace.c
.PATH: ${.CURDIR}/lib
SRCS+= ohash_create_entry.c ohash_delete.c ohash_do.c ohash_entries.c \
From: Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>, Date: Thu, 29 Jan 2015 18:17:36 +0900 (JST)
> Hi,
>
> I have gotten the following error with very recent NetBSD current.
>
> $ ./build.sh -O /usr/world/7.99/evbarm/obj -T /usr/world/7.99/evbarm/tools -D /usr/world/7.99/evbarm/NewWorld -R /usr/world/7.99/evbarm/release -U -j5 -x -m evboarm-el release
> (snip)
> /usr/src/usr.bin/m4/eval.c: In function 'expand_builtin':
> /usr/src/usr.bin/m4/eval.c:186:4: error: implicit declaration of function 'strto
> num' [-Werror=implicit-function-declaration]
> base = strtonum(argv[3], 2, 36, &errstr);
> ^
> cc1: all warnings being treated as errors
> *** [eval.o] Error code 1
--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index