Skip to content

The procedure "cant" wont compile on current versions of linux: #1

@riwide

Description

@riwide

The procedure "cant" wont compile on current versions of linux:
make
cc -c -o lar.o lar.c
lar.c: In function ‘cant’:
lar.c:198:40: error: ‘sys_errlist’ undeclared (first use in this function)
198 | fprintf (stderr, "%s: %s\n", name, sys_errlist[errno]);
| ^~~~~~~~~~~
lar.c:198:40: note: each undeclared identifier is reported only once for each function it appears in
make: *** [: lar.o] Error 1

can be fixed by changing the fprint line to :

fprintf (stderr, "%s: %s\n", name, strerror(errno));

(courtesy of Wayne Hortensius for that fix)

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