$ in function name

$ make  
        CC = gcc
        LD = ld
        LDSHARED = gcc -Wl,-G
        CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ansi -std=iso9899:199409
        XCFLAGS = -D_FORTIFY_SOURCE=2 -fno-strict-overflow -DRUBY_EXPORT -fPIE
        CPPFLAGS =   -I. -I.ext/include/powerpc-aix7.1.0.0 -I../trunk/include -I../trunk
        DLDFLAGS = -Wl,-bE:ruby.imp -Wl,-brtl -Wl,-blibpath:/home/kanemoto/trunk/lib:/usr/lib:/lib -pie
        SOLIBS =
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/lto-wrapper
Target: powerpc-ibm-aix7.1.0.0
Configured with: ../gcc-4.8.1/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix7.1.0.0
Thread model: aix
gcc version 4.8.1 (GCC)
compiling ../trunk/main.c
In file included from ../trunk/include/ruby.h:33:0,
                 from ../trunk/main.c:13:
../trunk/include/ruby/ruby.h:570:1: error: stray '$' in program
 int ruby$safe_level$4(void) __attribute__((error("$SAFE=4 is obsolete")));
 ^
../trunk/include/ruby/ruby.h:570:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'safe_level'
 int ruby$safe_level$4(void) __attribute__((error("$SAFE=4 is obsolete")));
          ^
../trunk/include/ruby/ruby.h:570:10: error: stray '$' in program
make: *** [main.o] Error 1

さてどうしたものか。

[追記]gcc 4.8から変ったのかと思いきや、gcc on AIXの問題の模様。手元のAIXの4.7.2でおきて、plinuxの4.7.2でおきなかった。