develooper Front page | perl.dbi.users | Postings from September 2009

Re: make: 1254-004 The error code from the last command is 127.

Thread Previous
From:
Jonathan Leffler
Date:
September 8, 2009 10:13
Subject:
Re: make: 1254-004 The error code from the last command is 127.
Message ID:
844b8e1c0909081013w6f0a3c08q632c61c7156e89ef@mail.gmail.com
YOu have to build extensions with the compiler used to build Perl.

Either get the AIX C compiler or rebuild Perl with GCC.


On Tue, Sep 8, 2009 at 3:36 AM, Putrino Nunzio ABRAXAS INFORMATIK AG <
Nunzio.Putrino@abraxas.ch> wrote:

> I've to install DBI and DBD::Oracle
> <http://www.pythian.com/news/dbd-oracle>  on AIX (see APPENDIX for all
> details) version 6.1.
>
> [...snip...]
> Unfortunately, we don't have the cc-Compiler.
>
> Therefore, whe I launch the "make" utility I get the error:
>
>        cc_r -c    -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPENDNEED_PTHREAD_INIT -q32
> -D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.609\"
> -DXS_VERSION=\"1.609\"  "-I/u
> sr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"   Perl.c
> /bin/sh: cc_r:  not found.
> make: 1254-004 The error code from the last command is 127.
>
>
> Because we have only gcc-4.2.0-3 installed, I'd modify the current
> make-file and use the macro
>
>  "make MAKERULES=/<my_pathname/nunzio_make"
>
>  by modifying the value for CC=cc  to   CC=gcc-4.2.0-3
>
> The problem and therefore the reason for this mails is: Do you possible
> have the compiler option for gcc such that I can substitute the
> cc-comand?
>
>
>          cc_r -c    -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
> -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
> -q32 -D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.609\"
> -DXS_VERSION=\"1.609\"  "-I/u
> sr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"   Perl.c
>
>

No - you can't realistically persuade GCC to behave as a surrogate for the
AIX compiler.  It is incredibly hard to do, and the alternatives are much
simpler.



-- 
Jonathan Leffler <jonathan.leffler@gmail.com>  #include <disclaimer.h>
Guardian of DBD::Informix - v2008.0513 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."

Thread Previous


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