How do I force a specific compiler in Configure/make

From: Jake (spamntrapf_at_yahoo.com)
Date: 01/18/05


Date: 18 Jan 2005 11:05:52 -0800

IBM RISC/6000
AIX 5.1 - 64-bit
Oracle 9i - 9.2.0.4 - 64-bit
Perl 5.8.6
DBI 1.46
DBD:Oracle 1.16

Hi Folks.

Last week I posted on comp.lang.perl.modules with questions
on compiling DBD:oracle. I have found it most stubborn in
whatever options I have chosen for perl and DBI - the make
test for DBD:oracle fails no matter what I have done in perl
and DBI (which passed all tests and successfully installed.)

One common factor to the failures: The command "perl
Makefile.PL" always starts with a warning:

Warning: You will may need to rebuild perl using the xlc_r compiler.^G
You may also need do: ORACCENV='cc=xlc_r'; export ORACCENV
Also see the README about the -p option

I have tried several options in an attempt to force perl to
get compiled with this xlc_r compiler:

- Configure -Dcc=xlc_r (plus other options)
- export ORACCENV=xlc_r; Configure ...
- export ORACCENV='cc=xlc_r; Configure ...

There are each from different sources, like README.aix for DBD:oracle
and the above warning.

After each of these attempts, I looked into the Makefile and
still found:
CC=cc_r

At one point I even edited the Makefile manually and forced
CC=xlc_r .
When the make started, I see it running cc_r again.

What can I do to force Configure to specify the compiler of
my choice inthe Makefile and have it obeyed throutout the
process. And when I'm over that hurdle, will that choice of
compiler automatically propagate to compilation of DBI and
DBD?

If it's in the README or INSTALL file, I messed it. A search
of these file for the word "compile" did not turn up any
useful option.

BTW, the README (for DBD) has scant information about the -p
option and I'm not experiencing core dumps anyway.
Thanks for any help here.

    -- Jacob (JSalomon at bn.com)



Relevant Pages

  • Re: Dont get DBI module installed
    ... You need to build DBI with the same C compiler that was used to build the version of Perl ... Install the new Perl into /usr/local. ...
    (perl.dbi.users)
  • How do I force a specific compiler in Configure/make
    ... whatever options I have chosen for perl and DBI - the make ... get compiled with this xlc_r compiler: ... At one point I even edited the Makefile manually and forced ...
    (comp.lang.perl.misc)
  • Re: -Wdeclaration-after-statement
    ... Writing Makefile for Term::Size ... included every time you build an extension (ie perl module whose source ... Could it be that there's some sort of compiler mismatch between the compiler ... overwrite the values of %Config keys by using ExtUtils::FakeConfig, ...
    (comp.lang.perl.modules)
  • Re: Fwd: DBD::Informix A configuration failure
    ... Perl doesn't think your compiler handles prototypes. ... Testing whether your Informix test environment will work... ... >> problems with the test program, you will need to revisit this ...
    (perl.dbi.users)
  • Re: ANNOUNCE: DBD:Oracle 1.18
    ... Well a warning in one compiler is better than and error in an other so I ... This might be a problem more with the older oracle OCI in your client. ... perl -Mblib t/26exe_array.t ...
    (perl.dbi.users)