Compiling ruby-1.6.8-preview fails with lots of undefined references
when trying to build curses.  I have never had his problem with
previous versions: 1.6.6 and 1.6.7 built straight out of the box.  I
think I have upgraded glibc-* packages since I last tried to build
ruby, so may be that is the reason?

Details: 
AMD K6 233MHz
Linux 2.2.23
Red Hat 6.2 
glibc-2.1.3-28 (rpm) 
gcc 2.95.3
../configure \
	--enable-shared

Here's the log: 

compiling Win32API
compiling curses
make[1]: Entering directory `/usr/local/src/Build/Tools/ruby-1.6.8-preview4/ext/curses'
gcc -shared  -Wl,--no-undefined -L/usr/local/src/Build/Tools/ruby-1.6.8-preview4 -L/usr/local/lib  -o curses.so curses.o -L. -lruby -lncurses -lc 
/usr/local/src/Build/Tools/ruby-1.6.8-preview4/libruby.so: undefined reference to `dlclose / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_init_next / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_lazy / GLIBC_2.1.1'
/usr/local/src/Build/Tools/ruby-1.6.8-preview4/libruby.so: undefined reference to `dlerror / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_dst_substitute / GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_relocate_object / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `__libc_enable_secure / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_catch_error / GLIBC_2.0'
/usr/local/src/Build/Tools/ruby-1.6.8-preview4/libruby.so: undefined reference to `crypt / GLIBC_2.0'
/usr/local/src/Build/Tools/ruby-1.6.8-preview4/libruby.so: undefined reference to `dlopen / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_platformlen / GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_mcount / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_dst_count / GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_initial_searchlist / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_start_profile / GLIBC_2.1'
/usr/local/src/Build/Tools/ruby-1.6.8-preview4/libruby.so: undefined reference to `dlsym / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_lookup_symbol / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `__libc_stack_end / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_loaded / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_origin_path / GLIBC_2.1.1'
/lib/libc.so.6: undefined reference to `_dl_map_object / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_check_all_versions / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_main_searchlist / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_debug_impcalls / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_profile / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_debug_state / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_r_debug / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_debug_message / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_unload_cache / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_signal_error / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_map_object_deps / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_profile_map / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_profile_output / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_fpu_control / GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_dl_debug_initialize / GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_global_scope_alloc / GLIBC_2.1'
collect2: ld returned 1 exit status
make[1]: *** [curses.so] Error 1
make[1]: Leaving directory `/usr/local/src/Build/Tools/ruby-1.6.8-preview4/ext/curses'

Cheers, 

Jeremy Henty