• Bug#1067108: alien-arena: FTBFS with -Werror=implicit-function-declarat

    From Andreas Beckmann@21:1/5 to All on Mon Mar 18 15:30:01 2024
    Source: alien-arena
    Version: 7.71.3+dfsg-3
    Severity: serious
    Tags: ftbfs sid trixie
    Justification: fails to build from source (but built successfully in the past)

    Hi,

    alien-arena FTBFS with -Werror=implicit-function-declaration which was
    recently enabled by default in dpkg 1.22.6 to support the 64-bit time_t transition. For more information, see https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

    gcc -DHAVE_CONFIG_H -I. -I../config -DCOR_DATADIR='"/usr/share/alienarena"' -I../source -isystem ../source/unix -Wdate-time -D_FORTIFY_SOURCE=2 -fpic -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/alien-arena-7.71.3+dfsg=. -fstack-
    protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -ffast-math -fno-strict-aliasing -c -o game/libgame_a-g_unlagged.o `test -f 'game/g_unlagged.c' || echo './'`game/g_unlagged.c
    game/g_unlagged.c: In function 'G_TimeShiftClient':
    game/g_unlagged.c:187:25: error: implicit declaration of function 'Cvar_SetValue' [-Werror=implicit-function-declaration]
    187 | Cvar_SetValue( "g_antilagprojectiles", 0);
    | ^~~~~~~~~~~~~


    Andreas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steve Langasek@21:1/5 to All on Tue Apr 9 23:10:01 2024
    This is a multi-part MIME message sent by reportbug.


    Package: alien-arena
    Followup-For: Bug #1067108
    User: ubuntu-devel@lists.ubuntu.com
    Usertags: origin-ubuntu noble ubuntu-patch
    Control: tags -1 patch

    Please find attached a fix for this bug, which has been uploaded to Ubuntu.

    --
    Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer https://www.debian.org/ slangasek@ubuntu.com vorlon@debian.org

    diff -Nru alien-arena-7.71.3+dfsg/debian/patches/no-implicit-declarations.patch alien-arena-7.71.3+dfsg/debian/patches/no-implicit-declarations.patch
    --- alien-arena-7.71.3+dfsg/debian/patches/no-implicit-declarations.patch 1969-12-31 16:00:00.000000000 -0800
    +++ alien-arena-7.71.3+dfsg/debian/patches/no-implicit-declarations.patch 2024-04-09 13:53:07.000000000 -0700
    @@ -0,0 +1,18 @@
    +Description: add missing include
    +Author: Steve Langasek <steve.langasek@canonical.com>
    +Bug-Debian: https://bugs.debian.org/1067108
    +Last-Update: 2024-04-09
    +Forwarded: no
    +
    +Index: alien-arena-7.71.3+dfsg/source/game/g_unlagged.c +===================================================================
    +--- alien-arena-7.71.3+dfsg.orig/source/game/g_unlagged.c
    ++++ alien-arena-7.71.3+dfsg/source/game/g_unlagged.c
    +@@ -21,6 +21,7 @@
    + #include "config.h"
    + #endif
    +
    ++#include "qcommon/qcommon.h"
    + #include "g_local.h"
    +
    + /*
    diff -Nru alien-arena-7.71.3+dfsg/debian/patches/series alien-arena-7.71.3+dfsg/debian/patches/series
    --- alien-arena-7.71.3+dfsg/debian/patches/series 2023-02-12 08:19:19.000000000 -0800
    +++ alien-arena-7.71.3+dfsg/debian/patches/serie
  • From Debian Bug Tracking System@21:1/5 to All on Tue Apr 9 23:10:02 2024
    Processing control commands:

    tags -1 patch
    Bug #1067108 [src:alien-arena] alien-arena: FTBFS with -Werror=implicit-function-declaration
    Added tag(s) patch.

    --
    1067108: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1067108
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)