Bug 243163 - [PATCH] graphics/flasm: fix build with gperf 3.1
Summary: [PATCH] graphics/flasm: fix build with gperf 3.1
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jun Kuriyama
Depends on:
Reported: 2020-01-07 17:17 UTC by Dirk Meyer
Modified: 2020-01-07 17:17 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (kuriyama)

suugested patch (2.43 KB, patch)
2020-01-07 17:17 UTC, Dirk Meyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Meyer freebsd_committer 2020-01-07 17:17:26 UTC
Created attachment 210507 [details]
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.