On Fri, 25 Jun 2004, Matt Lawrence wrote:

> Now I'm down to this error:
> 
> compiling iconv
>         gcc -g -O2  -I. -I/usr/src/ruby-1.8.1 -I/usr/src/ruby-1.8.1 
> -I/usr/src/ruby-1.8.1/ext/iconv -DHAVE_ICONV_H -DICONV_INPTR_CAST="(char 
> **)" -I/usr/include -c iconv.c
>         /usr/ccs/bin/ld -brtl -eInit_iconv 
> -bI:/usr/src/ruby-1.8.1/ruby.imp -bM:SRE -T512 -H512 -lc  
> -L"/usr/src/ruby-1.8.1" -L"/usr/local/lib" -o iconv.so iconv.o  -ldl 
> -lcrypt -lm   -lc
> ld: 0711-317 ERROR: Undefined symbol: .iconv_open
> ld: 0711-317 ERROR: Undefined symbol: .iconv_close
> ld: 0711-317 ERROR: Undefined symbol: .iconv
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more 
> information.
> make: 1254-004 The error code from the last command is 8.

And the fix is shown in 
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/88697

Add -liconv to DLDFLAGS in ext/iconv/Makefile.

Any ideas on how to get configure to do the right thing for this one?

-- Matt
Weinberg's Law: If builders built buildings the way that programmers wrote
programs, the first woodpecker that came along would destroy civilization.