[blfs] branch trunk updated: protobuf-c: Fixed building with GCC 16

"Git Owner" ([email protected] via blfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.beyond.book
Message-ID <177879020924.11306.2733918760890574322@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository blfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new 8ecf0e7040 protobuf-c: Fixed building with GCC 16
8ecf0e7040 is described below

commit 8ecf0e704003a24e2f491e46899846ef7ed1754f
Author: Douglas R. Reno <[email protected]>
AuthorDate: Thu May 14 15:18:50 2026 -0500

    protobuf-c: Fixed building with GCC 16
    
    When configuring the package with GCC 16, I got:
    
    checking for google/protobuf/compiler/command_line_interface.h... no
    configure: error: required protobuf header file not found
    
    I double checked that the file was installed and present, and dug into
    config.log. I discovered dozens of errors out of abseil-cpp, which
    seemed odd because I built Qt just fine with protobuf support. I noticed
    that it was forcibly enabling C++17 instead of C++20. I created a test
    file to experiment where I just included that header file, and it only
    built if I used c++20 or later (which is default now). If I set it to
    use c++17, the same error occurs.
    
    Running an autoreconf didn't help in this case.
    
    Let's work around this for now by forcing the configure script to use
    c++20.
---
 general/genlib/protobuf-c.xml      | 2 +-
 introduction/welcome/changelog.xml | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/general/genlib/protobuf-c.xml b/general/genlib/protobuf-c.xml
index 0c1504dcc7..75d29f4aa3 100644
--- a/general/genlib/protobuf-c.xml
+++ b/general/genlib/protobuf-c.xml
@@ -98,7 +98,7 @@
       commands:
     </para>
 
-<screen><userinput>./configure --prefix=/usr --disable-static &amp;&amp;
+<screen><userinput>CXXFLAGS+=" -std=c++20" ./configure --prefix=/usr --disable-static &amp;&amp;
 make</userinput></screen>
 
     <para>
diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml
index d2e589f6bb..9c1505e7af 100644
--- a/introduction/welcome/changelog.xml
+++ b/introduction/welcome/changelog.xml
@@ -42,6 +42,9 @@
     <listitem>
       <para>May 14th, 2026</para>
       <itemizedlist>
+        <listitem>
+          <para>[renodr] - Fixed compiling protobuf-c with GCC 16.</para>
+        </listitem>
         <listitem>
           <para>[jlocash] - Update to gnupg-2.5.20 (Security Update). Fixes
           <ulink url="&blfs-ticket-root;23292">#23292</ulink>.</para>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-book
Unsubscribe: See the above information page
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.