Bug#1075255: matanza: ftbfs with GCC-14
Patrice Duroux
patrice.duroux at gmail.com
Wed Nov 13 20:24:56 GMT 2024
Package: matanza
Version: 0.13+ds2-1
Followup-For: Bug #1075255
Hi,
Here are two patches that solve the build failure on my sid system using
sbuild.
Note that I did not go using autoreconf because it created more troubles to me.
Regards,
Patrice
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12-rc6-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages matanza depends on:
ii libc6 2.40-3
ii libpng16-16t64 1.6.44-2
Versions of packages matanza recommends:
ii inetutils-telnet [telnet-client] 2:2.5-5
ii telnet 0.17+2.5-5
matanza suggests no packages.
-- no debconf information
-------------- next part --------------
--- a/configure
+++ b/configure
@@ -916,7 +916,7 @@
#line 917 "configure"
#include "confdefs.h"
-main(){return(0);}
+int main(){return(0);}
EOF
if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
-------------- next part --------------
--- a/ai.w
+++ b/ai.w
@@ -874,7 +874,7 @@
}
/* Connect to the server. */
- while (connect(fd, &addr, sizeof(struct sockaddr_in)) == -1)
+ while (connect(fd, (struct sockaddr*) &addr, sizeof(struct sockaddr_in)) == -1)
if (errno != EINTR)
{
if (!host || !host->h_addr_list[++i])
More information about the Pkg-games-devel
mailing list