From owner-freebsd-emulation@FreeBSD.ORG Fri Oct 28 10:00:48 2005 Return-Path: X-Original-To: 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 D101916A420 for ; Fri, 28 Oct 2005 10:00:48 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6148543D48 for ; Fri, 28 Oct 2005 10:00:46 +0000 (GMT) (envelope-from q@galgenberg.net) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id CE3A613F49F; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id A849EB4EE2; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 7EA78B4EDB; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 688F313F4C2; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j9SA0jPI026229; Fri, 28 Oct 2005 12:00:45 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.4/8.13.4) with ESMTP id j9SA0iiA037685; Fri, 28 Oct 2005 12:00:44 +0200 (CEST) (envelope-from q@galgenberg.net) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j9SA0ibA002332; Fri, 28 Oct 2005 12:00:44 +0200 (CEST) (envelope-from q@galgenberg.net) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.4/Submit) id j9SA0iRo002331; Fri, 28 Oct 2005 12:00:44 +0200 (CEST) (envelope-from q@galgenberg.net) Date: Fri, 28 Oct 2005 12:00:44 +0200 From: Ulrich Spoerlein To: Alexander Leidinger Message-ID: <20051028100044.GB1126@galgenberg.net> Mail-Followup-To: Alexander Leidinger , emulation@freebsd.org References: <20051026123347.GA1054@galgenberg.net> <20051026150705.qzo2u74dgggcosss@netchild.homeip.net> <20051026133312.GB1054@galgenberg.net> <20051027100016.qpwre4w60woo088c@netchild.homeip.net> <20051027083827.GA1070@galgenberg.net> <20051027165956.yplku4x8gw804osc@netchild.homeip.net> <20051027151458.GC1070@galgenberg.net> <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline In-Reply-To: <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net> X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Cc: emulation@freebsd.org Subject: Re: Porting linux-wine 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: Fri, 28 Oct 2005 10:00:49 -0000 --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 28.10.2005 at 08:51:30 +0200, Alexander Leidinger wrote: > Please try: > find /compat/linux/ -type f -print0 | xargs -0 file \ > | grep ELF | cut -d : -f 1 | xargs brandelf -t Linux I first tried something slightly different ... and I'm shocked: % find /compat/linux/ -type f -print0 | xargs -0 file | grep ELF | cut -d := -f 1 | xargs brandelf > elf_list % grep -c Linux elf_list; grep -c SVR4 elf_list 343 393 So there are more binaries that are not branded than binaries that are branded. This is with the following ports installed: linux-XFree86-libs-4.3.99.902_3 linux-atk-1.2.0_3 linux-expat-1.95.5_3 linux-flashplugin-6.0r79_3 linux-flashplugin-7.0r25_2 linux-fontconfig-2.1_3 linux-glib2-2.2.1_3 linux-gtk2-2.2.1_5 linux-jpeg-6b.15_4 linux-pango-1.2.1_3 linux-png-1.2.7_6 linux-realplayer-10.0.5 linux-tiff-3.6.1_3 linux-wine-20050524 linux_base-8-8.0_7 linux_dri-4.3.0_3 After branding all bins/libs, I'm now unable to run /compat/linux/bin/bash because of libtermcap % ldd /compat/linux/usr/lib/libwine.so.1 /compat/linux/usr/lib/libwine.so.1: libdl.so.2 =3D> not found (0x0) libc.so.6 =3D> /lib/libc.so.6 (0x48080000) % sudo chroot /compat/linux /bin/bash /bin/bash: error while loading shared libraries: /lib/libtermcap.so.2: ELF = file OS ABI invalid (127)% ldd /compat/linux/bin/bash /compat/linux/bin/bash: /compat/linux/bin/bash: error while loading shared libraries: /lib/libtermc= ap.so.2: ELF file OS ABI invalid /compat/linux/bin/bash: exit status 127 (1)% ldd /compat/linux/lib/libtermcap.so.2 /compat/linux/lib/libtermcap.so.2: libc.so.6 =3D> /lib/libc.so.6 (0x48080000) It was one of the non-branded libs. So, is branding everything considered bad practice? % grep termcap elf_list File '/compat/linux/lib/libtermcap.so.2.0.8' is of brand 'SVR4' (0). Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDYfbMmArGtfDbn0QRAg3RAJ9Ryf+P+uoUW9pfIdMXa6vHl3bm/gCg89MC Wehg/Rvsw0k9JKi4kIawBK8= =YK6X -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu--