Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby-1.8.6 and 1.8.5 fail to compile under MinGW

Reply
Thread Tools

Ruby-1.8.6 and 1.8.5 fail to compile under MinGW

 
 
David Benson
Guest
Posts: n/a
 
      05-28-2007
Hi,
I'm trying to build Ruby under MinGW. However after running configure,
I get some sed errors...


d:\MinGW\bin\sed.exe: -e expression #1, char 2: Extra characters after
command
configure: creating ./config.status
d:\MinGW\bin\sed.exe: -e expression #1, char 2: Extra characters after
command
d:\MinGW\bin\sed.exe: -e expression #1, char 2: Extra characters after
command
config.status: creating GNUmakefile
d:\MinGW\bin\sed.exe: -e expression #1, char 2: Extra characters after
command
d:\MinGW\bin\sed.exe: -e expression #1, char 2: Extra characters after
command
config.status: creating Makefile
d:\MinGW\bin\sed.exe: -e expression #1, char 2: Extra characters after
command
d:\MinGW\bin\sed.exe: -e expression #1, char 2: Extra characters after
command
d:\MinGW\bin\sed.exe: -e expression #1, char 2: Extra characters after
command



which seems to leave some extra junk about cygwin at the end of one of
the lines in the resulting Makefile.
MKFILES = Makefile GNUmakefile:cygwin/GNUmakefile.in



make will run if this line is replace by..
MKFILES = Makefile GNUmakefile


It gets most of the way through then barfs when trying to compile
readline..

compiling readline
make[1]: Entering directory `/mingw/SRC/ruby-1.8.6/ext/readline'
gcc -I. -I../.. -I../../. -I../.././ext/readline
-DHAVE_READLINE_READLINE_H -DHA
VE_READLINE_HISTORY_H -DHAVE_RL_FILENAME_COMPLETION_FUNCTION
-DHAVE_RL_USERNAME_ COMPLETION_FUNCTION
-DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_DEPREP_TERM_FUNCTION
-DHAVE_RL_COMPLETION_APPEND_CHARACTER
-DHAVE_RL_BASIC_WORD_BREAK_CHARACTERS -DHA
VE_RL_COMPLETER_WORD_BREAK_CHARACTERS -DHAVE_RL_BASIC_QUOTE_CHARACTERS
-DHAVE_RL _COMPLETER_QUOTE_CHARACTERS
-DHAVE_RL_FILENAME_QUOTE_CHARACTERS -DHAVE_RL_ATTEMP
TED_COMPLETION_OVER -DHAVE_RL_LIBRARY_VERSION -DHAVE_RL_EVENT_HOOK
-DHAVE_RL_CLE ANUP_AFTER_SIGNAL
-DHAVE_RL_CLEAR_SIGNALS -DHAVE_RL_VI_EDITING_MODE -DHAVE_RL_EM
ACS_EDITING_MODE -DHAVE_RL_CLEAR_SIGNALS -DHAVE_REPLACE_HISTORY_ENTRY
-DHAVE_REM OVE_HISTORY -g -O2 -c
readline.c
gcc -shared -s
-Wl,--enable-auto-image-base,--enable-auto-import,--export-all -
L"../.." -o ../../.ext/i386-mingw32/readline.so readline.o
-lmsvcrt-ruby18 -lre adline -lwsock32
Cannot export libreadline_NULL_THUNK_DATA: symbol not found
nmth000013.o(.idata$4+0x0): undefined reference to `_nm__rl_outstream'
nmth000018.o(.idata$4+0x0): undefined reference to `_nm__rl_instream'
nmth000024.o(.idata$4+0x0): undefined reference to
`_nm__rl_attempted_completion _over'
nmth000026.o(.idata$4+0x0): undefined reference to
`_nm__rl_completion_append_ch aracter'
nmth000031.o(.idata$4+0x0): undefined reference to
`_nm__rl_basic_word_break_cha racters'
nmth000034.o(.idata$4+0x0): undefined reference to
`_nm__rl_completer_word_break
_characters'
nmth000037.o(.idata$4+0x0): undefined reference to
`_nm__rl_basic_quote_characte rs'
nmth000040.o(.idata$4+0x0): undefined reference to
`_nm__rl_completer_quote_char acters'
nmth000043.o(.idata$4+0x0): undefined reference to
`_nm__rl_filename_quote_chara cters'
nmth000046.o(.idata$4+0x0): undefined reference to `_nm__history_base'
nmth000049.o(.idata$4+0x0): undefined reference to `_nm__history_length'
nmth000064.o(.idata$4+0x0): undefined reference to
`_nm__rl_readline_name'
nmth000072.o(.idata$4+0x0): undefined reference to
`_nm__rl_library_version'
nmth000074.o(.idata$4+0x0): undefined reference to
`_nm__rl_attempted_completion _function'
nmth000076.o(.idata$4+0x0): undefined reference to `_nm__rl_event_hook'
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/i386-mingw32/readline.so] Error 1
make[1]: Leaving directory `/mingw/SRC/ruby-1.8.6/ext/readline'
make: *** [all] Error 1


I'm running the crrent latest release version of MinGW. Any suggestions
on how fix this error?

David

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows GCC Support (Mingw & Mingw-w64) xeno fears Python 1 10-04-2009 06:40 PM
An unexpected visit_decref assertion fail (code works under python2.4, doesn't under 2.5) Joe Ardent Python 1 04-26-2009 04:27 PM
compile ruby under windows xp with MinGW Lars Eb Ruby 4 11-16-2007 01:37 PM
Compile 1.8.6-p110 under MinGW - test-all problems Luis Lavena Ruby 6 10-19-2007 07:39 PM
[g++ mingw eclipse] How do I setup Eclipse to use MinGw's g++ compiler? Sam Smith C++ 0 10-18-2004 11:36 AM



Advertisments