[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1066658: sup: FTBFS: scm.c:316:9: error: implicit declaration of function ‘setproctitle’ [-Werror=implicit-function-declaration]



Source: sup
Version: 20100519-3
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):
> cc -UCMUCS -UCMU  -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR -DNEED_SETPROCTITLE -DLIBWRAP -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o stree.o stree.c
> scm.c: In function ‘service’:
> scm.c:316:9: error: implicit declaration of function ‘setproctitle’ [-Werror=implicit-function-declaration]
>   316 |         setproctitle("Serving %s", remotehost());
>       |         ^~~~~~~~~~~~
> scm.c: In function ‘request’:
> scm.c:448:16: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   448 |         (void) write(netfile, &x, sizeof(int));
>       |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> scmio.c: In function ‘readfile’:
> scmio.c:670:32: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   670 |                         (void) write(f, buf, (size_t)XFERSIZE(count));
>       |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> scmio.c: In function ‘crosspatch’:
> scmio.c:743:40: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   743 |                                 (void) write(1, buf, (size_t)c);
>       |                                        ^~~~~~~~~~~~~~~~~~~~~~~~
> scmio.c:753:40: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   753 |                                 (void) write(netfile, buf, (size_t)c);
>       |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> supcmeat.c: In function ‘setup’:
> supcmeat.c:321:24: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   321 |                 (void) chdir(thisC->Cbase);
>       |                        ^~~~~~~~~~~~~~~~~~~
> supcmeat.c: In function ‘listfiles’:
> supcmeat.c:522:24: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   522 |                 (void) chdir(thisC->Cprefix);
>       |                        ^~~~~~~~~~~~~~~~~~~~~
> supcmeat.c: In function ‘recvdir’:
> supcmeat.c:889:24: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   889 |                 (void) chown(t->Tname, t->Tuid, t->Tgid);
>       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> supcmeat.c: In function ‘recvreg’:
> supcmeat.c:968:32: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   968 |                         (void) chown(t->Tname, t->Tuid, t->Tgid);
>       |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> supcmeat.c:1030:24: warning: ignoring return value of ‘chown’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>  1030 |                 (void) chown(t->Tname, t->Tuid, t->Tgid);
>       |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> supcmeat.c: In function ‘copyfile’:
> supcmeat.c:1152:32: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>  1152 |                         (void) chdir(thisC->Cbase);
>       |                                ^~~~~~~~~~~~~~~~~~~
> supcmeat.c:1157:40: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>  1157 |                                 (void) chdir(thisC->Cprefix);
>       |                                        ^~~~~~~~~~~~~~~~~~~~~
> supcmeat.c:1164:32: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>  1164 |                         (void) chdir(thisC->Cprefix);
>       |                                ^~~~~~~~~~~~~~~~~~~~~
> supcmeat.c: In function ‘finishup’:
> supcmeat.c:1397:24: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>  1397 |                 (void) chdir(thisC->Cbase);
>       |                        ^~~~~~~~~~~~~~~~~~~
> supcmain.c: In function ‘init’:
> supcmain.c:734:47: warning: ‘%s’ directive writing up to 1999 bytes into a region of size 1995 [-Wformat-overflow=]
>   734 |                 (void) sprintf(p = buf, "file %s", supfname);
>       |                                               ^~
> In file included from /usr/include/stdio.h:906,
>                  from libc.h:85,
>                  from supcdefs.h:59,
>                  from supcmain.c:320:
> In function ‘sprintf’,
>     inlined from ‘init’ at supcmain.c:734:10:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 6 and 2005 bytes into a destination of size 2000
>    30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    31 |                                   __glibc_objsize (__s), __fmt,
>       |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    32 |                                   __va_arg_pack ());
>       |                                   ~~~~~~~~~~~~~~~~~
> supcmisc.c: In function ‘notify’:
> supcmisc.c:293:69: warning: ‘%s’ directive output may be truncated writing up to 1999 bytes into a region of size 1972 [-Wformat-truncation=]
>   293 |                                     "mail -s \"SUP Upgrade of %s on %s\" %s >"
>       |                                                                     ^~
>   294 |                                     " /dev/null", collrelname, hostname,
>       |                                                                ~~~~~~~~
> In file included from /usr/include/stdio.h:906,
>                  from libc.h:85,
>                  from supcdefs.h:59,
>                  from supcmisc.c:51:
> In function ‘snprintf’,
>     inlined from ‘notify’ at supcmisc.c:292:12:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output 43 or more bytes (assuming 2042) into a destination of size 2000
>    54 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    55 |                                    __glibc_objsize (__s), __fmt,
>       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>    56 |                                    __va_arg_pack ());
>       |                                    ~~~~~~~~~~~~~~~~~
> cc -UCMUCS -UCMU  -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR -DNEED_SETPROCTITLE -DLIBWRAP -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o log.o log.c
> cc -UCMUCS -UCMU  -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR -DNEED_SETPROCTITLE -DLIBWRAP -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o supmsg.o supmsg.c
> [ Using netcryptvoid.c ]
> cp netcryptvoid.c netcrypt.c
> cc -UCMUCS -UCMU  -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR -DNEED_SETPROCTITLE -DLIBWRAP -I. -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2  -c -o atoo.o atoo.c
> cc1: some warnings being treated as errors
> make[2]: *** [<builtin>: scm.o] Error 1


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


Reply to: