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_
libax25ext.c: In function ‘parse_cooked_ax25’: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_
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 -
testparse.c:28:1: warning: return type defaults to ‘int’ [-Wimplicit-int]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_
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 -
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 13:59:12 |
Calls: | 6,706 |
Files: | 12,237 |
Messages: | 5,351,097 |