Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2001 11:51:52 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        "Nickolay A. Kritsky" <nkritsky@internethelp.ru>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: libc.so.x
Message-ID:  <20010604115151.A50651@student.uu.se>
In-Reply-To: <052001c0ecda$03a75ee0$0600a8c0@ibmka.internethelp.ru>; from nkritsky@internethelp.ru on Mon, Jun 04, 2001 at 01:37:44PM %2B0400
References:  <052001c0ecda$03a75ee0$0600a8c0@ibmka.internethelp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 04, 2001 at 01:37:44PM +0400, Nickolay A. Kritsky wrote:
>     Hi all.
> Such a question occured to me: i have file /usr/lib/libc.so.4 on 4.2
> box and /usr/lib/libc.so.3 on 3.3 box. Is this a 1:1 relation between
> number in the name of libc file and FreeBSD version?

No, not necessarily. While the developers try not to bump the version
number of libraries between major releases of FreeBSD you cannot rely
on that always being the case.

>     The reason for asking is: I have a program that did not want to
> run, shouting: "cannot find libc.so.3", on 4.2 machine, but when i
> just "cd /usr/lib && ln libc.so.4 libc.so.3" it run ok. So the main
> question is: what are the big differences between libc.so.4 and *.3 ,
> can i relie on a program run in such weird way ?
> 

No, you should not do it that way. Some of the changes between libc.3
and libc.4 might be incompatible. So a program compiled and linked
against libc.3 might not work correctly with libc.3 (And the other way
around is even less likely to work, since a program linked against
libc.so.4 might use some functions that did not exist in libc.3 .)

The correct way to fix that is to either:
1) Install the compat3x libraries on your 4.2 box. This can be done
   from sysinstall or if you do a 'make world' you should have the line
   'COMPAT3X= yes' in /etc/make.conf. This will install 3.x compatible
   libraries in /usr/lib/compat. This is probably the best solution.
or
2) Copy libc.so.3 from your 3.3 box to your 4.2 box.
or
3) Recompile the program on your 4.2 box



> Any help is appreciated.
> Thank you for your answers.
> 
> NKritsky - SysAdmin InternetHelp.Ru
> http://www.internethelp.ru
> e-mail: nkritsky@internethelp.ru
> 
> PS: Please cc me in reply, as i am not subscribed to the list.
> PPS: Sorry for my english, i am stiil working on it.  8-)
> 



-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010604115151.A50651>