mdhender / cook Goto Github PK
View Code? Open in Web Editor NEWPeter Miller's cook
License: GNU General Public License v3.0
Peter Miller's cook
License: GNU General Public License v3.0
Peter's website has moved from miller.emu.id.au to petermiller.work
ftp://ftp.ibiblio.org/pub/historic-linux/ftp-archives/sunsite.unc.edu/Sep-29-1996/devel/make/
It's available at http://www.ibiblio.org/pub/Linux/devel/make/!INDEX.short.html
It's available at http://www.cs.cmu.edu/afs/cs/project/clisp/OldFiles/hackers/phg/cook/
It's available at ftp://merseyworld.com/hpux/Development/Tools/cook-2.16/
Compiling on Ubuntu 20.04 gives the following warning:
warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
Seems to be an old issue that's finally catching up to my compiler chain.
https://stackoverflow.com/questions/29201515/what-does-d-default-source-do
I don't know what to do with this. Can anybody point the root of the problem?
gcc -g -O2 -I. -c common/sub/expr_gram.yacc.c
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from ./common/ac/stdio.h:25,
from common/sub/expr_gram.y:23:
/usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
y.tab.c:147:29: error: expected identifier or ‘(’ before numeric constant
common/sub/expr_gram.y:92:1: note: in expansion of macro ‘sub_expr_gram_error’
92 | yyerror(char *s)
| ^~~~~~~~~~~~~~~~
y.tab.c: In function ‘sub_expr_gram_parse’:
y.tab.c:147:29: error: called object is not a function or function pointer
y.tab.c:1338:7: note: in expansion of macro ‘sub_expr_gram_error’
y.tab.c:147:29: error: called object is not a function or function pointer
y.tab.c:1449:3: note: in expansion of macro ‘sub_expr_gram_error’
make: *** [Makefile:769: common/sub/expr_gram.yacc.o] Error 1
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
Actually, a lot of warnings
bison -y -d common/sub/expr_gram.y
common/sub/expr_gram.y:52.19-24: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
52 | %type <lv_number> NUMBER expr
| ^~~~~~
sed -e 's/[yY][yY]/sub_expr_gram_/g' y.tab.c > \
common/sub/expr_gram.yacc.c
sed -e 's/[yY][yY]/sub_expr_gram_/g' y.tab.h > \
common/sub/expr_gram.yacc.h
rm y.tab.c y.tab.h
gcc -D _DEFAULT_SOURCE -g -O2 -I. -c common/sub/expr_gram.yacc.c
bison -y -d cook/builtin/expr_parse.y
cook/builtin/expr_parse.y:51.25-30: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
51 | %type <lv_integer> NUMBER
| ^~~~~~
sed -e 's/[yY][yY]/builtin_expr_parse_/g' y.tab.c > \
cook/builtin/expr_parse.yacc.c
sed -e 's/[yY][yY]/builtin_expr_parse_/g' y.tab.h > \
cook/builtin/expr_parse.yacc.h
rm y.tab.c y.tab.h
gcc -D _DEFAULT_SOURCE -g -O2 -I. -c cook/builtin/expr_lex.c
bison -y -d cook/hashline.y
cook/hashline.y:867.21-33: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
867 | %type <lv_word> HASHLINE_WORD
| ^~~~~~~~~~~~~
sed -e 's/[yY][yY]/hashline_/g' y.tab.c > cook/hashline.yacc.c
sed -e 's/[yY][yY]/hashline_/g' y.tab.h > cook/hashline.yacc.h
rm y.tab.c y.tab.h
gcc -D _DEFAULT_SOURCE -g -O2 -I. -c cook/hashline.yacc.c
bison -y -d cook/parse.y
cook/parse.y:139.21-25: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
139 | %type <lv_position> COLON
| ^~~~~
cook/parse.y:149.21-29: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
149 | %type <lv_position> SEMICOLON
| ^~~~~~~~~
cook/parse.y:155.21-24: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
155 | %type <lv_word> WORD
| ^~~~
sed -e 's/[yY][yY]/parse_/g' y.tab.c > cook/parse.yacc.c
sed -e 's/[yY][yY]/parse_/g' y.tab.h > cook/parse.yacc.h
rm y.tab.c y.tab.h
gcc -D _DEFAULT_SOURCE -g -O2 -I. -c cook/lex.c
bison -y -d cook/fingerprint/gram.y
cook/fingerprint/gram.y:60.24-29: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
60 | %type <lv_string> STRING
| ^~~~~~
cook/fingerprint/gram.y:61.24-29: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
61 | %type <lv_number> NUMBER
| ^~~~~~
sed -e 's/[yY][yY]/fingerprint_gram_/g' y.tab.c > \
cook/fingerprint/gram.yacc.c
sed -e 's/[yY][yY]/fingerprint_gram_/g' y.tab.h > \
cook/fingerprint/gram.yacc.h
rm y.tab.c y.tab.h
gcc -D _DEFAULT_SOURCE -g -O2 -I. -c cook/fingerprint/gram.yacc.c
CONFIG_FILES=script/cook_rsh:script/cook_rsh.in CONFIG_HEADERS= /bin/sh \
./config.status
config.status: creating script/cook_rsh
config.status: WARNING: 'script/cook_rsh.in' seems to ignore the --datarootdir setting
bison -y -d make2cook/gram.y
make2cook/gram.y:107.17-23: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
107 | %type <lv_line> COMMAND COMMENT IF WORD define_head define_word
| ^~~~~~~
make2cook/gram.y:107.25-31: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
107 | %type <lv_line> COMMAND COMMENT IF WORD define_head define_word
| ^~~~~~~
make2cook/gram.y:107.33-34: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
107 | %type <lv_line> COMMAND COMMENT IF WORD define_head define_word
| ^~
make2cook/gram.y:107.36-39: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
107 | %type <lv_line> COMMAND COMMENT IF WORD define_head define_word
| ^~~~
make2cook/gram.y:108.17-31: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
108 | %type <lv_line> COMMAND_COMMENT
| ^~~~~~~~~~~~~~~
make2cook/gram.y: warning: 2 shift/reduce conflicts [-Wconflicts-sr]
bison -y -d make2cook/vargram.y
make2cook/vargram.y:187.19-23: warning: POSIX yacc reserves %type to nonterminals [-Wyacc]
187 | %type <lv_string> PLAIN
| ^~~~~
make2cook/vargram.y: warning: 2 shift/reduce conflicts [-Wconflicts-sr]
make2cook/vargram.y: warning: 10 reduce/reduce conflicts [-Wconflicts-rr]
make2cook/vargram.y:369.7-370.20: warning: rule useless in parser due to conflicts [-Wother]
369 | : PLAIN
| ^~~~~
sed -e 's/[yY][yY]/vargram_/g' y.tab.c > make2cook/vargram.yacc.c
sed -e 's/[yY][yY]/vargram_/g' y.tab.h > make2cook/vargram.yacc.h
rm y.tab.c y.tab.h
gcc -D _DEFAULT_SOURCE -g -O2 -I. -c make2cook/vargram.yacc.c
Running make sure
fails on Ubuntu 20.04 due to missing uudecode
program.
mdhender@STORM:~/src/cook/src$ make sure
PATH=`pwd`/bin:$PATH /bin/sh test/00/t0049a.sh
test/00/t0049a.sh: 78: uudecode: not found
NO RESULT test of the cookfp repeat functionality
make: *** [Makefile:3254: t0049a] Error 2
On Ubuntu, sudo apt-get install sharutils
A 2.35 release with a fixed bootstrapping procedure is needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.