[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug: variables.c does not compile ...
From: |
horst wente |
Subject: |
bug: variables.c does not compile ... |
Date: |
Mon, 27 Apr 2009 18:19:20 +0200 |
... after having configured bash-3.2.48 with "--disable-debugger":
--- ***********************************************************
--- * *
--- * GNU bash, version 3.2.48(3)-release (i386-pc-linux-gnu)
--- * *
--- ***********************************************************
---
---rm -f variables.o
---gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i386"' -DCONF_OSTYPE='"linux-gnu"'
-DCONF_MACHTYPE='"i386-pc-linux-gnu"' -DCONF_VENDOR='"pc"'
-DLOCALEDIR='"/usr/share/locale"' -DPACKAGE='"bash"' -DSHELL -DHAVE_CONFIG_H
-I. -I. -I./include -I./lib -O2 -momit-leaf-frame-pointer -c variables.c
---variables.c: In function `find_function_def':
---variables.c:1578: error: `shell_function_defs' undeclared (first use in this
function)
---variables.c:1578: error: (Each undeclared identifier is reported only once
---variables.c:1578: error: for each function it appears in.)
---variables.c: In function `bind_function_def':
---variables.c:2145: error: `shell_function_defs' undeclared (first use in this
function)
---variables.c: In function `unbind_function_def':
---variables.c:2354: error: `shell_function_defs' undeclared (first use in this
function)
---make: *** [variables.o] Error 1
The following patch makes it work:
--- variables.c.orig 2009-04-27 17:19:59.000000000 +0200
+++ variables.c 2009-04-27 17:21:00.000000000 +0200
@@ -109,11 +109,9 @@
the environment. */
HASH_TABLE *shell_functions = (HASH_TABLE *)NULL;
-#if defined (DEBUGGER)
/* The table of shell function definitions that the user defined or that
came from the environment. */
HASH_TABLE *shell_function_defs = (HASH_TABLE *)NULL;
-#endif
/* The current variable context. This is really a count of how deep into
executing functions we are. */
regards
horst wente
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug: variables.c does not compile ...,
horst wente <=