From owner-freebsd-questions Wed Sep 18 08:08:33 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA02998 for questions-outgoing; Wed, 18 Sep 1996 08:08:33 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id IAA02916 for ; Wed, 18 Sep 1996 08:08:20 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0v3OE4-000Qj8C; Wed, 18 Sep 96 17:07 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id QAA10169; Wed, 18 Sep 1996 16:47:19 +0200 Message-Id: <199609181447.QAA10169@allegro.lemis.de> Subject: Re: compile error To: trrein@UCollege.edu (Travis Rein) Date: Wed, 18 Sep 1996 16:47:19 +0200 (MET DST) Cc: questions@FreeBSD.org (FreeBSD Questions) In-Reply-To: <199609172210.PAA17355@freefall.freebsd.org> from "Travis Rein" at Sep 17, 96 05:10:21 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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