Hi Hans,

Thanks for responding!

I have looked around my system and I can't find any other ruby
installations except for the one in /usr/lib. I'll look at the
Makefile to see what I can do.

I am using narray-0.5.8 and SWIG 1.3.27.
Here is the full rake output, followed by the contents of my .bash_profile.

~/desktop/toscan/ruby-audio-0.1.1>rake --trace
(in /Users/samesimilar/Desktop/toscan/ruby-audio-0.1.1)
** Invoke default (first_time)
** Invoke test (first_time)
** Invoke setup (first_time)
** Invoke .config (first_time)
** Execute .config
ruby setup.rb config
---> lib
---> lib/audio
<--- lib/audio
<--- lib
---> ext
---> ext/sndfile
/usr/bin/ruby /Users/samesimilar/Desktop/toscan/ruby-audio-0.1.1/ext/sndfile/extconf.rb
/usr/include/sndfile.h:278: Warning(451): Setting const char * member
may leak memory.
/usr/include/sndfile.h:279: Warning(451): Setting const char * member
may leak memory.
/usr/include/sndfile.h:300: Warning(451): Setting const char * member
may leak memory.
checking for sf_open() in -lsndfile... yes
checking for narray.h... yes
creating Makefile
<--- ext/sndfile
<--- ext
** Execute setup
ruby setup.rb setup
---> lib
---> lib/audio
<--- lib/audio
<--- lib
---> ext
---> ext/sndfile
make
gcc -fno-common -g -Os -pipe -fno-common -pipe  -fno-common -pipe
-fno-common  -I. -I/usr/lib/ruby/1.8/powerpc-darwin8.0
-I/usr/lib/ruby/1.8/powerpc-darwin8.0
-I/Users/samesimilar/Desktop/toscan/ruby-audio-0.1.1/ext/sndfile
-DHAVE_NARRAY_H -I/usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0  -c
sndfile_wrap.c
cc  -bundle  -L"/usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0"
-L"/usr/lib" -o sndfile.bundle sndfile_wrap.o  -lruby -lsndfile
-lpthread -ldl -lobjc
/usr/bin/ld: Undefined symbols:
_cNArray
_na_sizeof
collect2: ld returned 1 exit status
make: *** [sndfile.bundle] Error 1
setup.rb:656:in `command': system("make") failed (RuntimeError)
        from setup.rb:665:in `make'
        from setup.rb:1286:in `setup_dir_ext'
        from setup.rb:1498:in `__send__'
        from setup.rb:1498:in `traverse'
        from setup.rb:1496:in `dive_into'
        from setup.rb:1496:in `traverse'
        from setup.rb:1500:in `traverse'
        from setup.rb:1499:in `each'
         ... 8 levels...
        from setup.rb:827:in `__send__'
        from setup.rb:827:in `invoke'
        from setup.rb:774:in `invoke'
        from setup.rb:1544
rake aborted!
Command failed with status (1): [ruby setup.rb setup]
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:567:in `sh'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:566:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:574:in `sh'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:657:in `sh'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:652:in `sh'
/Users/samesimilar/Desktop/toscan/ruby-audio-0.1.1/rakefile:18
/Users/samesimilar/Desktop/toscan/ruby-audio-0.1.1/rakefile:17:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:232:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:202:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:209:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:in `send'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:201:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:209:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:in `send'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:844:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:208:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:201:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:195:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake.rb:1719:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.7.0/bin/rake:7
/usr/bin/rake:18:in `load'
/usr/bin/rake:18

<END OF RAKE OUTPUT>

***FYI, here is my .bash_profile


~/desktop/toscan/ruby-audio-0.1.1>cat ~/.bash_profile
PS1="\w>"
export DEVKITPRO=/opt/local/devkitpro
export DEVKITARM=$DEVKITPRO/devkitARM
export LIBNDS=$DEVKITPRO/libnds
export PAPATH=$DEVKITPRO/PAlib
export HAMDIR=/ham
export SVN_EDITOR=mate
PATH=$PATH:/usr/local/mysql/bin:/opt/local/bin:$HAMDIR/tools/macos/:/opt/local/devkitpro/devkitARM/bin/
alias cp='cp -i'
alias rm='rm -i'
alias mv='mv -i'
alias ls='ls -a -F'


>
> My first guess is that you have two ruby installations and rake is
> somehow using the wrong one. In any case, you should be able to work
> around it by hand-tweaking ext/sndfile/Makefile, but I'd like to know if
> something is broken so I can fix it.
>
>