Hi. I'm trying to build the libmisc.a library with the source code for "Advanced Programming in the UNIX environment". I have the 1992 edition. http://www.kohala.com/start/apue.html . This library is required to compile the example C files. I get this error when I cd to /home/stevens/lib.44 and type 'gmake'.
make also produces the same error. What's the best way to fix this so I can build this library to compile the example source code?
Code:
make[2]: Entering directory `/usr/home/stevens/apue/lib.44'
gcc -O -c pathconf.c -o pathconf.o
pathconf.c: In function '_do_pathconf':
pathconf.c:23:40: error: 'LINK_MAX' undeclared (first use in this function); did you mean 'LINE_MAX'?
23 | case _PC_LINK_MAX: return(LINK_MAX);
| ^~~~~~~~
| LINE_MAX
pathconf.c:23:40: note: each undeclared identifier is reported only once for each function it appears in
*** Error code 1
Stop.
make[2]: stopped in /usr/home/stevens/apue/lib.44
gmake[1]: *** [Makefile:50: svr4] Error 1
gmake[1]: Leaving directory '/usr/home/stevens/apue/lib.44'
gmake: *** [Makefile:24: all] Error 2
>>