LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   compile with different libc for different distro (https://www.linuxquestions.org/questions/programming-9/compile-with-different-libc-for-different-distro-563511/)

nuttygraphics 06-21-2007 11:46 AM

compile with different libc for different distro
 
Hi all,

I recently ported my code to linux, and am still not very safe here.

My project is a shared library which is a plugin to some other software. It builds fine on my ubuntu 6 box. Unfortunately I need a build for RHEL 4, which is not available to me.
I tried fc3, as it is the older brother of RHEL4, but couldn't get my IDE to build, which is codeblocks. Codeblocks does not use makefiles and therefore I am stuck somehow.

I assume, by linking against libc-2.3 my binary should run on RHEL4. Is this possible or a wrong assumption?

Is there a clean way to install libc-2.3 on ubuntu 6 together with headers and whatever I need?

The binary uses xerces-c and boost libraries which I built myself and distribute along with my binary. So I assume dependencies on a specific distro should be small.

Is there a better headline for this or a better forum?

thank you all for your help, I am really in a trouble, but don't know how to proceed.

Millenniumman 06-22-2007 03:26 PM

CentOS is the same thing as RedHat, so you might try that.

nuttygraphics 06-25-2007 05:54 AM

CentOS == RedHat
 
Quote:

Originally Posted by Millenniumman
CentOS is the same thing as RedHat, so you might try that.


Thank you for your help. Seems like a valuable hint. Just for clarity, does it mean it is even more like RedHat than Fedora?

Well, anyway I will start the download and try.

Millenniumman 06-25-2007 10:38 AM

It is built with the same source code as RedHat, but without the trademarked RedHat images. In effect, it is exactly the same. Fedora is built using different a different (but closely related) codebase, so it does work somewhat differently.

If what you want to do works on RedHat, chances are 99% it works in CentOS.


All times are GMT -5. The time now is 07:15 AM.