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 < [email protected]> 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 <[email protected]> #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."
