[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!
From: |
troubled_gcc_user |
Subject: |
Re: HelloWorld.c CRASHES when moved from FC6 to FC3!! |
Date: |
Thu, 08 Feb 2007 14:55:00 -0600 |
User-agent: |
slrn/0.9.8.1pl1 (Linux) |
On Thu, 08 Feb 2007 21:35:37 +0100, Robert Heller <heller@deepsoft.com> wrote:
> At Thu, 08 Feb 2007 12:53:54 -0600 troubled_gcc_user@aol.com wrote:
>
>>
>> I wrote this little program hello.c and compiled it on Fedora Core
>> 6. It gives a Floating Point Error on Fedora Core 3. What is going on
>> here????????
>>
>> My problem, obviously, lies with a larger app that I compile on FC6
>> and want to run on FC3, this example is just an illustration of the
>> problem. I am desperate. I need to solve this shit.
>>
>> See output here:
>>
>> FC6:~/tmp ==>cat hello.c
>> #include <stdio.h>
>> #include <stdlib.h>
>>
>> int main( int argtc, char * argv[] ) {
>>
>> printf( "Hello\n" );
>>
>> exit( 0 );
>> }
>> FC6:~/tmp ==>gcc -o hello hello.c
>> FC6:~/tmp ==>./hello
>> Hello
>>
>> @@@@@ Then I move it to a Fedora Core 3 machine and run it:
>>
>> FC3: ==>./hello
>> Floating point exception (core dumped)
>>
>> FC3: ==>strace ./hello
>> execve("./hello", ["./hello"], [/* 63 vars */]) = 0
>> brk(0) = 0x85ff000
>> old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
>> -1, 0) = 0xb7f4b000
>> +++ killed by SIGFPE (core dumped) +++
>> Process 11101 detached
>
> I'm guessing you did not re-compile for FC3?
Correct.
> Most likely the Glibc is different between FC6 and FC3 and the FC6
> build is not (by default) downward compatible. What happens when
> you re-compile it *under* FC3?
I am sure that it will work fine -- but our build boxes ARE FC6 and
out production boxes ARE FC3.
I need to find a solution to building downward compatible apps under
FC6 that would run on FC3.
I really need your help here.
Thanks
tgu
- HelloWorld.c CRASHES when moved from FC6 to FC3!!, troubled_gcc_user, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Robert Heller, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!,
troubled_gcc_user <=
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Robert Heller, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, troubled_gcc_user, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Robert Heller, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Paul Pluzhnikov, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Robert Heller, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Paul Pluzhnikov, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Ignoramus25565, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Paul Pluzhnikov, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Ignoramus25565, 2007/02/08
- Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!, Paul Pluzhnikov, 2007/02/08