Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 1996 16:47:19 +0200 (MET DST)
From:      grog@lemis.de (Greg Lehey)
To:        trrein@UCollege.edu (Travis Rein)
Cc:        questions@FreeBSD.org (FreeBSD Questions)
Subject:   Re: compile error
Message-ID:  <199609181447.QAA10169@allegro.lemis.de>
In-Reply-To: <199609172210.PAA17355@freefall.freebsd.org> from "Travis Rein" at Sep 17, 96 05:10:21 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Travis Rein writes:
>
> I'm trying to compile a custom kernel on a FreeBSD 2.10 system.
> Unfortunately, the linker complains about a bad magic number
> in libc.a
>
> Could you tell me what I might be doing wrong?
>
>
> Here is what prints when I type make in /sys/compile/CH215:
>
>
> cc -static -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -nostdinc -I. -I../.. -I../../sys -I/usr/include -DCH215 -DI486_CPU -DXSERVER -DPCVT_FREEBSD=210 -DSYSVMSG -DSYSVSEM -DSYSVSHM -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_DELAY=15 -DCOMPAT_43 -DPROCFS -DCD9660 -DMSDOSFS -DNFS -DFFS -DINET -DKERNEL -Di386 -DLOAD_ADDRESS=0xF0100000 -DTIMEZONE=0 -DDST=0 -DMAXUSERS=10 genassym.o -o genassym
> ld: /usr/lib/libc.a(_rindex): bad magic
> *** Error code 1
>
> Stop.
>
>
> Here is my custom configuration file:

This has nothing to do with your config file.  Somehow your libc.a has
got corrupted.  Have you recompiled the library recently?  This is
usually bad news, because it will stop you from linking just about
anything.  Hopefully you have it backed up somewhere.

Greg




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609181447.QAA10169>