<div dir="ltr">If you're using a newer Ubuntu environment, I'd suggest using a CentOS 5 docker container. Either that or the VM.<br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>- Chuck<br></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Mar 7, 2017 at 1:53 PM, Marcel Loose <span dir="ltr"><<a href="mailto:loose@astron.nl" target="_blank">loose@astron.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Michele,<br>
<br>
This could become a painful exercise. You basically have two options:<br>
1) Treat it as a cross-compilation project, or<br>
2) Create a virtual machine running CentOS 5.8 and do the build there.<br>
If I were you, I would go for the second option.<br>
<br>
Cheers,<br>
Marcel.<br>
<br>
Op 07-03-17 om 17:56 schreef Michele Portolan:<br>
<div class="HOEnZb"><div class="h5">> Hello,<br>
><br>
> I build on a Ubuntu machine (kernel 4.4.0-64-generic), but I need my<br>
> program to be executed on an old Cento 5.8 (kernel 2.6.18). I tried<br>
> compiling with "-static" to have static linking, but when I try to<br>
> execute I get "ERROR: Kernel too old!"<br>
><br>
> I therefore locally compiled a glibc with support for kernel 2.6.18 ...<br>
> but how can I have Cmake use it instead of the system one?<br>
><br>
> Thanks,<br>
><br>
><br>
> Michele<br>
><br>
<br>
<br>
</div></div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br></blockquote></div><br></div></div>