• Bug#1066632: djbdns: FTBFS: hier.c:10:3: error: implicit declaration of

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 14:20:02 2024
    Source: djbdns
    Version: 1:1.05-15
    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[1]: Entering directory '/<<PKGBUILDDIR>>'
    ( cat warn-auto.sh; \
    echo 'main="$1"; shift'; \
    echo exec "`head -1 conf-ld`" \
    '-o "$main" "$main".o ${1+"$@"}' \
    ) > load
    ( cat warn-auto.sh; \
    echo exec "`head -1 conf-cc`" '-c ${1+"$@"}' \
    ) > compile
    ( cat warn-auto.sh; \
    echo CC=\'`head -1 conf-cc`\'; \
    echo LD=\'`head -1 conf-ld`\'; \
    cat find-systype.sh; \
    ) | sh > systype
    cat warn-auto.sh choose.sh \
    | sed s}HOME}"`head -1 conf-home`"}g \
    choose
    chmod 755 load
    chmod 755 compile
    chmod 755 choose
    cat warn-auto.sh dnstracesort.sh \
    | sed s}HOME}"`head -1 conf-home`"}g \
    dnstracesort
    ./compile utime.c
    cat warn-auto.sh rts.sh \
    | sed s}HOME}"`head -1 conf-home`"}g \
    rts
    ./compile install.c
    ./compile hier.c
    ./compile instcheck.c
    chmod 755 dnstracesort
    ( ( ./compile tryulong32.c && ./load tryulong32 && \
    ./tryulong32 ) >/dev/null 2>&1 \
    && cat uint32.h2 || cat uint32.h1 ) > uint32.h
    ./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h
    chmod 755 rts
    ./compile generic-conf.c
    hier.c: In function ‘hier’:
    hier.c:10:3: error: implicit declaration of function ‘h’ [-Werror=implicit-function-declaration]
    10 | h(auto_home,-1,-1,02755);
    | ^
    hier.c:11:3: error: implicit declaration of function ‘d’ [-Werror=implicit-function-declaration]
    11 | d(auto_home,"bin",-1,-1,02755);
    | ^
    hier.c:13:3: error: implicit declaration of function ‘c’ [-Werror=implicit-function-declaration]
    13 | c(auto_home,"bin","dnscache-conf",-1,-1,0755);
    | ^
    utime.c: In function ‘main’:
    utime.c:22:7: error: implicit declaration of function ‘utime’; did you mean ‘utimes’? [-Werror=implicit-function-declaration]
    22 | if (utime(fn,ut) == -1) _exit(111);
    | ^~~~~
    | utimes
    cc1: some warnings being treated as errors
    rm -f tryulong32.o tryulong32
    ./compile auto-str.c
    make[1]: *** [Makefile:1084: utime.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/djbdns_1.05-15_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)