[Debian-astro-maintainers] Bug#1077182: xpa: autopkgtest failure with GCC-14

Graham Inggs ginggs at debian.org
Fri Jul 26 13:52:55 BST 2024


Source: xpa
Version: 2.1.20-1
Severity: serious

Hi Maintainer

xpa's autopkgtests fail when tested with GCC-14 as the default [1].
I've copied what I hope is the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/x/xpa/testing/amd64/


22s autopkgtest [08:18:35]: test xpa-test-ci: [-----------------------
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c: In
function ‘send_cb’:
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:97:10:
error: implicit declaration of function ‘strncmp’
[-Wimplicit-function-declaration]
22s 97 | if( !strncmp(paramlist, "buf", 3) ){
22s | ^~~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:11:1:
note: include ‘<string.h>’ or provide a declaration of ‘strncmp’
22s 10 | #include <xpap.h>
22s +++ |+#include <string.h>
22s 11 |
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:97:36:
warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’
is expected in a call to built-in function declared without prototype
[-Wbuiltin-declaration-mismatch]
22s 97 | if( !strncmp(paramlist, "buf", 3) ){
22s | ^
22s <built-in>: note: built-in ‘strncmp’ declared here
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:100:15:
error: implicit declaration of function ‘strcmp’
[-Wimplicit-function-declaration]
22s 100 | else if( !strcmp(paramlist, "free") ){
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:100:15:
note: include ‘<string.h>’ or provide a declaration of ‘strcmp’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:123:7:
error: implicit declaration of function ‘exit’
[-Wimplicit-function-declaration]
22s 123 | exit(0);
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:11:1:
note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
22s 10 | #include <xpap.h>
22s +++ |+#include <stdlib.h>
22s 11 |
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:123:7:
warning: incompatible implicit declaration of built-in function ‘exit’
[-Wbuiltin-declaration-mismatch]
22s 123 | exit(0);
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:123:7:
note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:125:43:
warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’
is expected in a call to built-in function declared without prototype
[-Wbuiltin-declaration-mismatch]
22s 125 | else if( !strncmp(paramlist, "error", 5) ){
22s | ^
22s <built-in>: note: built-in ‘strncmp’ declared here
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:130:11:
error: implicit declaration of function ‘strlen’
[-Wimplicit-function-declaration]
22s 130 | if( strlen(paramlist) > 6 )
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:130:11:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:130:11:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:130:11:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:149:43:
warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’
is expected in a call to built-in function declared without prototype
[-Wbuiltin-declaration-mismatch]
22s 149 | else if( !strncmp(paramlist, "fork ", 5) ){
22s | ^
22s <built-in>: note: built-in ‘strncmp’ declared here
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:151:11:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s 151 | if( strlen(paramlist) > 5 ){
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:151:11:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:154:14:
error: implicit declaration of function ‘fork’
[-Wimplicit-function-declaration]
22s 154 | if(!(fork())){
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:155:11:
error: implicit declaration of function ‘system’
[-Wimplicit-function-declaration]
22s 155 | system(&paramlist[5]);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:157:11:
warning: incompatible implicit declaration of built-in function ‘exit’
[-Wbuiltin-declaration-mismatch]
22s 157 | exit(0);
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:157:11:
note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:183:11:
error: implicit declaration of function ‘write’; did you mean
‘fwrite’? [-Wimplicit-function-declaration]
22s 183 | write(fileno(stdout), errs[i], strlen(errs[i]));
22s | ^~~~~
22s | fwrite
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:183:42:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s 183 | write(fileno(stdout), errs[i], strlen(errs[i]));
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:183:42:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:207:35:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s 207 | send(xpa_datafd(xpa), tbuf, strlen(tbuf), 0);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:207:35:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:216:14:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s 216 | *len = strlen(tbuf);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:216:14:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:218:7:
error: implicit declaration of function ‘memcpy’
[-Wimplicit-function-declaration]
22s 218 | memcpy(*buf, tbuf, *len);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:218:7:
note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:218:7:
warning: incompatible implicit declaration of built-in function
‘memcpy’ [-Wbuiltin-declaration-mismatch]
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:218:7:
note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:238:7:
warning: incompatible implicit declaration of built-in function
‘memcpy’ [-Wbuiltin-declaration-mismatch]
22s 238 | memcpy(*buf, save_buf, *len);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:238:7:
note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c: In
function ‘receive_cb’:
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:312:7:
warning: incompatible implicit declaration of built-in function ‘exit’
[-Wbuiltin-declaration-mismatch]
22s 312 | exit(0);
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:312:7:
note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:314:43:
warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’
is expected in a call to built-in function declared without prototype
[-Wbuiltin-declaration-mismatch]
22s 314 | else if( !strncmp(paramlist, "error", 5) ){
22s | ^
22s <built-in>: note: built-in ‘strncmp’ declared here
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:317:11:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s 317 | if( strlen(paramlist) > 6 )
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:317:11:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:336:43:
warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’
is expected in a call to built-in function declared without prototype
[-Wbuiltin-declaration-mismatch]
22s 336 | else if( !strncmp(paramlist, "fork ", 5) ){
22s | ^
22s <built-in>: note: built-in ‘strncmp’ declared here
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:338:11:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s 338 | if( strlen(paramlist) > 5 ){
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:338:11:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:344:11:
warning: incompatible implicit declaration of built-in function ‘exit’
[-Wbuiltin-declaration-mismatch]
22s 344 | exit(0);
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:344:11:
note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:352:44:
warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’
is expected in a call to built-in function declared without prototype
[-Wbuiltin-declaration-mismatch]
22s 352 | else if( !strncmp(paramlist, "xpaset", 6) ){
22s | ^
22s <built-in>: note: built-in ‘strncmp’ declared here
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:360:33:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s 360 | paramlist, strlen(paramlist), NULL, errs, 1);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:360:33:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:405:9:
warning: incompatible implicit declaration of built-in function
‘memcpy’ [-Wbuiltin-declaration-mismatch]
22s 405 | memcpy(&save_buf[i], tbuf, got);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:405:9:
note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:419:5:
warning: incompatible implicit declaration of built-in function
‘memcpy’ [-Wbuiltin-declaration-mismatch]
22s 419 | memcpy(save_buf, buf, len);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:419:5:
note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c: In
function ‘info_cb’:
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:482:42:
warning: incompatible implicit declaration of built-in function
‘strlen’ [-Wbuiltin-declaration-mismatch]
22s 482 | write(fileno(stdout), errs[i], strlen(errs[i]));
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:482:42:
note: include ‘<string.h>’ or provide a declaration of ‘strlen’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c: In
function ‘main’:
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:533:15:
error: implicit declaration of function ‘getopt’; did you mean
‘gethost’? [-Wimplicit-function-declaration]
22s 533 | while ((c = getopt(argc, argv, "1ad:f:mqrRp:suwxX")) != -1){
22s | ^~~~~~
22s | gethost
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:542:15:
error: implicit declaration of function ‘atoi’
[-Wimplicit-function-declaration]
22s 542 | delay = atoi(optarg);
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:583:5:
error: implicit declaration of function ‘strcpy’
[-Wimplicit-function-declaration]
22s 583 | strcpy(name, "xpa");
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:583:5:
note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:583:5:
warning: incompatible implicit declaration of built-in function
‘strcpy’ [-Wbuiltin-declaration-mismatch]
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:583:5:
note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:586:5:
warning: incompatible implicit declaration of built-in function
‘strcpy’ [-Wbuiltin-declaration-mismatch]
22s 586 | strcpy(name, argv[optind]);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:586:5:
note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:588:3:
warning: incompatible implicit declaration of built-in function
‘strcpy’ [-Wbuiltin-declaration-mismatch]
22s 588 | strcpy(xclass, name);
22s | ^~~~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:588:3:
note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:596:5:
warning: incompatible implicit declaration of built-in function ‘exit’
[-Wbuiltin-declaration-mismatch]
22s 596 | exit(1);
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:596:5:
note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:728:3:
warning: incompatible implicit declaration of built-in function ‘exit’
[-Wbuiltin-declaration-mismatch]
22s 728 | exit(got);
22s | ^~~~
22s /tmp/autopkgtest-lxc.tn47rn7_/downtmp/build.AY4/src/stest.c:728:3:
note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
22s autopkgtest [08:18:35]: test xpa-test-ci: -----------------------]



More information about the Debian-astro-maintainers mailing list