This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: curses problem trying to build ruby
- To: John Wiersba <John dot Wiersba at medstat dot com>
- Subject: Re: curses problem trying to build ruby
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- Date: Wed, 13 Dec 2000 02:45:19 -0500
- CC: 'cygwin' <cygwin at sourceware dot cygnus dot com>
- References: <03F4742D8225D21191EF00805FE62B9904B3F67C@aa-msg-01.medstat.com>
John Wiersba wrote:
>
> Hi! I'm trying to build ruby out of the box and I get this series of errors
> (see below) related to curses. The configure step *does* recognize that I'm
> running cygwin. I'm up-to-date on my cygwin setup, running on WinNT4.
> Anyone recognize these symptoms?
Yeah -- looks like a bug in the makefile. Since ruby is trying to build
an extension dll that provides the ncurses-ruby interface, that dll must
be fully resolved (no unresolved external references). This file,
ruby/ext/curses/curses.c, clearly depends on ncurses -- but the dllwrap
command doesn't include a link reference to libncurses. Try adding
'-lncurses' to the dllwrap command line.
> dllwrap --target=cygwin --as=as --dlltool-name=dlltool --driver-name=gcc
> --expor
> t-all -s --def=curses.def -L/jrw/ftp/ruby/junk/ruby-1.6.1 -o curses.so
> curses.o
> -L. -lcygwin-ruby16 -lncurses
> curses.o: In function `free_window':
> /jrw/ftp/ruby/junk/ruby-1.6.1/ext/curses/curses.c:65: undefined reference to
> `stdscr'
[snip]
--Chuck
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com