From owner-freebsd-questions Tue Sep 17 15:11:00 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA17383 for questions-outgoing; Tue, 17 Sep 1996 15:11:00 -0700 (PDT) Received: from SNOOPY.UCollege.edu (SNOOPY.UCOLLEGE.EDU [198.51.49.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA17355 for ; Tue, 17 Sep 1996 15:10:54 -0700 (PDT) Message-Id: <199609172210.PAA17355@freefall.freebsd.org> Received: by SNOOPY.UCollege.edu (1.37.109.18/16.2) id AA150648221; Tue, 17 Sep 1996 17:10:21 -0500 From: Travis Rein Subject: compile error To: questions@FreeBSD.ORG Date: Tue, 17 Sep 1996 17:10:21 CDT X-Mailer: Elm [revision: 109.18] Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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: # CH215 configuration file machine "i386" cpu "I486_CPU" ident "CH215" maxusers 10 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options NFS #Network Filesystem options MSDOSFS #MSDOS Filesystem options "CD9660" #ISO 9660 Filesystem options PROCFS #Process filesystem options "COMPAT_43" #Compatible with BSD 4.3 options "SCSI_DELAY=15" #Be pessimistic about Joe SCSI device options BOUNCE_BUFFERS #include support for DMA bounce buffers options UCONSOLE #Allow users to grab the console options SYSVSHM options SYSVSEM options SYSVMSG config kernel root on wd0 controller isa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 controller ahc1 at isa? bio irq ? vector ahcintr controller scbus0 device sd0 device st0 device cd0 #Only need one of these, the code dynamically grows device vt0 at isa? port "IO_KBD" tty irq 1 vector pcrint options "PCVT_FREEBSD=210" # pcvt running on FreeBSD 2.1 options XSERVER # include code for XFree86 device npx0 at isa? port "IO_NPX" irq 13 vector npxintr device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr device sio2 at isa? port "IO_COM3" tty irq 5 vector siointr device sio3 at isa? port "IO_COM4" tty irq 9 vector siointr device lpt0 at isa? port? tty irq 7 vector lptintr device lpt1 at isa? port? tty device lpt2 at isa? port? tty device ed1 at isa? port 0x300 net irq 5 iomem 0xd8000 vector edintr pseudo-device loop pseudo-device ether pseudo-device log pseudo-device sl 1 pseudo-device tun 1 pseudo-device pty 16 pseudo-device gzip # Exec gzipped a.out's