LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-21-2007, 11:46 AM   #1
nuttygraphics
LQ Newbie
 
Registered: Jun 2007
Location: MUC
Distribution: ubuntu, fedora
Posts: 2

Rep: Reputation: 0
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.
 
Old 06-22-2007, 03:26 PM   #2
Millenniumman
Member
 
Registered: Apr 2006
Posts: 81

Rep: Reputation: 15
CentOS is the same thing as RedHat, so you might try that.
 
Old 06-25-2007, 05:54 AM   #3
nuttygraphics
LQ Newbie
 
Registered: Jun 2007
Location: MUC
Distribution: ubuntu, fedora
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 06-25-2007, 10:38 AM   #4
Millenniumman
Member
 
Registered: Apr 2006
Posts: 81

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libc++ compile error knobby67 Programming 6 05-11-2007 03:19 PM
libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.2) needed for Linux 7.3.1 vivek_thampy Linux - Software 1 08-09-2004 04:12 PM
Shouldn't a distro compile cleanly? Tino27 Linux - General 2 11-08-2003 07:30 PM
Trying to compile older make of libc, getting error Cecil Linux - Software 0 07-16-2003 02:10 AM
libc.so verse libc.so.5 markstevens Linux - Software 4 06-19-2003 11:41 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration