Coder Social home page Coder Social logo

cook's People

Contributors

mdhender avatar shlomif avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cook's Issues

cook 1.9

ftp://ftp.ibiblio.org/pub/historic-linux/ftp-archives/sunsite.unc.edu/Sep-29-1996/devel/make/

cook 2.16 missing

It's available at ftp://merseyworld.com/hpux/Development/Tools/cook-2.16/

Build fails with yac error

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

Test 77a fails on Ubuntu 20.04

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

YACC grammar throws warnings

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

Build docs does not mention that uudecode is needed for testing

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.