> into.c:106: `sys_errlist' undeclared (first use in this function)
Sounds like the programmer expected <errno.h> to declare sys_errlist.
Actually that is forbidden by the C standard, unless an extension
is used to enable visibility of such a symbol. Some old Unix
systems (not System V) may have declared that symbol in that
header. A workaround is to insert the following line after the
existing #include <errno.h> in each offending source file:
extern /*const*/ char * /*const*/ sys_errlist;
The "const"s should theoretically be there, but they might be
incompatible with some existing <errno.h>s.
A better approach is to change the code to use strerror(errno)
instead of sys_errlist[errno]. If the package has to be ported
to a platform that lacks strerror(), it is very easy to cobble
one together that makes use of sys_errlist, assuming it exists.
Get latest updates about Open Source Projects, Conferences and News.