in reply to Installing Perl 5.18.0 in Mac OS X with PerlBrew

Earlier on in the Configure output there should be a line like
Your cpp writes the filename in the 4th field of the line.
What does it say in your case? In particular, I suspect it will give '???' for the field number

Dave.

Replies are listed 'Best First'.
Re^2: Installing Perl 5.18.0 in Mac OS X with PerlBrew
by coolmichael (Deacon) on Jul 04, 2013 at 00:59 UTC

    That's exactly what is says:

    Your cpp writes the filename in the ??? field of the line.
      In that case, Configure is failing to parse the output of the C preprocessor. Look at he following code, around line 5413:
      echo '#include <stdio.h>' > foo.c $cat >fieldn <<EOF $startsh $cppstdin $cppflags $cppminus <foo.c 2>/dev/null | \ $grep '^[ ]*#.*stdio\.h' | \ while read cline; do pos=1 set \$cline while $test \$# -gt 0; do if $test $testaccess \`echo \$1 | $tr -d '"'\`; then echo "\$pos" exit 0 fi shift pos=\`expr \$pos + 1\` done done EOF
      You might want to edit Configure so that it shows the exact command being executed on the $cppstdin line, then run it manually and what output you get.

      Dave.