bug-bash
[Top][All Lists]
Advanced

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

Bash builtins will not compile with g++


From: Scott Herod
Subject: Bash builtins will not compile with g++
Date: 25 Nov 2002 11:49:21 -0700

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linu
x-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DSHELL
-DHAVE_CON
FIG_H   -I.  -I. -I./include -I./lib -g -O2
uname output: Linux co-herod-linux.trans.corp 2.4.18-3 #1 Thu Apr 18
07:37:53 ED
T 2002 i686 unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05a
Patch Level: 0
Release Status: release

Description:
        Bash builtins will not compile with g++.

Repeat-By:
        Write a bash builtin and attempt to compile it with g++.

Fix:
        The problem occurs because the __P macro defined in
include/stdc.h
        is overridden by /usr/include/sys/cdefs.h which adds a throw()
to
        the argument replacement.  This would be fine except that
general.h
        in the bash code uses the __P macro as part of a typedef.

        My cheesy hack for my case was to redefine the __P macro back
        to what after it is in the bash code the inclusion of the
        system headers.







reply via email to

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