On 25 Mar 2011, at 06:43, Daniel Berger wrote:

> 
> My first suggestion would be check the mkmf.log file that was
> generated and see if it offers up any clues.

This is the mkmf.log generated, and I don't really understand what I'm looking at in there:


have_func: checking for iconv_open() in /Library/Frameworks/Libiconv.framework/Versions/1.13.1/include/iconv.h... -------------------- no

"gcc -o conftest -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1/ruby/backward -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -D_XOPEN_SOURCE=1 -fno-common -pipe conftest.c  -L. -L/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/lib -L. -L/usr/local/lib     -lruby.1.9.1-static  -lpthread -ldl -lobjc "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main() {return 0;}
/* end */

"gcc -o conftest -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1/ruby/backward -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -D_XOPEN_SOURCE=1 -fno-common -pipe conftest.c  -L. -L/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/lib -L. -L/usr/local/lib     -lruby.1.9.1-static  -lpthread -ldl -lobjc "
Undefined symbols:
  "_libiconv_open", referenced from:
      _t in ccZQeC6u.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include </Library/Frameworks/Libiconv.framework/Versions/1.13.1/include/iconv.h>
4: 
5: /*top*/
6: int main() {return 0;}
7: int t() { void ((*volatile p)()); p = (void ((*)()))iconv_open; return 0; }
/* end */

"gcc -o conftest -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1/x86_64-darwin10.4.0 -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1/ruby/backward -I/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -D_XOPEN_SOURCE=1 -fno-common -pipe conftest.c  -L. -L/Library/Frameworks/Ruby.framework/Versions/1.9.2-p0/lib -L. -L/usr/local/lib     -lruby.1.9.1-static  -lpthread -ldl -lobjc "
conftest.c: In function ┴Ň
conftest.c:7: error: too few arguments to function ┴═ibiconv_openchecked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include </Library/Frameworks/Libiconv.framework/Versions/1.13.1/include/iconv.h>
4: 
5: /*top*/
6: int main() {return 0;}
7: int t() { iconv_open(); return 0; }
/* end */

--------------------

Regards,