help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!


From: Robert Heller
Subject: Re: HelloWorld.c CRASHES when moved from FC6 to FC3!!
Date: Fri, 09 Feb 2007 01:18:49 +0100

At Thu, 08 Feb 2007 15:02:00 -0800 Paul Pluzhnikov 
<ppluzhnikov-nsp@charter.net> wrote:

> 
> Robert Heller <heller@deepsoft.com> writes:
> 
> > These would be the RHEL 4.x compatibility packages.  They might do what
> > you need though,
> 
> I seriously doubt they will -- OP will still be compiling against
> newer libc and kernel headers, and linking against newer libc.so.
> 
> If it *does* work for non-trivial programs, please post an update.
> 
> Otherwise, the "standard" options are:
> - develop on the lowest release you plan to support (usually the
>   simplest option),
> - install a FC6-x86 -> FC3-x86 cross-compiler
> - use Apptools: http://autopackage.org/apbuild-apgcc.php
> 
> > by giving you an even older build chain then is normal
> > for either FC3 or FC6.  Generally, code built with an older build
> > chain, so long as it it not too old, will result in executables that
> > will run on a various newer systems.
> 
> But that says nothing about executables running on older systems
> then what they were built on. Build chain itself is likely not the
> problem, it's the libraries and headers that the executable uses.

*Usually* the libraries (the headers are not relevant once the
executable has been built) will support a program built with an older
version of the library.  Often if the executable was built with a newer
version of the library, it won't work properly with the older library.

The most cause of the OP's problem likely set of libraries that are
actually part of the build chain -- libgcc and/or libstdc++, rather
then glibc.

Although the *best* option would be to either upgrade his production
boxes to FC6 (to match his build boxes) OR downgrade his build boxes to
FC3 (to match his production boxes).

> 
> Cheers,

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
heller@deepsoft.com       -- Contract Programming: C/C++, Tcl/Tk
      


reply via email to

[Prev in Thread] Current Thread [Next in Thread]