newbie: configure stops on aix
Trent Mick
trentm at ActiveState.com
Sat Oct 21 16:23:47 EDT 2000
On Sat, Oct 21, 2000 at 12:20:45PM +0000, cgicq at my-deja.com wrote:
> Hi
> I have a server running AIX 4.3
> with visualAge 5.0 as the compiler.
>
> When I run the configure script, I get the
> following error:
>
> configure: error: can not run test program while
> cross compiling
>
> And it stops...
>
> What can I do??
I saw this when working on AIX/5L (aka Monterey, aka AIX for Itanium). As
Fredrik says it indicates that the small test C program used by the configure
script to test if the C compiler is working failed. COnfigure decides that
this means the compiler is a cross-compiler (which it probably is not).
THis is the program that configure uses (line 909 in configure):
----------------------------------------------------------------------
#line 909 "configure"
#include "confdefs.h"
main(){return(0);}
----------------------------------------------------------------------
This failed with AIX/5L's main C compiler (compiler bug). To date, to compile
python on AIX/5L I have to modify this little test C program to actually have
a variable in it, some kind of data, or something. I don't really know what
the condition is but this works:
----------------------------------------------------------------------
int x;
#line 909 "configure"
#include "confdefs.h"
main(){return(0);}
----------------------------------------------------------------------
Maybe that will work for you too.
Trent
--
Trent Mick
TrentM at ActiveState.com
More information about the Python-list
mailing list