[Python-bugs-list] [ python-Bugs-533188 ] configure.in Assumes cc_r Exists on AIX.
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 22 Mar 2002 09:10:55 -0800
Bugs item #533188, was opened at 2002-03-21 17:12
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=533188&group_id=5470
Category: Build
Group: Python 2.2.1 candidate
Status: Open
Resolution: None
Priority: 5
Submitted By: Ralph Corderoy (ralph)
Assigned to: Michael Hudson (mwh)
Summary: configure.in Assumes cc_r Exists on AIX.
Initial Comment:
Running plain `./configure' on an AIX 3.2.5 machine
fails.
configure:966: checking whether the C compiler
(cc_r ) works
configure:982: cc_r -o conftest conftest.c
1>&5
./configure: cc_r: not found
configure: failed program was:
#line 977 "configure"
#include "confdefs.h"
main(){return(0);}
Here's details about the machine.
$ uname -a
AIX anon 2 3 000038834100
$ oslevel
>3250
cc_r doesn't exist. cc does. Running configure thus
$ ./configure --without-gcc
as a workaround lets configure successfully complete.
configure.in assumes $CC should be cc_r if no
--with-gcc or --without-gcc option is given and if the
system is AIX. This seems wrong. Instead, perhaps it
should search for the first cc that works with an
order of preference to cc_r, then cc.
----------------------------------------------------------------------
>Comment By: Ralph Corderoy (ralph)
Date: 2002-03-22 17:10
Message:
Logged In: YES
user_id=911
PS. No, it doesn't continue to build sucessfully. But
that's another bug report I've yet to raise and is
unrelated AFAICS to this problem.
----------------------------------------------------------------------
Comment By: Ralph Corderoy (ralph)
Date: 2002-03-22 17:08
Message:
Logged In: YES
user_id=911
I've attached a possible patch. It seems right in theory
but I'm not experienced with autoconf. Unfortunately, I
can't test the patch because I can't re-generate configure
on this system -- I guess I have incompatible versions of
autoconf, automake, etc. If you want to email me the
resulting configure I'd be happy to try it.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2002-03-22 10:06
Message:
Logged In: YES
user_id=6656
Thanks for the report. Can you come up with a patch? I can
probably bodge something together if not, but it's obviously
easier to test.
Does the build actually work after
./configure --without-gcc
?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=533188&group_id=5470