*BSD News Article 29932


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!irc.net!luce
From: luce@next.duq.edu (Douglas Luce)
Newsgroups: comp.os.386bsd.questions
Subject: Re: ld: bad magic number in ../../lib/libkrb.a(#1)
Date: 26 Apr 1994 21:23:21 GMT
Organization: Duquesne University, Pittsburgh, PA
Lines: 17
Message-ID: <2pk0o9$kio@godot.cc.duq.edu>
References: <2p9ovj$7v4@godot.cc.duq.edu> <1994Apr26.070205.22752@siemens.co.at>
NNTP-Posting-Host: irc.net
X-Newsreader: TIN [version 1.2 PL2]

Bernd Salbrechter (salb@PROBLEM_WITH_INEWS_DOMAIN_FILE) wrote:
> Douglas Luce (luce@next.duq.edu) wrote:
> > This error crops up while compiling Kerberos v4 under NetBSD0.9 using the
> > stock cc/ld.  The library is there, every object in it compiled with
> > no errors, and neither ar nor ranlib produced any adverse output.  But
> > still, I get these silly "bad magic number" errors.  

> I had the same problem some time ago, renameing some objectfiles (*.o) whith
> very long names solve the problem. Maybe ld process the archive directly
> and ignore the new format for long names.

Yup.  This is it.  Renaming files with names longer than 18 characters
(including the .c or .o) to something shorter fixed this problem.  I
suppose there's a longer term fix in the mix.

Doug Luce