Porting linux-wine

Ulrich Spoerlein q at galgenberg.net
Thu Oct 27 08:15:06 PDT 2005


On Thu, 27.10.2005 at 16:59:56 +0200, Alexander Leidinger wrote:
> No, the FreeBSD ktrace records the FreeBSD (emulated) syscalls (we don't run
> on linux, we run translated syscalls on FreeBSD), so we need the FreeBSD
> kdump to read the FreeBSD ktrace output. Or did I got your question wrong?

There was a linux-kdump (or linux-ktrace) port once, that was necessary
to get the translated syscalls right, IIRC.

> >Btw, is ldd or linux-ldd supposed to work on linux binaries/libs?
> 
> FreeBSD ldd could work... some @FreeBSD posted some (small) patches somewhere
> which makes this work (or was it some other similar tool? ... argh, I lost
> the overview somewhere in the last month). I don't know if they are
> committed or not and if they are schedulled to get committed or not. Linux
> ldd has to work.

Don't know what to make of this:

% ldd /compat/linux/bin/bash
/compat/linux/bin/bash:
        libtermcap.so.2 => /lib/libtermcap.so.2 (0x480f1000)
        libdl.so.2 => /lib/libdl.so.2 (0x480f6000)
        libc.so.6 => /lib/libc.so.6 (0x480f9000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x480db000)
% ldd /compat/linux/usr/bin/wine
/compat/linux/usr/bin/wine:
/compat/linux/usr/bin/wine: error while loading shared libraries: /usr/lib/libwine.so.1: ELF file OS ABI invalid
/compat/linux/usr/bin/wine: exit status 127

% sudo chroot /compat/linux /bin/bash
bash-2.05b# ldd /bin/bash
/usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file
/usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file
ldd: /lib/ld-linux.so.2 exited with unknown exit code (126)
bash-2.05b# ldd /usr/bin/wine
/usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file
/usr/bin/ldd: line 1: /lib/ld-linux.so.2: cannot execute binary file
ldd: /lib/ld-linux.so.2 exited with unknown exit code (126)


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/20051027/848a0df3/attachment.bin


More information about the freebsd-emulation mailing list