Is it safe to run binaries on Fedora 17 that were built in Fedora 13? It's C++ code, compiled with g++, and we're using stl containers, posix socket library, and others.
Would it be possible to build the binaries on a Fedora 13 machine so they would work with a Fedora 17 machine?
Any advice would be appreciated.
Thanks, Alex
Most likely, if your binaries actually run, the results will be correct. Most libraries these days have "version checking". Of course the "and others" may be cause for concern if they are minor libraries that aren't compatible.
The "safe" way to avoid this sort of problem is to either: 1. Compile the binaries as static - meaning that the binary doesn't rely on shared libraries -> no problem with compatibility (the Linux kernel itself is generally safe over many generations - I have regularly changed from a 2.6 to a 3.8 kernel with no issues at work - at home I run Fedora 16 and 17 on my two machines, and binaries DO work between these). 2. Recompile on the new target system.