Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Jan 2020 17:17:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 243163] [PATCH] graphics/flasm: fix build with gperf 3.1
Message-ID:  <bug-243163-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243163

            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@FreeBSD.org
          Reporter: dinoex@FreeBSD.org
          Assignee: kuriyama@FreeBSD.org
             Flags: maintainer-feedback?(kuriyama@FreeBSD.org)

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

After update to gperf 3.1 the port fails to build.

=3D=3D=3D>  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=3DANSI-C -t -T -E -o -k 1,$,2,5 -S8 keywords.gperf > keywo=
rds.c
cc -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing    -c -o keywor=
ds.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.

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



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