pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/60017: textproc/uni2ascii: update to 4.20



Please add these two patches to solve this issue.

On Thu, Feb 19, 2026 at 12:05 AM Thomas Klausner via gnats <gnats-admin%netbsd.org@localhost> wrote:
The following reply was made to PR pkg/60017; it has been noted by GNATS.

From: Thomas Klausner <wiz%netbsd.org@localhost>
To: NetBSD bugtracking <gnats-bugs%netbsd.org@localhost>
Cc:
Subject: Re: pkg/60017: textproc/uni2ascii: update to 4.20
Date: Thu, 19 Feb 2026 00:01:24 +0100

 On Wed, Feb 18, 2026 at 03:30:01AM +0100, bartosz.kuzma%gmail.com@localhost via gnats wrote:
 > >Synopsis:       textproc/uni2ascii: update to 4.20

 I tried this on NetBSD 11.99.5 with gcc 14, and the build fails for me
 with:

 --- enttbl.o ---
 enttbl.c: In function 'LookupCodeForEntity':
 enttbl.c:560:8: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   560 |     c =strcmp(s,EntityCodeTable[m].name);
       |        ^~~~~~
 enttbl.c:24:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    23 | #include "unicode.h"
   +++ |+#include <string.h>
    24 |
 *** [enttbl.o] Error code 1

 make[1]: stopped making "all-am" in /tmp/textproc/uni2ascii/work/uni2ascii-4.20
 --- endian.o ---
 mv -f .deps/endian.Tpo .deps/endian.Po
 --- uni2ascii.o ---
 uni2ascii.c:2692:1: error: return type defaults to 'int' [-Wimplicit-int]
  2692 | SubstituteChar(UTF32 c) {
       | ^~~~~~~~~~~~~~
 uni2ascii.c:2706:1: error: return type defaults to 'int' [-Wimplicit-int]
  2706 | AddCustomSubstitution(char *str){
       | ^~~~~~~~~~~~~~~~~~~~~
 uni2ascii.c: In function 'main':
 uni2ascii.c:3189:24: error: implicit declaration of function 'putu8' [-Wimplicit-function-declaration]
  3189 |       if(PassThroughP) putu8(c);
       |                        ^~~~~
 *** [uni2ascii.o] Error code 1

 I also tried adding
 CFLAGS+=        -Wno-implicit-function-declaration
 CFLAGS+=        -Wno-implicit-int
 to the pkgsrc Makefile, but the pkgsrc CFLAGS are ignored.

 Can you please take a look at this?

 Thanks,
  Thomas



--
Pozdrawiam, Bartosz Kuźma

Attachment: patch-enttbl.c
Description: Binary data

Attachment: patch-uni2ascii.c
Description: Binary data



Home | Main Index | Thread Index | Old Index