From owner-freebsd-questions Mon Jun 4 2:52:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by hub.freebsd.org (Postfix) with ESMTP id 5690A37B401 for ; Mon, 4 Jun 2001 02:52:11 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailf.telia.com (8.11.2/8.11.0) with ESMTP id f549q9V24136 for ; Mon, 4 Jun 2001 11:52:09 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id LAA20458 for ; Mon, 4 Jun 2001 11:52:08 +0200 (CEST) Received: (qmail 50688 invoked by uid 1001); 4 Jun 2001 09:51:52 -0000 Date: Mon, 4 Jun 2001 11:51:52 +0200 From: Erik Trulsson To: "Nickolay A. Kritsky" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: libc.so.x Message-ID: <20010604115151.A50651@student.uu.se> Mail-Followup-To: "Nickolay A. Kritsky" , freebsd-questions@FreeBSD.ORG References: <052001c0ecda$03a75ee0$0600a8c0@ibmka.internethelp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <052001c0ecda$03a75ee0$0600a8c0@ibmka.internethelp.ru>; from nkritsky@internethelp.ru on Mon, Jun 04, 2001 at 01:37:44PM +0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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-) > -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message