*BSD News Article 42065


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.hawaii.edu!ames!hookup!news.moneng.mei.com!uwm.edu!spool.mu.edu!howland.reston.ans.net!pipex!uknet!strath-cs!nntp0.brunel.ac.uk!not-for-mail
From: Nik.Clayton@brunel.ac.uk (Nik Clayton)
Newsgroups: comp.os.386bsd.questions
Subject: [kernel] ld error "bad magic number"
Date: 27 Jan 1995 13:55:41 -0000
Organization: Brunel University, Uxbridge, UK
Lines: 38
Message-ID: <3gau0t$v1@beable.brunel.ac.uk>
NNTP-Posting-Host: beable.brunel.ac.uk
X-Submissions-To: ahbou-sub@acpub.duke.edu for alt.humor.best-of-usenet
X-URL: http://http2.brunel.ac.uk:8080/~ccusnjc/

How do. Here's hoping someone can help with this.

I'm running FreeBSD 2.0 on a 486 with 2 x 250Mb HD, and I feel the need to
recompile the kernel. wd0 contains the basic binary installed, and wd1
holds all the source code, with /dev/wd1a mounted on /usr/src.

I then go into /usr/src/sys/i386/conf and try and compile the GENERIC
kernel, just to make sure everything's OK. The sequence of events is

    % /usr/sbin/config GENERIC
    % cd /usr/src/sys/compile/GENERIC
    % make depend
    % make

Everything appears to compile correctly (bar the odd mention of a
redudant declaration of DELAY) and then link time comes around. At which
point I see,

    ln -s ../../libkern/libkern.a libkern.a
    loading kernel
    ld: libkern.a(): bad magic number
    *** Error code 1

    Stop.

This means absolutely nothing to me, but seems to be a fairly major
stumbling block.

The FAQ doesn't appear to cover it, and I'm stumped. Anyone run into
this problem before? Anyone solve this problem before?

N
-- 
=-[Opinion, n: See the above text for an example]=-=[Kibo #: e]-[RYRYRY]=-=
=-[The Silly Sod Society: To perfect and to swerve]=-[beable]-=[TP U BG]=-=
At the source of every error which is blamed on the computer you will
find at least two human errors, including the error of blaming it on
the computer.