Subject: Re: FreeBSD ELF
To: Peter Seebach <seebs@plethora.net>
From: Todd Vierling <tv@wasabisystems.com>
List: current-users
Date: 11/26/2000 12:41:54
On Sun, 26 Nov 2000, Peter Seebach wrote:

: >Try setting LD_LIBRARY_PATH=/usr/X11R6/lib (not /emul/freebsd/...; that will
: >be added automatically) in your environment and see if that solves it.  I
: >don't think FreeBSD uses rpath in its X11 libraries, so it may need an entry
: >in /emul/freebsd/etc/ld.so.conf or LD_LIBRARY_PATH.
: 
: Setting the variable works; ld.so.conf doesn't seem to.
: 
: Now I'm up to:
: /usr/libexec/ld-elf.so.1: /usr/lib/libc.so.3: invalid file format
: 
: libc.so.3.1: FreeBSD/i386 compact demand paged shared library not stripped

This means it's a.out.

: I don't have a plain .3, so maybe I'm missing a library I need?

You're probably missing the ELF version of libc.

You can't mix and match ELF and a.out libraries in /emul/freebsd/usr/lib.  
If you want 2.x a.out libraries to coexist with 3.x+ ELF libraries, you need
the newer a.out ld.so that FreeBSD ships in 3.x+, and the a.out libraries
move into /emul/freebsd/usr/lib/compat/aout/....

You should strip /emul/freebsd entirely, and get the libraries from an ELF
FreeBSD system and/or the FreeBSD base sets, and for a.out compatibility,
get the compat2* FreeBSD release sets from a 3.x+ distribution (these
include the compatibility ld.so and the libraries moved to
usr/lib/compat/aout).

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  http://www.wasabisystems.com/
-- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.