Ruby-1.8.6 and 1.8.5 fail to compile under MinGW

Discussion in 'Ruby' started by David Benson, May 28, 2007.

  1. David Benson

    David Benson Guest

    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/.
     
    David Benson, May 28, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sam Smith
    Replies:
    0
    Views:
    1,189
    Sam Smith
    Oct 18, 2004
  2. xeno fears
    Replies:
    1
    Views:
    502
    Martin v. Löwis
    Oct 4, 2009
  3. Luis Lavena
    Replies:
    6
    Views:
    123
    Luis Lavena
    Oct 19, 2007
  4. Lars Eb
    Replies:
    4
    Views:
    151
    Lars Eb
    Nov 16, 2007
  5. Stefan Ram
    Replies:
    5
    Views:
    170
    Stefan Ram
    Mar 17, 2014
Loading...

Share This Page