From: Nigel Gilbert Date: 2002-01-04T00:30:18+09:00 Subject: [ruby-talk:30128] Re: Problem compiling Ruby on Solaris It doesn't seem to make any difference: {josef:13} make compiling Win32API compiling curses make[1]: Entering directory `/opt/nigel/ruby-1.6.6/ext/curses' gcc -fPIC -g -O2 -I/opt/nigel/ruby-1.6.6 -I/opt/nigel/ruby-1.6.6 -I/usr/local/include -DHAVE_CURSES_H -DHAVE_ISENDWIN -DHAVE_UNGETCH -DHAVE_BEEP -DHAVE_DOUPDATE -DHAVE_FLASH -DHAVE_DELETELN -DHAVE_WDELETELN -c curses.c gcc -Wl,-G -shared -L/opt/nigel/ruby-1.6.6 -o curses.so curses.o -ltermlib -lcurses -ltermlib -ltermcap -lc Text relocation remains referenced against symbol offset in file kill 0x28 /usr/ccs/lib/libtermlib.a(tstp.o) beep 0x2a0 /usr/ccs/lib/libtermlib.a(wgetstr.o) beep 0x1b4 /usr/ccs/lib/libtermlib.a(wgetstr.o) access 0x1ec /usr/ccs/lib/libtermlib.a(setupterm.o) free 0x90 /usr/ccs/lib/libtermlib.a(delscreen.o) extconf.rb now is: .... else have_library("termcap", "tgetent") have_library("termlib") if have_header("curses.h") and have_library("curses", "initscr") and have_library("termlib") make=true end end .... On Thursday, January 3, 2002, at 11:14 AM, Takaaki Tateishi wrote: > At Thu, 3 Jan 2002 18:33:46 +0900, >> gcc -Wl,-G -shared -L/opt/nigel/ruby-1.6.6 -o curses.so curses.o >> -ltermlib -lcurses -ltermcap -lc > > Would you add have_library("termlib") *before* the last > have_library("curses",...) and try again? > > .... > have_library("termcap", "tgetent") > have_library("termlib") # add this line. > if have_header("curses.h") and have_library("curses", "initscr") and > .... > -- > Takaaki Tateishi > > __________________________________________________________________________ Professor Nigel Gilbert, FREng, AcSS, Pro Vice-Chancellor and Professor of Sociology, University of Surrey, Guildford GU2 7XH, UK. +44 (0)1483 689173