White Paper: GNU C Library Compatibility Environment

An example



A very simple program can demonstrate the problems encountered when transferring binaries built on Red Hat Linux 6.0 to Red Hat Linux 5.2 systems. Imagine the following code in a file named hello.c:
#include <stdio.h>

int main(int argc, char **argv)
{
    fprintf(stdout, "Hello, world!\n");

    return 0;
}
   
When built on a 6.0 system using:
[msw@rhl60 msw]$ gcc -o hello hello.c
   
everything operates properly on program execution:
[msw@rhl60 msw]$ ./hello
Hello, world!
   
If this binary were to be transferred to a 5.2 based system the user would be disappointed upon its execution:
[msw@rhl52 msw]$ ./hello
Segmentation fault (core dumped)
   

 


Prev Table of Contents Next
Backwards Compatibility   Guidelines when using the compatibility system