Bug 1221683 - GCC 14: certmonger package fails
Summary: GCC 14: certmonger package fails
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 11:17 UTC by Michal Jireš
Modified: 2024-05-31 19:58 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Jireš 2024-03-19 11:17:55 UTC
Building certmonger with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/certmonger/standard/x86_64

Due to (exhaustive list of errors):

tdbusm.c: In function ‘cm_tdbusm_get_vn’:
tdbusm.c:244:28: error: assignment to ‘long int’ from ‘int64_t *’ {aka ‘long int *’} makes integer from pointer without a cast [-Wint-conversion]
  244 |                         *n = i64;
      |                            ^


util-o.c: In function ‘util_public_EVP_PKEY_dup’:
util-o.c:593:40: error: passing argument 2 of ‘util_EVP_PKEY_dup’ from incompatible pointer type [-Wincompatible-pointer-types]
  593 |         return util_EVP_PKEY_dup(pkey, i2d_PublicKey, d2i_PublicKey);
      |                                        ^~~~~~~~~~~~~
      |                                        |
      |                                        int (*)(const EVP_PKEY *, unsigned char **) {aka int (*)(const struct evp_pkey_st *, unsigned char **)}
util-o.c:554:25: note: expected ‘int (*)(EVP_PKEY *, unsigned char **)’ {aka ‘int (*)(struct evp_pkey_st *, unsigned char **)’} but argument is of type ‘int (*)(const EVP_PKEY *, unsigned char **)’ {aka ‘int (*)(const struct evp_pkey_st *, unsigned char **)’}
  554 |                   int (*i2d)(EVP_PKEY *, unsigned char **),
      |                   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
util-o.c: In function ‘util_private_EVP_PKEY_dup’:
util-o.c:599:40: error: passing argument 2 of ‘util_EVP_PKEY_dup’ from incompatible pointer type [-Wincompatible-pointer-types]
  599 |         return util_EVP_PKEY_dup(pkey, i2d_PrivateKey, d2i_PrivateKey);
      |                                        ^~~~~~~~~~~~~~
      |                                        |
      |                                        int (*)(const EVP_PKEY *, unsigned char **) {aka int (*)(const struct evp_pkey_st *, unsigned char **)}


See the meta bug#1220571 for more info.
Comment 1 Martin Jambor 2024-05-31 18:47:50 UTC
We probably need https://pagure.io/certmonger/pull-request/265#request_diff
Comment 2 Martin Jambor 2024-05-31 19:58:04 UTC
I have submitted https://build.opensuse.org/request/show/1177983