Ruby 1.8.7 fails to build -> port install ruby ---> Computing dependencies for ruby ---> Fetching gperf ---> Verifying checksum(s) for gperf ---> Extracting gperf ---> Configuring gperf ---> Building gperf ---> Staging gperf into destroot ---> Installing gperf @3.0.4_0 ---> Activating gperf @3.0.4_0 ---> Cleaning gperf ---> Fetching libiconv ---> Verifying checksum(s) for libiconv ---> Extracting libiconv ---> Applying patches to libiconv ---> Configuring libiconv ---> Building libiconv ---> Staging libiconv into destroot ---> Installing libiconv @1.13_0 ---> Activating libiconv @1.13_0 ---> Cleaning libiconv ---> Fetching ncursesw ---> Verifying checksum(s) for ncursesw ---> Extracting ncursesw ---> Configuring ncursesw ---> Building ncursesw ---> Staging ncursesw into destroot ---> Installing ncursesw @5.7_0+darwin_10 ---> Activating ncursesw @5.7_0+darwin_10 ---> Cleaning ncursesw ---> Fetching ncurses ---> Verifying checksum(s) for ncurses ---> Extracting ncurses ---> Configuring ncurses ---> Building ncurses ---> Staging ncurses into destroot ---> Installing ncurses @5.7_0+darwin_10 ---> Activating ncurses @5.7_0+darwin_10 ---> Cleaning ncurses ---> Fetching zlib ---> Verifying checksum(s) for zlib ---> Extracting zlib ---> Applying patches to zlib ---> Configuring zlib ---> Building zlib ---> Staging zlib into destroot ---> Installing zlib @1.2.3_3 ---> Activating zlib @1.2.3_3 ---> Cleaning zlib ---> Fetching openssl ---> Verifying checksum(s) for openssl ---> Extracting openssl ---> Applying patches to openssl ---> Configuring openssl ---> Building openssl ---> Staging openssl into destroot ---> Installing openssl @0.9.8k_0+darwin ---> Activating openssl @0.9.8k_0+darwin ---> Cleaning openssl ---> Fetching readline ---> Verifying checksum(s) for readline ---> Extracting readline ---> Applying patches to readline ---> Configuring readline ---> Building readline ---> Staging readline into destroot ---> Installing readline @6.0.000_1+darwin ---> Activating readline @6.0.000_1+darwin ---> Cleaning readline ---> Building ruby Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ruby/work/ruby-1.8.7-p174" && /usr/bin/make -j2 all " returned error 2 Command output: compiling digest/sha2 make[1]: Nothing to be done for `all'. compiling dl make[1]: Nothing to be done for `all'. compiling etc make[1]: Nothing to be done for `all'. compiling fcntl make[1]: Nothing to be done for `all'. compiling gdbm make[1]: Nothing to be done for `all'. compiling iconv make[1]: Nothing to be done for `all'. compiling io/wait make[1]: Nothing to be done for `all'. compiling nkf make[1]: Nothing to be done for `all'. compiling openssl make[1]: Nothing to be done for `all'. compiling pty make[1]: Nothing to be done for `all'. compiling racc/cparse make[1]: Nothing to be done for `all'. compiling readline /usr/bin/gcc-4.2 -I. -I../.. -I../../. -I../.././ext/readline -DHAVE_READLINE_READLINE_H -DHAVE_READLINE_HISTORY_H -DHAVE_RL_FILENAME_COMPLETION_FUNCTION -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_DEPREP_TERM_FUNCTION -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_BASIC_WORD_BREAK_CHARACTERS -DHAVE_RL_COMPLETER_WORD_BREAK_CHARACTERS -DHAVE_RL_BASIC_QUOTE_CHARACTERS -DHAVE_RL_COMPLETER_QUOTE_CHARACTERS -DHAVE_RL_FILENAME_QUOTE_CHARACTERS -DHAVE_RL_ATTEMPTED_COMPLETION_OVER -DHAVE_RL_LIBRARY_VERSION -DHAVE_RL_EVENT_HOOK -DHAVE_RL_CLEANUP_AFTER_SIGNAL -DHAVE_REPLACE_HISTORY_ENTRY -DHAVE_REMOVE_HISTORY -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -arch x86_64 -c readline.c readline.c: In function 'username_completion_proc_call': readline.c:730: error: 'username_completion_function' undeclared (first use in this function) readline.c:730: error: (Each undeclared identifier is reported only once readline.c:730: error: for each function it appears in.) make[1]: *** [readline.o] Error 1 make: *** [all] Error 1 Error: Status 1 encountered during processing.