/src/bash-4.0/lib/sh/getcwd.c: In function `_path_checkino': /src/bash-4.0/lib/sh/getcwd.c:80: error: `MP_RMDOT' undeclared (first use in thi s function) /src/bash-4.0/lib/sh/getcwd.c:80: error: (Each undeclared identifier is reported only once /src/bash-4.0/lib/sh/getcwd.c:80: error: for each function it appears in.) /src/bash-4.0/lib/sh/getcwd.c:80: warning: assignment makes pointer from integer without a cast make[1]: *** [getcwd.o] Error 1 make[1]: Leaving directory `/dev/fs/C/obj/bash/lib/sh' make: *** [lib/sh/libsh.a] Error 1 $ grep MP_RMDOT /usr/include/* $ grep MP_RMDOT /src/bash-4.0/* /src/bash-4.0/externs.h:#define MP_RMDOT 0x04 /src/bash-4.0/general.c: ret = sh_makepath ((char *)NULL, file, (MP_DOCWD|MP_RM DOT));
fix: $ diff -u getcwd.c.orig getcwd.c --- getcwd.c.orig Tue Jun 16 00:56:16 2009 +++ getcwd.c Tue Jun 16 01:01:52 2009 @@ -62,6 +62,10 @@ # define NULL 0 #endif +#include "command.h" +#include "general.h" +#include "externs.h" + /* If the d_fileno member of a struct dirent doesn't return anything useful, we need to check inode number equivalence the hard way. Return 1 if the inode corresponding to PATH/DIR is identical to THISINO. */ command.h and general.h are needed to avoid errors declaring other things in externs.h -- uses of COMMAND and GENERIC_LIST. - Jay