Bug#1066209: aprsdigi: FTBFS: libax25ext.c:101:7: error: implicit declaration of function ‘ax25_aton_entry’ [-Werror=implicit-function-declaration]
Source: aprsdigi
Version: 3.10.0-5
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):
> gcc -DPACKAGE_NAME=\"aprsdigi\" -DPACKAGE_TARNAME=\"aprsdigi\" -DPACKAGE_VERSION=\"3.10.0\" -DPACKAGE_STRING=\"aprsdigi\ 3.10.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"aprsdigi\" -DVERSION=\"3.10.0\" -DHAVE_LIBAX25=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DIPV6=1 -DRETSIGTYPE=void -DHAVE_WAIT3=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRTOL=1 -DHAVE_UNAME=1 -DHAVE_SHMCTL=1 -DUSE_SHM=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o aprsmon.o aprsmon.c
> libax25ext.c: In function ‘parse_cooked_ax25’:
> libax25ext.c:101:7: error: implicit declaration of function ‘ax25_aton_entry’ [-Werror=implicit-function-declaration]
> 101 | ax25_aton_entry(*frame,calls->ax_from_call.ax25_call);
> | ^~~~~~~~~~~~~~~
> fiforead.c:23:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
> 23 | main(int argc, char **argv)
> | ^~~~
> gcc -DPACKAGE_NAME=\"aprsdigi\" -DPACKAGE_TARNAME=\"aprsdigi\" -DPACKAGE_VERSION=\"3.10.0\" -DPACKAGE_STRING=\"aprsdigi\ 3.10.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"aprsdigi\" -DVERSION=\"3.10.0\" -DHAVE_LIBAX25=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DIPV6=1 -DRETSIGTYPE=void -DHAVE_WAIT3=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRTOL=1 -DHAVE_UNAME=1 -DHAVE_SHMCTL=1 -DUSE_SHM=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o aprsshm.o aprsshm.c
> testparse.c:28:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
> 28 | main()
> | ^~~~
> testparse.c: In function ‘main’:
> testparse.c:52:33: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘unsigned char *’ [-Wformat=]
> 52 | fprintf(stderr,"data @0x%0x (len %d): %s\n",bp,buflen,bp);
> | ~~^ ~~
> | | |
> | unsigned int unsigned char *
> | %0hhn
> testparse.c:57:34: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘unsigned char *’ [-Wformat=]
> 57 | fprintf(stderr,"cooked@0x%0x (len %d): %s\n",obuf,olen,obuf);/* ?? */
> | ~~^ ~~~~
> | | |
> | unsigned int unsigned char *
> | %0hhn
> testparse.c:58:33: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘unsigned char *’ [-Wformat=]
> 58 | fprintf(stderr,"data @0x%0x (len %d): %s\n", bp, buflen, bp);
> | ~~^ ~~
> | | |
> | unsigned int unsigned char *
> | %0hhn
> gcc -DPACKAGE_NAME=\"aprsdigi\" -DPACKAGE_TARNAME=\"aprsdigi\" -DPACKAGE_VERSION=\"3.10.0\" -DPACKAGE_STRING=\"aprsdigi\ 3.10.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"aprsdigi\" -DVERSION=\"3.10.0\" -DHAVE_LIBAX25=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DIPV6=1 -DRETSIGTYPE=void -DHAVE_WAIT3=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRTOL=1 -DHAVE_UNAME=1 -DHAVE_SHMCTL=1 -DUSE_SHM=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o aprsdigi.o aprsdigi.c
> testmcast.c:34:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
> 34 | main(int argc,char **argv)
> | ^~~~
> testmcast.c: In function ‘main’:
> testmcast.c:57:27: error: implicit declaration of function ‘inet_addr’; did you mean ‘ifr_addr’? [-Werror=implicit-function-declaration]
> 57 | sin.sin_addr.s_addr = inet_addr(name);
> | ^~~~~~~~~
> | ifr_addr
> testmcast.c:145:54: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘fd_set’ [-Wformat=]
> 145 | fprintf(stderr,"before select rsock=%d rmask=0x%0x\n",rsock,rmask);
> | ~~^ ~~~~~
> | | |
> | | fd_set
> | unsigned int
> testmcast.c:152:44: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘fd_set’ [-Wformat=]
> 152 | fprintf(stderr,"after select rmask=0x%0x\n",rmask);
> | ~~^ ~~~~~
> | | |
> | | fd_set
> | unsigned int
> fifowrite.c:23:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
> 23 | main(int argc, char **argv)
> | ^~~~
> aprsmon.c: In function ‘fmt.part.0’:
> aprsmon.c:306:29: warning: ‘%s’ directive writing up to 199 bytes into a region of size between 85 and 94 [-Wformat-overflow=]
> 306 | sprintf(buf2,"%s>%s%s:%s",from,"APRS",digis,mic2);
> | ^~ ~~~~
> In file included from /usr/include/stdio.h:906,
> from aprsmon.c:57:
> In function ‘sprintf’,
> inlined from ‘fmt.part.0’ at aprsmon.c:306:7:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 7 or more bytes (assuming 215) into a destination of size 100
> 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 31 | __glibc_objsize (__s), __fmt,
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 32 | __va_arg_pack ());
> | ~~~~~~~~~~~~~~~~~
> /usr/bin/groff -mandoc -Thtml aprsdigi.8 >aprsdigi.html
> aprsdigi.c: In function ‘calltab_entry’:
> aprsdigi.c:549:13: error: implicit declaration of function ‘ax25_cmp’ [-Werror=implicit-function-declaration]
> 549 | || (ax25_cmp(c->callsign,callsign) == 0)) {
> | ^~~~~~~~
> /usr/bin/groff -mandoc -Thtml aprsmon.8 >aprsmon.html
> aprsdigi.c: In function ‘unproto’:
> aprsdigi.c:861:10: error: implicit declaration of function ‘ax25_aton’ [-Werror=implicit-function-declaration]
> 861 | return ax25_aton(buf,calls);
> | ^~~~~~~~~
> aprsdigi.c: In function ‘parsecalls’:
> aprsdigi.c:876:9: error: implicit declaration of function ‘ax25_aton_entry’ [-Werror=implicit-function-declaration]
> 876 | if (ax25_aton_entry(cp,calls[i].ax25_call) < 0)
> | ^~~~~~~~~~~~~~~
> aprsdigi.c: In function ‘print_dupes’:
> aprsdigi.c:1176:32: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘struct pkt *’ [-Wformat=]
> 1176 | fprintf(stderr,"dupe @ 0x%0x: prev->0x%0x next->0x%0x time %d len %d\n",
> | ~~^
> | |
> | unsigned int
> 1177 | p,p->prev,p->next,p->t,p->l);
> | ~
> | |
> | struct pkt *
> aprsdigi.c:1176:46: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘struct pkt *’ [-Wformat=]
> 1176 | fprintf(stderr,"dupe @ 0x%0x: prev->0x%0x next->0x%0x time %d len %d\n",
> | ~~^
> | |
> | unsigned int
> 1177 | p,p->prev,p->next,p->t,p->l);
> | ~~~~~~~
> | |
> | struct pkt *
> aprsdigi.c:1176:59: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘struct pkt *’ [-Wformat=]
> 1176 | fprintf(stderr,"dupe @ 0x%0x: prev->0x%0x next->0x%0x time %d len %d\n",
> | ~~^
> | |
> | unsigned int
> 1177 | p,p->prev,p->next,p->t,p->l);
> | ~~~~~~~
> | |
> | struct pkt *
> aprsdigi.c:1176:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
> 1176 | fprintf(stderr,"dupe @ 0x%0x: prev->0x%0x next->0x%0x time %d len %d\n",
> | ~^
> | |
> | int
> | %ld
> 1177 | p,p->prev,p->next,p->t,p->l);
> | ~~~~
> | |
> | time_t {aka long int}
> aprsdigi.c: In function ‘sked_id’:
> aprsdigi.c:1356:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
> 1356 | fprintf(stderr,"next ID for %s in %d seconds\n",ID_next->port, when);
> | ~^ ~~~~
> | | |
> | int time_t {aka long int}
> | %ld
> aprsdigi.c: In function ‘do_port_udp’:
> aprsdigi.c:1891:75: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘struct addrinfo *’ [-Wformat=]
> 1891 | fprintf(stderr,"UDP address info: family %d type %d proto %d next 0x%0x\n",
> | ~~^
> | |
> | unsigned int
> 1892 | ai->ai_family,ai->ai_socktype,ai->ai_protocol,ai->ai_next);
> | ~~~~~~~~~~~
> | |
> | struct addrinfo *
> aprsdigi.c: In function ‘printaddr’:
> aprsdigi.c:2339:5: error: implicit declaration of function ‘inet_ntop’ [-Werror=implicit-function-declaration]
> 2339 | inet_ntop(sin->sin_family,&sin->sin_addr, buf, buflen);
> | ^~~~~~~~~
> cc1: some warnings being treated as errors
> make[1]: *** [Makefile:526: testmcast.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/03/13/aprsdigi_3.10.0-5_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: