develooper Front page | perl.perl5.porters | Postings from September 2008

Re: Perl-5.8.6 or Perl-5.8.5 Install/Build process on AIX 5.3 Make problem make: 1254-002 Cannot find a rule to create target <command-line> from dependencies. Stop.

Thread Previous | Thread Next
From:
Steve Peters
Date:
September 1, 2008 05:02
Subject:
Re: Perl-5.8.6 or Perl-5.8.5 Install/Build process on AIX 5.3 Make problem make: 1254-002 Cannot find a rule to create target <command-line> from dependencies. Stop.
Message ID:
fd7a59d30809010502k22a5bbefqb42c3db568046f10@mail.gmail.com
On Mon, Sep 1, 2008 at 6:00 AM, Arshad <arshad.moin@famsoft.com> wrote:
> Hello,
>            I am building perl-5.8.8 still i get the same err after patching
> file makedepend.SH with the follow lines at the end i added these lines
>
> else
>       $cppstdin $finc -I. $cppflags $cppminus <UU/$file.c >.cout 2>.cerr
>       $sed \
>           -e '1d' \
>           -e '/^#.*<stdin>/d' \
>           -e '/^#.*<builtin>/d' \
>           -e '/^#.*<built-in>/d' \
>           -e '/^#.*<command line>/d' \
>           -e '/^#.*<command-line>/d' \
>           -e '/^#.*"-"/d' \
>
>           -e '/^#.*"\/.*\/"/d' \
>           -e '/: file path prefix .* never used$/d' \
>           -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
>
>           -e 's/^[     ]*#[    ]*line/#/' \
>           -e '/^# *[0-9][0-9]* *[".\/]/!d' \
>           -e 's/^.*"\(.*\)".*$/'$filebase'\$(OBJ_EXT): \1/' \
>           -e 's/^# *[0-9][0-9]* \(.*\)$/'$filebase'\$(OBJ_EXT): \1/' \
>           -e 's|: \./|: |' \
>          -e 's|\.c\.c|.c|' $uwinfix .cout .cerr| \
>       $uniq | $sort | $uniq >> .deptmp
>
> #make
>
> Finding dependencies for pp_pack.o.
> Finding dependencies for pp_sort.o.
> Finding dependencies for miniperlmain.o.
> Finding dependencies for perlmain.o.
> Finding dependencies for opmini.o.
>        echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH
> makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n' >.shlist
> Updating makefile...
>         test -s perlmain.c && touch perlmain.c
>        cd x2p; make depend
>        sh ../makedepend MAKE=make
>        echo hash.c  str.c util.c walk.c | tr ' ' '\n' >.clist
> Finding dependencies for hash.o.
> Finding dependencies for str.o.
> Finding dependencies for util.o.
> Finding dependencies for walk.o.
>        echo Makefile.SH cflags.SH | tr ' ' '\n' >.shlist
> Updating makefile...
> -bash-3.00# make
> make: 1254-002 Cannot find a rule to create target <command-line> from
> dependencies.
> Stop.
>
> Tell me..how to apply patch please...i need this working... thanks again for
> very quick reply....
> On Mon, Sep 1, 2008 at 3:16 AM, H.Merijn Brand <h.m.brand@xs4all.nl> wrote:
>
>> On Mon, 1 Sep 2008 03:02:46 -0700, Arshad <arshad.moin@famsoft.com>
>> wrote:
>>
>> > Hi,
>> >       Thanks for the quick reply.
>> >
>> >    When i run make i get this err after patching that makedepend.SH
>>
>>
>> Then you did not apply the patch correctly.
>>
>> That section should look somewhat like this after the patch:
>> --8<---
>>    else
>>        $cppstdin $finc -I. $cppflags $cppminus <UU/$file.c >.cout 2>.cerr
>>        $sed \
>>            -e '1d' \
>>            -e '/^#.*<stdin>/d' \
>>            -e '/^#.*<builtin>/d' \
>>            -e '/^#.*<built-in>/d' \
>>            -e '/^#.*<command line>/d' \
>>            -e '/^#.*<command-line>/d' \
>>            -e '/^#.*"-"/d' \
>>
>>            -e '/^#.*"\/.*\/"/d' \
>>            -e '/: file path prefix .* never used$/d' \
>>            -e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
>>
>>            -e 's/^[     ]*#[    ]*line/#/' \
>>            -e '/^# *[0-9][0-9]* *[".\/]/!d' \
>>            -e 's/^.*"\(.*\)".*$/'$filebase'\$(OBJ_EXT): \1/' \
>>            -e 's/^# *[0-9][0-9]* \(.*\)$/'$filebase'\$(OBJ_EXT): \1/' \
>>            -e 's|: \./|: |' \
>>           -e 's|\.c\.c|.c|' $uwinfix .cout .cerr| \
>>        $uniq | $sort | $uniq >> .deptmp
>> -->8---
>>
>> And you will probably need a 'make distclean' and your configure again
>> before proceeding, as you changed a basic file.
>>
>> Still better, please start with perl-5.8.8 or 5.10.0. 5.8.8 might still
>> need that change.
>>
>> > I am very close please help me with this issue......
>> > ~
>> > ~
>> > "makedepend.SH" 262 lines, 7528 characters
>> > -bash-3.00# make
>> >         sh ./makedepend.SH
>> > Extracting makedepend (with variable substitutions)
>> > ./makedepend.SH[255]: 0403-057 Syntax error at line 255 : `do' is not
>> > expected.
>> > make: 1254-004 The error code from the last command is 2.
>>
>>
>> --
>>  H.Merijn Brand          Amsterdam Perl Mongers  http://amsterdam.pm.org/
>> using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00,
>> 11.11, 11.23, and 11.31, SuSE 10.1, 10.2, and 10.3, AIX 5.2, and Cygwin.
>> http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
>> http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/
>>
>>
>

This may be a better idea for you.  Just download the makedepend.SH
from 5.8.8 and use it
<http://search.cpan.org/src/NWCLARK/perl-5.8.8/makedepend.SH>

Steve Peters
steve@fisharerojo.org

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About