Fedora Linux Support Community & Resources Center
Old 11th May 2006, 06:12 PM
mtk Offline
Registered User
Join Date: Apr 2004
Posts: 194
building programs on FC5 (64 bits) for FC4 (64 bits)

it seems possible in many cases to build a binary on FC5 (64 bits) and run it on FC4 (64 bits). many of the libraries (e.g. 5/7th of the libraries in /lib and /usr/lib) have the same version number. but one attempt to do so resulted in a runtime error for libc while another didn't. and i'm curious about how it happens.

e.g. if you build perl from scratch on FC5 and try to run it on FC4, it fails with the error:

/lib64/libc.so.6: version `GLIBC_2.4' not found

even though the binary is bound to /lib64/libc.so.6 and that file exists on both FC5 and FC4. but if you build something trivial, e.g. the canonical C "hello world" program, or even some mildly complex programs, they bind to /lib64/libc.so.6 successfully and run on both systems.

where is this hidden version info and how is it selectively invoked?

Reply With Quote
Old 15th May 2006, 01:13 PM
giulix Offline
Join Date: Oct 2005
Location: CE(S)T
Posts: 3,242
ld -soname=name, perhaps...
Asus K55VD, i5 3230M - Productivity/Programming (F24)
Asus M32CD - i7-6700, Asus STRIX-GTX970-DC2OC-4GD, 1x8 GB Sk Hynix 2133 MHz DDR4 - Gaming (W10)
HP Proliant DL 360 G5 - Heavy lifting (CentOS 7.2)
Reply With Quote
Old 16th May 2006, 06:36 AM
Jman Offline
Registered User
Join Date: Mar 2004
Location: Minnesota, USA
Age: 31
Posts: 7,909
The perl rpm spec file has a bit of magic to make it configure x86_64 correctly. http://cvs.fedora.redhat.com/viewcvs...evel/perl.spec
Reply With Quote

bits, building, fc4, fc5, programs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
4G of RAM with 32 bits? tictac Hardware & Laptops 7 17th February 2009 03:04 AM
32 bits livna packages on 64 bits fedora 8 RGB Using Fedora 3 25th June 2008 01:34 PM
Firefox 64 bits and 32 bits Marcolux Using Fedora 1 24th May 2006 01:41 AM
Main difference between 32 bits and 64 bits lvthn Using Fedora 4 11th June 2005 06:39 PM

Current GMT-time: 21:06 (Sunday, 20-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat