rpinchback@watpix.waterloo.edu (Reid M. Pinchback) (06/10/89)
When trying to compile atty on a 4.3 BSD vaxen, I get the following warnings and errors before the makefile gives up. "kbind.c", line 558: warning: "keytab" redefinition hides earlier one "kbind.c", line 1025: warning: "syntax" redefinition hides earlier one "atty.c", line 259: "errno" undefined "atty.c", line 315: "errno" undefined "atty.c", line 407: "errno" undefined "atty.c", line 426: "errno" undefined "atty.c", line 529: "errno" undefined "atty.c", line 645: "errno" undefined "atty.c", line 723: "errno" undefined "atty.c", line 927: "errno" undefined errno is tested, printed, or used to initialize a variable in the lines that generated errors. It also appears in lines 731 and 930, where it is assigned to, but these lines don't generate errors. Has anybody else run into this? Is there a simple quick fix, like "int errno;", or does this stem from a 4.3 vs 4.2 BSD difference? Reid M. Pinchback
gandalf@csli.Stanford.EDU (Juergen Wagner) (06/12/89)
In article <10240@watcgl.waterloo.edu> rpinchback@watpix.waterloo.edu (Reid M. Pinchback) writes: >... >Has anybody else run into this? Is there a simple quick fix, like >"int errno;", or does this stem from a 4.3 vs 4.2 BSD difference? This is strange but explainable. Ultrix and SunOS have extern int errno; in <errno.h> but BSD seems to lack this declaration. Add it, and everything should be fine. -- Juergen Wagner gandalf@csli.stanford.edu wagner@arisia.xerox.com