bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compile error for version 3.2 if configured with --disable-debugger


From: horst wente
Subject: compile error for version 3.2 if configured with --disable-debugger
Date: Fri, 25 May 2007 16:45:59 +0200

Configuration Information
OS: linux 2.6
Compiler: gcc 3.4.3

Bash Version: 3.2
Patch Level: 17
Release Status: release

Description:
      trying a --disable-debugger with configure, the compilation             
      crashed like this:
>                 gcc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"i686"'            
>                         -DCONF_OSTYPE='"linux-gnu"'                        
>                         -DCONF_MACHTYPE='"i686-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)       

      Indeed the definition of ``shell_function_defs'' in `variables.c'  is
      protected by an
             #ifdef DEBUGGER
      but not all references are.
      ( And just for the aesthetics: since it is apparently used in this file 
      only, the definition may deserve a `static'  to keep it inside)

Fix:
       #ifdefs at some more places  ( ¿ or just none ? )




reply via email to

[Prev in Thread] Current Thread [Next in Thread]