From: nobu.nokada@... Date: 2002-12-19T23:33:41+09:00 Subject: Re: ruby-1.6.8-preview4 compile fails in ncurses Hi, At Thu, 19 Dec 2002 20:55:45 +0900, Jeremy Henty wrote: > 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 On my box, it worked fine. Whitch version is your ld? $ ld -v GNU ld version 2.11.92.0.10 20011021 Does this patch fix it? Index: extmk.rb.in =================================================================== RCS file: /cvs/ruby/src/ruby/ext/Attic/extmk.rb.in,v retrieving revision 1.34.2.37 diff -u -2 -p -r1.34.2.37 extmk.rb.in --- extmk.rb.in 11 Dec 2002 15:13:37 -0000 1.34.2.37 +++ extmk.rb.in 19 Dec 2002 14:31:52 -0000 @@ -379,9 +379,9 @@ def create_makefile(target) $DLDFLAGS = '@DLDFLAGS@' if /linux/ =~ RUBY_PLATFORM and $configure_args['--enable-shared'] and "@GNU_LD@" == "yes" - $DLDFLAGS << " -Wl,--no-undefined" + $DLDFLAGS << " -Wl,--no-undefined -Wl,--allow-shlib-undefined" end if $configure_args['--enable-shared'] or "@LIBRUBY@" != "@LIBRUBY_A@" - $libs = "@LIBRUBYARG@ " + $libs + optlibs = "@LIBRUBYARG@ @LIBS@ " $LIBPATH.unshift $topdir end @@ -449,5 +449,5 @@ target_prefix = #{target_prefix} " mfile.printf "LOCAL_LIBS = %s %s\n", $LOCAL_LIBS, $local_flags - mfile.printf "LIBS = %s\n", $libs + mfile.printf "LIBS = %s%s\n", optlibs, $libs mfile.printf "OBJS = " if !$objs then -- Nobu Nakada