Using Ubuntu File Systems

Thomas Dean tomdean at speakeasy.org
Mon Sep 27 00:35:02 UTC 2010


I am running FreeBSD 8.1
# uname -a
FreeBSD asus.tddhome 8.1-STABLE FreeBSD 8.1-STABLE #1: \
    Fri Sep 17 19:09:23 PDT 2010 \
    tomdean at asus.tddhome:/usr/src/sys/GENERIC  i386

I installed linux_base-f10.
# kldstat
Id Refs Address    Size     Name
 1   15 0xc0400000 bc324c   kernel
 2    1 0xc71ea000 26000    linux.ko
 3    1 0xc7599000 68000    radeon.ko
 4    1 0xc7602000 14000    drm.ko
 5    1 0xc7ce3000 10000    ext2fs.ko

I have a full Ubuntu 10.04 installation on a dedicated disk, ad6.

I want to use eagle on FreeBSD.  The FreeBSD port has problems.  This
is the only linux application I need that I cannot seem to get to work
under emulation.

If I use compat/linux/sbin/ldconfig to point to the FreeBSD libraries
and test the eagle port,

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

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

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
# <change ld.so.conf>
# 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?

tomdean


More information about the freebsd-emulation mailing list