Skip to content

Errors during make on GNU/Linux #1

@gnusupport

Description

@gnusupport

gcc -Wall -DMK_DOC -o doc doc.c
./doc >/dev/null
yacc zmac.y
mv -f y.tab.c zmac.c
gcc -c -o zmac.o zmac.c
zmac.y: In function ‘do_equ’:
zmac.y:2025:14: error: ‘UNDECLARED’ undeclared (first use in this function)
2025 | case UNDECLARED: case WASEQUATED:
| ^~~~~~~~~~
zmac.y:2025:14: note: each undeclared identifier is reported only once for each function it appears in
zmac.y:2025:31: error: ‘WASEQUATED’ undeclared (first use in this function)
2025 | case UNDECLARED: case WASEQUATED:
| ^~~~~~~~~~
zmac.y:2043:32: error: ‘EQUATED’ undeclared (first use in this function)
2043 | sym->i_token = EQUATED;
| ^~~~~~~
zmac.y:2055:40: error: ‘MULTDEF’ undeclared (first use in this function)
2055 | sym->i_token = MULTDEF;
| ^~~~~~~
zmac.y: In function ‘do_defl’:
zmac.y:2069:14: error: ‘UNDECLARED’ undeclared (first use in this function)
2069 | case UNDECLARED: case DEFLED:
| ^~~~~~~~~~
zmac.y:2069:31: error: ‘DEFLED’ undeclared (first use in this function)
2069 | case UNDECLARED: case DEFLED:
| ^~~~~~
zmac.y:2077:32: error: ‘MULTDEF’ undeclared (first use in this function)
2077 | sym->i_token = MULTDEF;
| ^~~~~~~
zmac.y: In function ‘common_block’:
zmac.y:2135:14: error: ‘UNDECLARED’ undeclared (first use in this function)
2135 | case UNDECLARED:
| ^~~~~~~~~~
zmac.y:2136:14: error: ‘COMMON’ undeclared (first use in this function); did you mean ‘SEG_COMMON’?
2136 | case COMMON:
| ^~~~~~
| SEG_COMMON
zmac.y:2147:31: error: ‘MULTDEF’ undeclared (first use in this function)
2147 | it->i_token = MULTDEF;
| ^~~~~~~
make: *** [: zmac.o] Error 1
rm zmac.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions