Skip to content

Conversation

@tollsimy
Copy link

When installing jq.py on systems with GCC 15, the following issues appear:

regparse.c: In function ‘onig_st_init_strend_table_with_size’:
      regparse.c:589:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(st_str_end_key *, st_str_end_key *)’ [-Wincompatible-pointer-types]
        589 |     str_end_cmp,
            |     ^~~~~~~~~~~
      regparse.c:589:5: note: (near initialization for ‘hashType.compare’)
      regparse.c:551:1: note: ‘str_end_cmp’ declared here
        551 | str_end_cmp(st_str_end_key* x, st_str_end_key* y)
            | ^~~~~~~~~~~
      regparse.c:590:5: error: initialization of ‘int (*)(void)’ from incompatible pointer type ‘int (*)(st_str_end_key *)’ [-Wincompatible-pointer-types]
        590 |     str_end_hash,
            |     ^~~~~~~~~~~~
      regparse.c:590:5: note: (near initialization for ‘hashType.hash’)
      regparse.c:572:1: note: ‘str_end_hash’ declared here
        572 | str_end_hash(st_str_end_key* x)
            | ^~~~~~~~~~~~
...

This is particularly relevant for Fedora users, since Fedora 42 ships with GCC 15.

oniguruma fixed those errors in v6.9.10.
jq.py uses libjq package, that upgraded oniguruma deps in 1.8.0 jqlang/jq@4350637.

Thus, rebasing on top of https://github.com/mwilliamson/jq.py/tree/1.9.0 or newer fixes the compilation errors.

This PR rebases previous edits on top of upstream jq.py 1.9.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants