From: "Philip J. Mikal" Date: 2005-09-09T12:57:26+09:00 Subject: Re: compiling ruby on red hat linux Hi Nobu, Yes, it looks like a wrapper script. [root@server2 src]# type -a gcc gcc is /usr/bin/gcc [root@server2 src]# file `type -p gcc` /usr/bin/gcc: Bourne shell script text executable Here is the script: #!/bin/sh if id | grep -q gcc296; then #Use the compat gcc exec /usr/bin/gcc296 $@ elif [ -n "$GCC296" ]; then # Use the compat gcc exec /usr/bin/gcc296 $@ else # Use the standard gcc exec /usr/bin/gcc323 $@ fi I symlinked gcc to gcc323 and now it works! I've run into this problem on a few boxes and they are all Red Hat 9. I'm suprised this problem hasn't shown up before. Maybe there is a better way to set up the -D arg to iconv to support legacy distros with this shell wrapper? Thanks for your help! -Philip --- nobu.nokada@softhome.net wrote: > Hi, > > At Fri, 9 Sep 2005 11:12:52 +0900, > Philip J. Mikal wrote in [ruby-talk:155397]: > > It looks like my gcc is bombing out on: > > > > -DICONV_INPTR_CAST="(char **)" > > What is `your gcc'? Maybe a wrapper script? > Try: > > type -a gcc > file `type -p gcc` > > -- > Nobu Nakada > >