Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Sep 2010 14:20:43 +0200
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Thomas Dean <tomdean@speakeasy.org>
Cc:        freebsd-emulation@FreeBSD.org
Subject:   Re: Using Ubuntu File Systems
Message-ID:  <20100927142043.18662lg6zktpqbz4@webmail.leidinger.net>
In-Reply-To: <201009270008.o8R08K20010489@asus.tddhome>
References:  <201009270008.o8R08K20010489@asus.tddhome>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Thomas Dean <tomdean@speakeasy.org> (from Sun, 26 Sep 2010  
17:08:20 -0700 (PDT)):

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

Do not point to FreeBSD libraries, you need to point to linux libraries.

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

It finds the FreeBSD libXrender.so.1, not the linux one.

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

It needs to find it in /campat/linux, not in /usr/local/lib.

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

Find out what causes the segfault. Any info in  
FreeBSD:/var/log/messages or on the console?

If not, install the linux libXrender:
# grep libXrender.so /usr/ports/x11/linux-f10-xorg-libs/pkg-plist
usr/lib/libXrender.so.1
usr/lib/libXrender.so.1.3.0

Then check with the linux-ldd (probably best from  
/compat/linux/bin/bash) that no FreeBSD libs are listed. After that  
start eagle within ktrace and use linux-kdump to have a look what it  
is doing before the segfault.

Bye,
Alexander.

-- 
In any world menu, Canada must be considered the vichyssoise of nations --
it's cold, half-French, and difficult to stir.
		-- Stuart Keate

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137



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