RE: pkg/60138: protobuf-34.1 is not compiling on AMD64 for me.

Marcin Gondek <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.bugs
Message-ID <AM9PR03MB7993AD75E63BBFB0ED76C9C0F654A@AM9PR03MB7993.eurprd03.prod.outlook.com>
Hi Kim,

Maybe it's worth to back to old version v33.5 or newer in that v33 layout, so v33.6 and not go to v34.1?

Thanks,
--
Marcin Gondek / Drixter
http://fido.e-utp.net/
AS56662

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Kimmo Suominen via gnats
Sent: Saturday, March 28, 2026 2:25 PM
To: [email protected]; [email protected]; [email protected]; Marcin Gondek <[email protected]>
Cc: [email protected]
Subject: Re: pkg/60138: protobuf-34.1 is not compiling on AMD64 for me.

The following reply was made to PR pkg/60138; it has been noted by GNATS.

From: Kimmo Suominen <[email protected]>
To: [email protected]
Cc: 
Subject: Re: pkg/60138: protobuf-34.1 is not compiling on AMD64 for me.
Date: Sat, 28 Mar 2026 15:22:15 +0200

 Looks like it will compile with gcc14, but requiring gcc14 would be  annoying due to no NetBSD release yet including it (not even the  upcoming NetBSD 11 release).
 
 Below is the change I made to test compiling with gcc14, but I'm not  sure if this would be the best (or even correct) approach.  Furthermore,  I thought that protobuf requires c++17, not later.
 
 Kind regards,
 + Kimmo
 
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/devel/protobuf/Makefile,v
 retrieving revision 1.102
 diff -u -p -r1.102 Makefile
 --- Makefile	26 Mar 2026 09:31:53 -0000	1.102
 +++ Makefile	28 Mar 2026 13:19:28 -0000
 @@ -19,9 +19,9 @@ HOMEPAGE=	https://github.com/protocolbuf
  COMMENT=	Google protocol buffers
  LICENSE=	modified-bsd
  
 -USE_CXX_FEATURES=	c++17
 +USE_CXX_FEATURES=	c++23
  USE_LANGUAGES=		c c++
 -FORCE_CXX_STD=		c++17
 +FORCE_CXX_STD=		c++23
  
  CMAKE_CONFIGURE_ARGS+=	-Dprotobuf_ABSL_PROVIDER=package
  # FIXME: Currently libupd makes net/grpc build fail.
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.