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

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

From: Marcin Gondek <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]"
	<[email protected]>, "[email protected]" <[email protected]>,
	"[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: RE: pkg/60138: protobuf-34.1 is not compiling on AMD64 for me.
Date: Sat, 28 Mar 2026 14:34:00 +0000

 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:=20
 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  annoy=
 ing due to no NetBSD release yet including it (not even the  upcoming NetBS=
 D 11 release).
 =20
  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 tho=
 ught that protobuf requires c++17, not later.
 =20
  Kind regards,
  + Kimmo
 =20
  Index: Makefile
  =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  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=3D	https://github.com/protocolbuf
   COMMENT=3D	Google protocol buffers
   LICENSE=3D	modified-bsd
  =20
  -USE_CXX_FEATURES=3D	c++17
  +USE_CXX_FEATURES=3D	c++23
   USE_LANGUAGES=3D		c c++
  -FORCE_CXX_STD=3D		c++17
  +FORCE_CXX_STD=3D		c++23
  =20
   CMAKE_CONFIGURE_ARGS+=3D	-Dprotobuf_ABSL_PROVIDER=3Dpackage
   # FIXME: Currently libupd makes net/grpc build fail.
 =20
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.