gcc 4.2 and perl

If you try to compile perl 5.8.8 with a newer version of gcc you will get a nice error:

make *** no rule to make <command line>

How to fix it ?

It seems that in recent gcc they switched from <command line> to <command-line> . apply the following patch and everythings should work fine.

==== //depot/perl/makedepend.SH#35 (xtext) ====
Index: perl/makedepend.SH
--- perl/makedepend.SH#34~19692~	2003-06-05 09:58:23.000000000 -0700
+++ perl/makedepend.SH	2006-07-25 11:42:26.000000000 -0700
@@ -167,6 +167,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#" \

One thought on “gcc 4.2 and perl

  1. Wasn’t it simpler to just replace the space with a . (dot), than add another line ?

    Just a wise crack 🙂

Comments are closed.