LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-22-2013, 03:03 PM   #1
plafratt
LQ Newbie
 
Registered: Feb 2013
Posts: 5

Rep: Reputation: Disabled
Problem with Libraries when Compiling for older version of Linux


I have two machines: one with Ubuntu 12.04 and another with Ubuntu 10.04. I want to compile on the 12.04 machine for the 10.04 machine, but I am running into the problem that the code compiled on 12.04 is looking for glibc 2.15, but 10.04 has glibc 2.11.1.

Is there any straightforward way to compile for Ubuntu 10.04 on 12.04?

("Straightforward" meaning a way that doesn't require that I be a compiler guru.)

Thanks,
plafratt
 
Old 03-23-2013, 08:02 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,028

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
What exactly are trying you compile? And why not upgrade that 10.04 to something newer? Is that 10.04 a server or desktop? Desktop support end at April 2013, almost there.

Regards
 
Old 03-23-2013, 10:48 AM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by plafratt View Post
I have two machines: one with Ubuntu 12.04 and another with Ubuntu 10.04. I want to compile on the 12.04 machine for the 10.04 machine, but I am running into the problem that the code compiled on 12.04 is looking for glibc 2.15, but 10.04 has glibc 2.11.1.

Is there any straightforward way to compile for Ubuntu 10.04 on 12.04?

("Straightforward" meaning a way that doesn't require that I be a compiler guru.)

Thanks,
plafratt
The simplest way is to compile for Ubuntu 10.04 on Ubuntu 10.04. Or earlier.
If you for some reason can't/won't compile here you can try to compile on 12.04 in usual way
and then use statifier (http://statifier.sf.net) to convert your dynamically linked executable into portable one.
Another options is Ermine (http://magicErmine.com) Statifier is free, but don't like systems with memory randomization.
Ermine is commercial, but able handle it.
 
Old 03-25-2013, 11:02 AM   #4
plafratt
LQ Newbie
 
Registered: Feb 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for the responses.

@ukiuki: I am trying to build a simple Qt application. Upgrading the OS isn't an option. I could explain why, but it isn't really worth the time. (Basically, it is problem with my IT department that is out of my hands.)

@Valery: Thanks, I will consider Statifier.

Someone mentioned to me the option of compiling the QT application statically. Does anyone know if this will allow me to avoid the problem I'm having with the old version of GLIBC on the old Linux machine?

Thanks,
Patrick

Last edited by plafratt; 03-25-2013 at 11:03 AM.
 
  


Reply

Tags
compiling, libraries, linking


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
Need to match older machine to an older version of Linux fredb47 Linux - Distributions 10 10-27-2011 11:08 AM
GTK+ compile problems - compiling newest version on slightly older OS versaulis Linux - Software 12 09-25-2008 11:48 AM
Compiled libtorrent but future compiling calls upon older version in repos. granduke Fedora 4 05-13-2008 07:14 PM


All times are GMT -5. The time now is 05:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration