From owner-freebsd-emulation@FreeBSD.ORG Mon Sep 27 12:20:52 2010 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B00BA10656C2 for ; Mon, 27 Sep 2010 12:20:52 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 656BB8FC19 for ; Mon, 27 Sep 2010 12:20:52 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3BBAB.dip.t-dialin.net [87.179.187.171]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 712C684400C; Mon, 27 Sep 2010 14:20:47 +0200 (CEST) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 0BB7E1881; Mon, 27 Sep 2010 14:20:43 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o8RCKhAf061647; Mon, 27 Sep 2010 14:20:43 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 27 Sep 2010 14:20:43 +0200 Message-ID: <20100927142043.18662lg6zktpqbz4@webmail.leidinger.net> Date: Mon, 27 Sep 2010 14:20:43 +0200 From: Alexander Leidinger To: Thomas Dean References: <201009270008.o8R08K20010489@asus.tddhome> In-Reply-To: <201009270008.o8R08K20010489@asus.tddhome> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 712C684400C.A657F X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.874, required 6, autolearn=disabled, J_CHICKENPOX_102 0.60, RDNS_NONE 1.27) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1286194849.54824@nuIqBwGctozMHK4l1lJCgQ X-EBL-Spam-Status: No Cc: freebsd-emulation@FreeBSD.org Subject: Re: Using Ubuntu File Systems 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 Sep 2010 12:20:52 -0000 Quoting Thomas Dean (from Sun, 26 Sep 2010 17:08:20 -0700 (PDT)): > If I use compat/linux/sbin/ldconfig to point to the FreeBSD libraries > and test the eagle port, Do not point to FreeBSD libraries, you need to point to linux libraries. > # /usr/local/bin/eagle5 > /usr/local/share/eagle5/bin/eagle: error while loading shared > libraries: /usr/local/lib/libXrender.so.1: ELF file OS ABI invalid It finds the FreeBSD libXrender.so.1, not the linux one. > # /compat/linux/sbin/ldconfig --print-cache | grep Xrender > libXrender.so.1 (ELF) => /usr/local/lib/libXrender.so.1 > libXrender.so (ELF) => /usr/local/lib/libXrender.so It needs to find it in /campat/linux, not in /usr/local/lib. > If I mount Ubuntu file systems on /compat/linux/Ubuntu > > # chroot /compat/linux sh > # /Ubuntu/usr/local/eagle-5.10.0/bin/eagle > /Ubuntu/usr/local/eagle-5.10.0/bin/eagle: error while loading shared > libraries: libXrender.so.1: cannot open shared object file: No such > file or directory > # > # cat /etc/ld.so.conf > /lib > /usr/lib > /usr/local/lib > /Ubuntu/lib > /Ubuntu/usr/lib > /Ubuntu/usr/local/lib > > # rm /etc/ld.so.cache > # sbin/ldconfig > # /Ubuntu/usr/local/eagle-5.10.0/bin/eagle > Segmentation fault > > How may I get around this? Find out what causes the segfault. Any info in FreeBSD:/var/log/messages or on the console? If not, install the linux libXrender: # grep libXrender.so /usr/ports/x11/linux-f10-xorg-libs/pkg-plist usr/lib/libXrender.so.1 usr/lib/libXrender.so.1.3.0 Then check with the linux-ldd (probably best from /compat/linux/bin/bash) that no FreeBSD libs are listed. After that start eagle within ktrace and use linux-kdump to have a look what it is doing before the segfault. Bye, Alexander. -- In any world menu, Canada must be considered the vichyssoise of nations -- it's cold, half-French, and difficult to stir. -- Stuart Keate http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137