Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 12:00:44 +0200
From:      Ulrich Spoerlein <q@galgenberg.net>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        emulation@freebsd.org
Subject:   Re: Porting linux-wine
Message-ID:  <20051028100044.GB1126@galgenberg.net>
In-Reply-To: <20051028085130.4wa89yr8ooowkck8@netchild.homeip.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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