From owner-freebsd-emulation@FreeBSD.ORG Mon Feb 27 17:20:05 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73C4A16A420 for ; Mon, 27 Feb 2006 17:20:05 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08F8F43D79 for ; Mon, 27 Feb 2006 17:19:56 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5FECD.dip.t-dialin.net [84.165.254.205]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id k1RH58tE075908; Mon, 27 Feb 2006 18:05:08 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id k1RHJo21045430; Mon, 27 Feb 2006 18:19:51 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Mon, 27 Feb 2006 18:19:50 +0100 From: Alexander Leidinger To: Boris Samorodov Message-ID: <20060227181950.079e44f3@Magellan.Leidinger.net> In-Reply-To: <16934979_-_@srv.sem.ipt.ru> References: <20060227111759.GC19451@math.jussieu.fr> <4402E4E1.1010208@andric.com> <20060227121512.GA23561@math.jussieu.fr> <200602272329.47792.doconnor@gsoft.com.au> <16934979_-_@srv.sem.ipt.ru> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new Cc: Daniel O'Connor , freebsd-emulation@freebsd.org Subject: Re: linux_base and libreadline.so symlink (was: Re: Matlab) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2006 17:20:05 -0000 Am Mon, 27 Feb 2006 16:26:20 +0300 schrieb Boris Samorodov : > > Unfortunately it does not just ignore the fact it's a FreeBSD binary - it > > blows up. > > > You can try adding a manual symlink - I have libreadline.so.4 from linux_base > > but not libreadline.so, ie I suggest you do this.. > > cd /compat/linux/usr/lib > > ln -s libreadline.so.4 libreadline.so > > Why didn't linux distribution do this symlink? > Should our linux_base port do it (as well as for libtermcap.so and > maybe others)? The dynamic linker should have references to specific versions of a library. The symlinks are typically only needed when compiling (more correctly: linking) a program. It may be the case that matlab opens the lib via dlopen(3), but I would expect that other libs are dlopen'ed then too, not only libreadline. I suggest to ktrace(1) or truss(1) matlab to determine what it tries to do. Bye, Alexander. -- "One world, one web, one program" -- Microsoft promotional ad "Ein Volk, ein Reich, ein Fuehrer" -- Adolf Hitler http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7 WL http://www.amazon.de/exec/obidos/registry/1FZ4DTHQE9PQ8/ref=wl_em_to/