Article View: news.software.nn
Article #4604Re: Database Magic Number mismatch?
From: Nick Andrew
Date: Sat, 07 Aug 1993 04:05
Date: Sat, 07 Aug 1993 04:05
26 lines
2013 bytes
2013 bytes
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 !
Technical Details
Message-ID:
<23v9lnINN6r4@kralizec.zeta.org.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-aus.computers.linux.mbox.zip!gmd.de!xlink.net!math.fu-berlin.de!nigel.msen.com!sdd.hp.com!cs.utexas.edu!uunet!munnari.oz.au!metro!sequoia!ultima!kralizec.zeta.org.au!kralizec.zeta.org.au!not-for-mailReferences:
<1993Jul30.134155.18962@socrates.umd.edu>Show Full Headers
Complete Article Headers
Message-ID: <23v9lnINN6r4@kralizec.zeta.org.au> Subject: Re: Database Magic Number mismatch? Date: Sat, 07 Aug 1993 04:05:11 +0000 From: nick@kralizec.zeta.org.au (Nick Andrew) References: <1993Jul30.134155.18962@socrates.umd.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-aus.computers.linux.mbox.zip!gmd.de!xlink.net!math.fu-berlin.de!nigel.msen.com!sdd.hp.com!cs.utexas.edu!uunet!munnari.oz.au!metro!sequoia!ultima!kralizec.zeta.org.au!kralizec.zeta.org.au!not-for-mail Newsgroups: news.software.nn,aus.computers.linux,comp.os.linux Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.32bis Lines: 25 NNTP-Posting-Host: kralizec.zeta.org.au