Porting linux-wine

Ulrich Spoerlein q at galgenberg.net
Fri Oct 28 03:00:49 PDT 2005


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 => not found (0x0)
        libc.so.6 => /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/libtermcap.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 => /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
-- 
 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20051028/df0bddac/attachment.bin


More information about the freebsd-emulation mailing list