Control: tags -1 patch

On Wed, Jul 03, 2024 at 12:32:51PM +0000, Matthias Klose wrote:
> [...]
> The package fails to build in a test rebuild on at least amd64 with
> gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
> severity of this report will be raised before the trixie release.
> 
> The full build log can be found at:
> http://qa-logs.debian.net/2024/07/01/libcddb_1.3.2-7_unstable_gccexp.log
> The last lines of the build log are at the end of this report.
> [...]
> cddb_net.c: In function ‘timeout_connect’:
> cddb_net.c:332:63: error: passing argument 5 of ‘getsockopt’ from 
> incompatible pointer type [-Wincompatible-pointer-types]
>   332 |                 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/x86_64-linux-gnu/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;
>       |                        ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
> make[3]: *** [Makefile:465: cddb_net.lo] Error 1
> [...]

Just confirmed: the patch at
<https://src.fedoraproject.org/rpms/libcddb/blob/rawhide/f/pointer-types.patch>
or
<https://gitweb.gentoo.org/repo/gentoo.git/tree/media-libs/libcddb/files/libcddb-1.3.2-c99.patch>
fixes this.

HTH,
Flo

Attachment: signature.asc
Description: PGP signature

Reply via email to