[Bug 243163] [PATCH] graphics/flasm: fix build with gperf 3.1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 7 17:17:27 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243163

            Bug ID: 243163
           Summary: [PATCH] graphics/flasm: fix build with gperf 3.1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: kuriyama at FreeBSD.org
          Reporter: dinoex at FreeBSD.org
          Assignee: kuriyama at FreeBSD.org
             Flags: maintainer-feedback?(kuriyama at FreeBSD.org)

Created attachment 210507
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=210507&action=edit
suugested patch

After update to gperf 3.1 the port fails to build.

===>  Building for flasm-1.62
gmake[1]: Entering directory
'/data/image/usr/ports/graphics/flasm/work/flasm-1.62'
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -c -o util.o
util.c
bison --defines --debug assembler.y
gperf --language=ANSI-C -t -T -E -o -k 1,$,2,5 -S8 keywords.gperf > keywords.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -c -o keywords.o
keywords.c
keywords.gperf:76:1: error: conflicting types for 'in_word_set'
in_word_set (register const char *str, register size_t len)
^
keywords.gperf:14:17: note: previous declaration is here
struct keyword *in_word_set(register const char *str, register unsigned int
len);
                ^
1 error generated.
gmake[1]: *** [<builtin>: keywords.o] Error 1


In the API the type has changed from "unsigned int" to "size_t"

The attached patch fixes build for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list