SUMMARY:Bad file magic number

From: <marco_at_gore.afep.cornell.edu>
Date: Thu, 31 Oct 96 09:44:11 -0500

Original to follow. Basically I was trying to install the ping patch but got
the "Bad file magic number" error on the kernal rebiuld for one of my machines.
Other machines worked fine.

Answer: My predecessor had originally led me to believe that both machines were
running DU 3.2c. The machine that the failure occured on runs DU 3.0B. I was
trying to install the ping patch for v3.2c on all my systems. Oops.


Other responses:

From: "Dave Golden" <golden_at_falcon.invincible.com>
  & "Dr. Tom Blinn, 603-881-0646" <tpb_at_zk3.dec.com>
  & Alan Cox <coxa_at_eris.private.cableol.net>

sudgested that I had a corrupted file, for my case: uipc_socket.o

-----------------------
From: Chris Kirby <ckirby_at_fore.com>

I've seen this too. The file in question (for me it's usually vfs.mod)
doesn't appear to be corrupted- the checksum matches that of vfs.mod
on my other Digital UNIX machines.

I don't know what to do to *fix* the problem, but I've successfully
worked around it by always doing kernel builds from the console. I
only see the problem when I build via telnet.

----------------------- {this is closest to my case, by I solved the probel
                                differently}
From: sxkac_at_java.sois.alaska.edu (Kurt Carlson)

This type of problem can be caused by a mis-configuration.
I have seen two things specifically cause it here:
  - a patched source module which was a higher level then
    another patch
  - a residue XMI bus in the /sys/conf/HOST file which was
    removed.

First, try building a brand new kernel:
   cd /sys/conf
   doconfig -c BOGUS # or other new name of your choice

if that works, look for differences in the config:
   diff BOGUS <hostname>
then:
   edit ident in BOGUS to be <hostname>
   mv /sys/HOSTNAME /sys/HOSTNAME.old
   mv /sys/BOGUS /sys/HOSTNAME
   mv /sys/conf/BOGUS and BOGUS.list to HOSTNAME and HOSTNAME.list

if it doesn't work, review whatever patches you have applied (particularly
anything patching a *.c or *.h) for incompatability. kurt


Thank you to all who replied!
--------------------------
Original:

Hello managers,
        I am trying to install the "ping patch". It worked just fine on one
machine, on another machine I cannot rebuild the kernal. This is the error I
get from doing doconfig:


*** PERFORMING KERNEL BUILD ***
        Working....Tue Oct 29 10:22:55 EST 1996
        Working....Tue Oct 29 10:24:57 EST 1996
        Working....Tue Oct 29 10:26:58 EST 1996

*** WARNING ***
An error has occurred during system configuration. A partial listing
of the error log file (./errs) follows:

{several lines of the following garabge:}
cc -c -O2 -DLANGUAGE_C -g3 -G 4 -I -I. -I.. -I../include -DIDENT=XXXXX
-DDEC3000_500 -DSWAPTYPE=1 -DUERF -DOSF -DCOMPAT_43 -DMACH -DUFS -
DKERNEL -D_KERNEL -D_BSD -signed -no_excpt -Wb,-static -Wco,-nofloat -Olimit
1500 -D__alpha -Umips -UMIPS tc_option_data.c
cc -c -O2 -DLANGUAGE_C -g3 -
{about 10 of the above deleted}

rm -f vmunix vmunix.sys
loading vmunix.sys
ld:
Object file format error in: uipc_socket.o: bad file magic number
*** Exit 1 (ignored)
chmod 755 a.out
chmod: a.out: No such file or directory
*** Exit 4
Stop.
Received on Thu Oct 31 1996 - 16:28:00 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT