Quoting Thomas Dean <[email protected]> (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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[email protected]"

Reply via email to