LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-10-2005, 10:51 AM   #1
Magik
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
Multiple glibc versions on Debian Sarge


Hi.

I'm searching for precompiled Debian packages with glibc 2.1 or at least glibc 2.2 so I can link to these old versions.

Does anybody know where I could find such?
 
Old 06-10-2005, 12:09 PM   #2
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Rep: Reputation: 30
Ain't glibc backwards compatible??

Also, you will need to specify the version for each glibc shared object you are linking to, otherwise the system will link you to the latest glibc. This will be problematic because there is no way to say "1.2 or less" for example, you would be locked to a single version. Also you will need to construct the link to the shared objects manually. "stdio.h" and other default units will link you to the latest glibc available on the user machine.
 
Old 06-10-2005, 01:06 PM   #3
Magik
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Yea, it is.
My problem is Sarge default to 2.3 and it seems there are still a lot of 2.1 users out there, so I wanna compile my stuff against 2.1 for them.
I can't find a precompiled 2.1 glibc anywhere, tho, and I've not yet succeeded in compiling 2.1 from source myself. :-(
 
Old 06-10-2005, 08:44 PM   #4
sekelsenmat
Member
 
Registered: Apr 2005
Location: São Paulo - Brazil
Distribution: Mageia Linux 1
Posts: 353

Rep: Reputation: 30
Remember that you don't "link" your program to glibc 2.1, you link your program to glibc 2.1 *interface units* (The link to the shared object is resolved at run time by the OS). So you don't need glibc 2.1, you need glibc 2.1 - development package - in order to link to glibc 2.1 interface units. I would know where to find a rpm for that .... try googling "debian packages" for a repository of debian packages on the web, there you should look for glibc-devel 2.1.

Also, the interface units to glibc will link you to the latest glibc available in users machine, so I think that if you use only stuff that was not introduced in 2.3 your program will already be compatible with glibc 2.1 (maybe).

Last edited by sekelsenmat; 06-10-2005 at 08:46 PM.
 
Old 06-21-2005, 04:49 PM   #5
Magik
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I still had no luck googling for old glibc-dev Debian packages. If you had a link or something that would be great. Is there a way to maybe get the old Woody files somewhere?
 
  


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
using multiple glibc versions on slackware 10.1 gnp Slackware 7 06-01-2005 03:04 PM
Two glibc versions, one system: Possible? ellakano Linux - Software 3 09-05-2004 03:28 PM
Multiple versions of GLIBC El Craigo Red Hat 2 08-11-2004 11:14 PM
Why do we need so many versions of glibc? deanbrown3d Linux - Newbie 4 06-29-2004 11:17 AM
versions of Glibc elwis Linux - Software 3 12-12-2003 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:18 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
Open Source Consulting | Domain Registration