Bug #4999

configure.in issues are breaking the build under MinGW

Added by Luis Lavena over 3 years ago. Updated over 3 years ago.

[ruby-core:37888]
Status:Closed
Priority:Normal
Assignee:-
ruby -v:ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] Backport:

Description

At r32461, configure.in is generating a warning during autoconf:

sh -c "autoconf"
): you should use literals: AC_LIBOBJ(\
/mingw/src/autoconf/26/autoconf-2.67/lib/autoconf/general.m4:2929: AC_LIBOBJ is expanded from...
/mingw/src/autoconf/26/autoconf-2.67/lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
/mingw/src/autoconf/26/autoconf-2.67/lib/autoconf/functions.m4:60: AC_CHECK_FUNC is expanded from...
/mingw/src/autoconf/26/autoconf-2.67/lib/autoconf/functions.m4:133: AC_REPLACE_FUNCS is expanded from...
configure.in:1354: the top level

Which results in the following failure during configure:

checking for strerror... yes
../../../../ruby/configure: command substitution: line 13981: unexpected EOF while looking for matching "'
../../../../ruby/configure: command substitution: line 13982: syntax error: unexpected end of file
checking for "
if eval test "x$" = xyes; then :
printf %s\n #define... ../../../../ruby/configure: eval: line 2204: unexpected EOF while looking for matching
"'
../../../../ruby/configure: eval: line 2205: syntax error: unexpected end of file
../../../../ruby/configure: command substitution: line 13987: unexpected EOF while looking for matching "'
../../../../ruby/configure: command substitution: line 13988: syntax error: unexpected end of file
../../../../ruby/configure: line 13987: $as_tr_cpp
: command not found
../../../../ruby/configure: eval: line 2251: unexpected EOF while looking for matching '
../../../../ruby/configure: eval: line 2252: syntax error: unexpected end of file
../../../../ruby/configure: eval: line 2256: unexpected EOF while looking for matching
'
../../../../ruby/configure: eval: line 2257: syntax error: unexpected end of file
yes
checking for isnan... (cached) yes
checking for finite... (cached) yes
checking for isinf... (cached) yes
checking for hypot... yes
checking for acosh... yes
checking for erf... yes
checking for tgamma... yes
checking for lgamma_r... no
checking for cbrt... yes
../../../../ruby/configure: command substitution: line 14178: unexpected EOF while looking for matching "'
../../../../ruby/configure: command substitution: line 14179: syntax error: unexpected end of file
../../../../ruby/configure: line 14262: syntax error near unexpected token
('
../../../../ruby/configure: line 14262: ` $as_echo_n "(cached) " >&6'

History

#1 Updated by Shyouhei Urabe over 3 years ago

Hmm, the autoconf I used to ship the 1.8.7 was autoconf 2.65. Is it perhaps not a MinGW specific issue but an autoconf 2.67 problem?

#2 Updated by Luis Lavena over 3 years ago

  • Status changed from Open to Closed

Shyouhei Urabe wrote:

Hmm, the autoconf I used to ship the 1.8.7 was autoconf 2.65. Is it perhaps not a MinGW specific issue but an autoconf 2.67 problem?

Hmn, I've entered 1.8.7-p334 in ruby -v field because is the base ruby I use to build trunk, but this worked perfectly a few days ago (last time I build trunk)

I've been using autoconf 2.67 since last year, which means something that was committed in the past days on trunk is affecting it.

I just reset my working copy, erased any possible temporary directories and tried again and this time neither autoconf raised warnings and configure completed successfully.

Sorry for the noise.

Also available in: Atom PDF