Hi,

Following patch works for me.

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 12:05:33 -0000
@@ -8,12 +8,13 @@
 
 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 \
        ohash_enum.c ohash_init.c ohash_int.h ohash_interval.c \
        ohash_lookup_interval.c ohash_lookup_memory.c ohash_qlookup.c \
-       ohash_qlookupi.c strtonum.c
+       ohash_qlookupi.c
 YHEADER=1
 .if (${HOSTPROG:U} == "")
 DPADD+=                ${LIBUTIL} ${LIBL}


From: Ryo ONODERA <[email protected]>, Date: Thu, 29 Jan 2015 18:37:21 +0900 
(JST)

> 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 <[email protected]>, 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 // [email protected]
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

Reply via email to