From: Nobuyoshi Nakada Date: 2003-04-13T14:15:54+09:00 Subject: Re: Having trouble getting iconv-0.5 ... on OS X (actually extconf.rb bug) Hi, At Sun, 13 Apr 2003 12:24:53 +0900, Sam Roberts wrote: > The error turned out to be deceptively simple. extconf.rb fails to find > iconv() in -liconv, though it is there. > > Any idea why extconf.rb thinks iconv() isn't in -liconv, and why on earth does > it both ignore the fact that it can't find iconv(), and then disables the > linker's warning that it couldn't find iconv()? > > It first fails to find iconv in libiconv.a: > > [ensemble] ~/p/ruby/download/iconv-0.5 $ ruby extconf.rb Try `ruby extconf.rb --iconv-dir=/usr/local'. > checking for iconv.h... yes > checking for iconv() in -liconv... no > checking for rb_obj_freeze()... yes > checking for rb_block_given_p()... yes > checking for rb_str_buf_new()... no > creating Makefile > > > Note that it found /usr/local/include/iconv.h, but failed to find iconv(), and > yet still created the Makefile. Why? Some platforms don't need any additional libraries to use iconv(), because they have it in libc. Rather, I'm curious why extconf.rb finds iconv.h in /usr/local/include. -- Nobu Nakada