mdhender / cook

Peter Miller's cook
GNU General Public License v3.0
7 stars 4 forks source link

Test 77a fails on Ubuntu 20.04 #18

Open mdhender opened 2 years ago

mdhender commented 2 years ago

Tests 56a has warnings and test77a fails on Ubuntu 20.04.

mdhender@STORM:~/src/cook/src$ make sure
PATH=`pwd`/bin:$PATH /bin/sh test/00/t0001a.sh
. . .
PATH=`pwd`/bin:$PATH /bin/sh test/00/t0056a.sh
test.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){exit(42);}
      | ^~~~
test.c: In function 'main':
test.c:1:8: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | main(){exit(42);}
      |        ^~~~
test.c:1:8: warning: incompatible implicit declaration of built-in function 'exit'
test.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | main(){exit(42);}
bl/test.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){exit(42);}
      | ^~~~
bl/test.c: In function 'main':
bl/test.c:1:8: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | main(){exit(42);}
      |        ^~~~
bl/test.c:1:8: warning: incompatible implicit declaration of built-in function 'exit'
bl/test.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | main(){exit(42);}
test.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | main(){exit(0);}
      | ^~~~
test.c: In function 'main':
test.c:1:8: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | main(){exit(0);}
      |        ^~~~
test.c:1:8: warning: incompatible implicit declaration of built-in function 'exit'
test.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | main(){exit(0);}
PATH=`pwd`/bin:$PATH /bin/sh test/00/t0057a.sh
. . .
PATH=`pwd`/bin:$PATH /bin/sh test/00/t0077a.sh
This should never happen.
cook: test: not done because of errors
FAILED test of the archive long name functionality
make: *** [Makefile:3338: t0077a] Error 1