[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: error building bash-4.0 on Interix/SFU/SUA (MP_RMDOT undeclared, jus
From: |
Jay |
Subject: |
RE: error building bash-4.0 on Interix/SFU/SUA (MP_RMDOT undeclared, just missing some #includes) |
Date: |
Tue, 16 Jun 2009 10:31:08 +0000 |
I don't have it handy now but I think bash also had a struct timezone
undefined, needed CFLAGS=-D_ALL_SOURCE to get it.
- Jay
From: jay.krell@cornell.edu
To: bug-bash@gnu.org
Subject: error building bash-4.0 on Interix/SFU/SUA (MP_RMDOT undeclared, just
missing some #includes)
Date: Tue, 16 Jun 2009 08:12:33 +0000
/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