Bug 1221698 - GCC 14: libcddb package fails
Summary: GCC 14: libcddb package fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Network (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Martin Schreiner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 12:06 UTC by Michal Jireš
Modified: 2024-05-16 14:08 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 12:06:52 UTC
Building libcddb with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/libcddb/standard/x86_64

Due to (exhaustive list of errors):

cddb_net.c: In function 'timeout_connect':
cddb_net.c:328:63: error: passing argument 5 of 'getsockopt' from incompatible pointer type [-Wincompatible-pointer-types]
  328 |                 getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &rv, &l);
      |                                                               ^~
      |                                                               |
      |                                                               size_t * {aka long unsigned int *}
In file included from /usr/include/netinet/in.h:23,
                 from ../include/cddb/cddb_conn.h:32,
                 from ../include/cddb/cddb.h:37,
                 from ../include/cddb/cddb_ni.h:58,
                 from cddb_net.c:22:
/usr/include/sys/socket.h:257:46: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
  257 |                        socklen_t *__restrict __optlen) __THROW;
      |                        ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~



See the meta bug#1220571 for more info.
Comment 1 Martin Schreiner 2024-05-15 14:48:28 UTC
I cannot reproduce this issue.

I tried building libcddb from Factory with gcc14 and it worked just fine.
The reported link on the bug also shows the operation as having been successful now.

Does this bug still demand our attention, or may we close it?
Thanks.
Comment 2 Michal Jireš 2024-05-16 14:08:10 UTC
Seems to be already explicitly fixed by https://build.opensuse.org/request/show/1160809

So I will close the issue.
Thanks.