🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #714

Re: Database Magic Number mismatch?

#714
From: Nick Andrew
Date: Sat, 07 Aug 1993 04:05
25 lines
2101 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: arc1-ca.pugleaf.net!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
References: <1993Jul30.134155.18962@socrates.umd.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1023f5,e62fece70b4fe079,start
X-Google-Attributes: gid1023f5,public
X-Google-Thread: f9382,e62fece70b4fe079,start
X-Google-Attributes: gidf9382,public
X-Google-Thread: 102983,e62fece70b4fe079,start
X-Google-Attributes: gid102983,public
X-Google-ArrivalTime: 1993-08-07 03:45:01 PST
Path: arc1-ca.pugleaf.net!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
From: nick@kralizec.zeta.org.au (Nick Andrew)
Newsgroups: news.software.nn,aus.computers.linux,comp.os.linux
Subject: Re: Database Magic Number mismatch?
Date: 7 Aug 1993 14:05:11 +1000
Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.32bis
Lines: 25
Message-ID: <23v9lnINN6r4@kralizec.zeta.org.au>
References: <1993Jul30.134155.18962@socrates.umd.edu>
NNTP-Posting-Host: kralizec.zeta.org.au