• Bug#1066623: daemontools: FTBFS: pathexec_run.c:18:5: error: implicit d

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 14:20:04 2024
    Source: daemontools
    Version: 1:0.76-9
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.

    This is most likely caused by a change in dpkg 1.22.6, that enabled -Werror=implicit-function-declaration. For more information, see https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

    Relevant part (hopefully):
    make[2]: Entering directory '/<<PKGBUILDDIR>>/daemontools-0.76/compile'
    sh find-systype.sh > systype
    rm -f compile
    sh print-cc.sh > compile
    chmod 555 compile
    ./compile byte_chr.c
    ./compile byte_copy.c
    ./compile byte_cr.c
    ./compile byte_diff.c
    ./compile byte_rchr.c
    ./compile fmt_uint.c
    ./compile fmt_uint0.c
    ./compile fmt_ulong.c
    rm -f makelib
    sh print-ar.sh > makelib
    chmod 555 makelib
    ./compile scan_ulong.c
    ./compile str_chr.c
    ./compile str_diff.c
    ./compile str_len.c
    ./compile str_start.c
    ./makelib byte.a byte_chr.o byte_copy.o byte_cr.o byte_diff.o \
    byte_rchr.o fmt_uint.o fmt_uint0.o fmt_ulong.o scan_ulong.o str_chr.o \ str_diff.o str_len.o str_start.o
    rm -f choose
    cat warn-auto.sh choose.sh \
    | sed s}HOME}"`head -1 home`"}g \
    choose
    chmod 555 choose
    ./choose c trydrent direntry.h1 direntry.h2 > direntry.h
    ./compile envdir.c
    rm -f load
    sh print-ld.sh > load
    chmod 555 load
    ./compile alloc.c
    ./compile alloc_re.c
    ./compile buffer.c
    ./compile buffer_0.c
    ./compile buffer_1.c
    ./compile buffer_2.c
    ./compile buffer_get.c
    ./compile buffer_put.c
    ./compile buffer_read.c
    ./compile buffer_write.c
    ./compile coe.c
    ./compile env.c
    ./compile error.c
    ./compile error_str.c
    ./compile fd_copy.c
    ./compile fd_move.c
    ./choose cl trymkffo hasmkffo.h1 hasmkffo.h2 > hasmkffo.h
    ./compile fifo.c
    ./choose cl tryflock hasflock.h1 hasflock.h2 > hasflock.h
    ./compile lock_ex.c
    ./compile lock_exnb.c
    ./compile ndelay_off.c
    ./compile ndelay_on.c
    ./compile open_append.c
    ./compile open_read.c
    ./compile open_trunc.c
    ./compile open_write.c
    ./compile openreadclose.c
    ./compile pathexec_env.c
    ./compile pathexec_run.c
    pathexec_run.c: In function ‘pathexec_run’:
    pathexec_run.c:18:5: error: implicit declaration of function ‘execve’ [-Werror=implicit-function-declaration]
    18 | execve(file,argv,envp);
    | ^~~~~~
    pathexec_run.c:18:17: warning: passing argument 2 of ‘execve’ from incompatible pointer type [-Wincompatible-pointer-types]
    18 | execve(file,argv,envp);
    | ^~~~
    | |
    | const char * const*
    pathexec_run.c:18:17: note: expected ‘char * const*’ but argument is of type ‘const char * const*’
    pathexec_run.c:18:22: warning: passing argument 3 of ‘execve’ from incompatible pointer type [-Wincompatible-pointer-types]
    18 | execve(file,argv,envp);
    | ^~~~
    | |
    | const char * const*
    pathexec_run.c:18:22: note: expected ‘char * const*’ but argument is of type ‘const char * const*’
    pathexec_run.c:35:18: warning: passing argument 2 of ‘execve’ from incompatible pointer type [-Wincompatible-pointer-types]
    35 | execve(tmp.s,argv,envp);
    | ^~~~
    | |
    | const char * const*
    pathexec_run.c:35:18: note: expected ‘char * const*’ but argument is of type ‘const char * const*’
    pathexec_run.c:35:23: warning: passing argument 3 of ‘execve’ from incompatible pointer type [-Wincompatible-pointer-types]
    35 | execve(tmp.s,argv,envp);
    | ^~~~
    | |
    | const char * const*
    pathexec_run.c:35:23: note: expected ‘char * const*’ but argument is of type ‘const char * const*’
    cc1: some warnings being treated as errors
    make[2]: *** [Makefile:244: pathexec_run.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/daemontools_0.76-9_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

    If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Mar 30 13:00:01 2024
    This is a multi-part message in MIME format...

    Your message dated Sat, 30 Mar 2024 11:50:01 +0000
    with message-id <E1rqXDl-002iLp-Bm@fasolo.debian.org>
    and subject line Bug#1066623: fixed in daemontools 1:0.76-10
    has caused the Debian Bug report #1066623,
    regarding daemontools: FTBFS: pathexec_run.c:18:5: error: implicit declaration of function ‘execve’ [-Werror=implicit-function-declaration]
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


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

    Received: (at submit) by bugs.debian.org; 13 Mar 2024 13:14:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-106.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    FROMDEVELOPER,FVGT_m_MULTI_ODD,SPF_HELO_NONE,SPF_NONE,
    T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 134; hammy, 150; neutral, 244; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:108, 0.000-+--H*RT:311
    Return-path: <lucas@debian.org>
    Received: from stravin