Configure failing why?

Samuel M. Smith smithsm at samuelsmith.org
Tue Nov 15 17:59:16 EST 2005


  cat > foo.cpp
int main(){return 0;}
c++ foo.cpp
  ll a.out
-rwxr-xr-x  1 root tsarm 12124 Nov 15 15:54 a.out
./a.out

but if I
gcc foo.cpp
ll a.out
-rw-r--r--  1 root tsarm 12060 Nov 15 15:55 a.out
but if I do it again
# gcc foo.cpp
ll a.out
-rwxr-xr-x  1 root tsarm 12060 Nov 15 15:58 a.out


On 15 Nov, 2005, at 15:40, Fredrik Lundh wrote:

> Samuel M. Smith wrote:
>
>> I am trying to build python2.4.2 on an arm 9 running Debian 3 Sarge
>
>> configure:1842: ./a.out
>> ./configure: line 1: ./a.out: Permission denied
>> configure:1845: $? = 126
>> configure:1854: error: cannot run C++ compiled programs.
>> If you meant to cross compile, use `--host'.
>> See `config.log' for more details.
>>
>> It appears that for some reason the a.out file that the configure
>> script is making is not getting execute permissions enable by the
>> configure script
>
> on a sane standard Unixoid system, the compiler is required to set the
> following permission flags
>
>     S_IRWXO | S_IRWXG | S_IRWXU
>
> if and only if the program was successfully compiled and linked.
>
> what happens if you do
>
>     $ cat >foo.cpp
>     int main(){ return 0; } <control-D>
>     $ c++ foo.cpp
>     $ ls -l a.out
>
> ?
>
> </F>
>
>
>
> -- 
> http://mail.python.org/mailman/listinfo/python-list

**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************




More information about the Python-list mailing list