From: Nick Andrew (nick@kralizec.zeta.org.au)
Date: 08/06/93


From: nick@kralizec.zeta.org.au (Nick Andrew)
Subject: Re: Database Magic Number mismatch?
Date: 7 Aug 1993 14:05:11 +1000

In <1993Jul30.134155.18962@socrates.umd.edu> rocky@socrates.umd.edu (Rocky Giannini) writes:

>When I start nn I get the message "Database magic number mismatch" and
>the program dies.

If you have a heterogeneous network like I have then host byte ordering
could be the problem. Make sure

1 you define NETWORK_DATABASE in your NN configuration (config.h)
2 do NOT define NETWORK_BYTE_ORDER in conf/m-whatever.h if your
        architecture is not already network byte order (little-endian?)
3 Define the functions htonl() and ntohl() if necessary in the
        conf/m-whatever.h file above
3 rebuild the database if necessary.

I had this problem trying to share the NN database between Kralizec, a Sun
3/60 and Godzilla, a Linux box. The NN 6.4.18 shipped with Linux SLS was
configured for host byte order. I had to modify conf/m-i80386.h because
the file was written to invoke compiler errors.

Hope this helps, Nick.

-- 
Kralizec Dialup Unix (Public Access)    Data: +61-2-837-1183, 14400 24hrs 8N1
Zeta Microcomputer Software             Data: +61-2-837-1868, 2400 24hrs 8N1
P.O. Box 177, Riverstone NSW 2765       Plan: To beat Gnuchess 4.1 !