in reply to Is 5.6.1 just too old to be built?

gcc changed an error message since that source was last ... er... worked upon. There's actually a shellscript work around for this:
--- perl-5.8.0/makedepend.SH 2002-07-09 10:06:42.000000000 -0400 +++ perl-5.8.0.jet/makedepend.SH 2009-02-08 09:55:51.000000000 -050 +0 @@ -123,7 +123,7 @@ *.y) filebase=`basename $file .y` ;; esac case "$file" in - */*) finc="-I`echo $file | sed 's#/[^/]*$##`" ;; + */*) finc="-I`echo $file | sed 's#/[^/]*$##'`" ;; *) finc= ;; esac $echo "Finding dependencies for $filebase$_o." @@ -157,6 +157,7 @@ -e '/^#.*<builtin>/d' \ -e '/^#.*<built-in>/d' \ -e '/^#.*<command line>/d' \ + -e '/^#.*<command-line>/d' \ -e '/^#.*"-"/d' \ -e '/: file path prefix .* never used$/d' \ -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \

My patch is actually for perl 5.8, but something really similar should work on 5.6

-Paul

Replies are listed 'Best First'.
Re^2: Is 5.6.1 just too old to be built?
by Plankton (Vicar) on Apr 17, 2009 at 18:01 UTC

    Thanks Paul

    with some small amount of tweaking your patch worked!

    localhost:/usr/SD/perl/src/perl-5.6.1$ cat planktons_patch_to_makedepe +nd.SH --- makedepend.SH_BU 2009-04-17 13:43:34.000000000 -0400 +++ makedepend.SH 2009-04-17 13:58:32.000000000 -0400 @@ -121,7 +121,7 @@ *.y) filebase=`basename $file .y` ;; esac case "$file" in - */*) finc="-I`echo $file | sed 's#/[^/]*$##`" ;; + */*) finc="-I`echo $file | sed 's#/[^/]*$##'`" ;; *) finc= ;; esac $echo "Finding dependencies for $filebase$_o." @@ -154,6 +154,10 @@ $cppstdin $finc -I. $cppflags $cppminus <UU/$file.c | $sed \ -e '1d' \ + -e '/^#.*<builtin>/d' \ + -e '/^#.*<built-in>/d' \ + -e '/^#.*<command line>/d' \ + -e '/^#.*<command-line>/d' \ -e '/^#.*<stdin>/d' \ -e '/^#.*"-"/d' \ -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \