*BSD News Article 68043


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!gt-news!cc.gatech.edu!cssun.mathcs.emory.edu!swrinde!newsfeed.internetmci.com!btnet!zetnet.co.uk!dispatch.news.demon.net!demon!longacre.demon.co.uk
From: searle@longacre.demon.co.uk (Michael Searle)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Problem with Linux emulation
Date: Wed, 08 May 1996 18:43:17 BST
Lines: 30
Message-ID: <nCB2FD2BC@longacre.demon.co.uk>
References: <nC8964EE8@longacre.demon.co.uk> <4mnqm2$14b@anorak.coverform.lan>
NNTP-Posting-Host: longacre.demon.co.uk
X-NNTP-Posting-Host: longacre.demon.co.uk
X-Newsreader: Offlite 0.09 / Termite Internet for Acorn RISC OS

brian@awfulhak.demon.co.uk (Brian Somers) wrote:

> Michael Searle (searle@longacre.demon.co.uk) wrote:

>> I have Linux support (COMPAT_LINUX, LINUX_COMPAT) in my kernel, and
>> mod_load'ing linux_mod.o works, but I also need Linux shared libraries.
>> So I installed linux_lib-2.0, result - X won't start. It can't find its
>> shared libraries, although they are in a standard directory
>> (/usr/X11R6/lib). The error is 'ld.so: xinit: shared library
>> (something) not found'.

>> Also, in the boot sequence this appeared - 'ldconfig: 1: Syntax error:
>> "(" unexpected". I think this is because the lkm has to be loaded from
>> the shell, so at boot time ldconfig (which is a Linux executable,
>> giving 'Wrong Architecture' error if run from the shell) doesn't run,
>> so the path to the shared libraries is not set up.

>> To make ldconfig run, I need to put the lkm permanently into the
>> kernel. How can I do this? (option LINUX doesn't work.)

>> Michael

> anorak:/usr/home/brian $ file /sbin/ldconfig /sbin/ldconfig:
> FreeBSD/i386 demand paged executable

Yes, it is now. The linux_lib-2 tarfile contains another version, a Linux
executable. Replacing this and other files with their FreeBSD equivalents
gets FreeBSD stuff going again, although Linux executables still can't find
/lib/ld.so (This exists, I have tried both the Linux executable and the
FreeBSD shared library for /usr/libexec)