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

"Thomas Klausner via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <[email protected]>
The following reply was made to PR pkg/60017; it has been noted by GNATS.

From: Thomas Klausner <[email protected]>
To: NetBSD bugtracking <[email protected]>
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, [email protected] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.