Build failure using libbson 1.30 with GCC 15

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 1.21.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Reported by Fedora CI:

      https://koschei.fedoraproject.org/package/php-pecl-mongodb?collection=f43

      The pecl extension build fails using newer GCC 15 (no issue with 14)

      In above linkyou can see build is faling since libbson 1.30 and GCC update (sadly both were done the same day)

      From build.log

      {{/usr/include/libbson-1.0/bson/bson-macros.h:213:34: error: expected ';' before 'void' 213 | static BSON_INLINE BSON_NORETURN void | ^~~~ /usr/include/libbson-1.0/bson/bson-macros.h:220:34: error: expected ';' before 'void' 220 | static BSON_INLINE BSON_NORETURN void | ^~~~ }}

            Assignee:
            Jeremy Mikola
            Reporter:
            Esha Bhargava
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: