🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Nick Andrew Sat, 07 Aug 1993 04:05
Re: Database Magic Number mismatch?
#4604
Author: Nick Andrew
Date: Sat, 07 Aug 1993 04:05
26 lines
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 !
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads