Patch-ID# 101110-01
Keywords:  number, .bd, fatal, -sb, acc, c, mismatch, version, sbrowser
Synopsis: SPARCworks 2.0.1: acc compiler is not able to overwrite the sbrowser, Fatal error: .bd file version number mismatch
Date: Sep/13/93

SunOS release: 4.X

Unbundled Product: SPARCworks browser

Unbundled Release: 2.0.1

Topic: 

BugId's fixed with this patch: 1112151

Relevant Architecture: sparc
    NOTE: Sun4

Patches which may conflict with this patch:

Obsoleted by: 

Files included with this patch: sbversion sbversion.1


Problem Description: 

The SC 2.0.1 acc compiler is not able to overwrite the sbrowser info when 
something is there already created by SC 1.0 acc.  You will get the following 
error like the following when doing a query from SW 2.0.1 sbrowser:

sbrowser: Fatal error: .bd file /home/livia/sng/Junk/.sb/Locked/m.c.2rE30P.bd version number mismatch. Is 0, expected 4


Install Instructions: As root 

	1)  Copy sbversion to the same directory as sbrowser
	2)  Copy sbversion.1 to the SPARCworks man pages


 	Now use the executable sbversion to cleanup the users database.

		1)  cd to source directory where experiencing the problem.
		2)  find any database files of version 4 (the level expected
		    by the SPARCworks 2.0.1 browser).

			% sbversion 4
		
		3)  find all database files with older versions.

			% sbversion 0 1 2 3
		
		
	There are three possibilities: 

		1)  All of your database files are version 4.  In this
		unlikely event, your problem has mysteriously gone
		away, but please read on anyhow.

		2)  Some of your database is version 4, some are older.
		This indicates that in addition to the correct compiler,
		there's an older version hanging around somewhere, and
		from time to time it's being called instead of the new
		one.  We can't tell from here why that would be, but
		two possibilities are that your Makefile is using the
		full pathname to the wrong compiler, or the CC
		environment variable is pointing to the wrong compiler
		(maybe it's set in somebody's .cshrc).

		3)  All of your database files are version 3 or less.
		If this is the case, you may not have the new compiler
		at all; certainly none of your database is being built
		with it.  This is unlikely, and certainly not the case
		if you have ever browsed any code at all with your current
		browser.  It is much more probable that one of the cases
		described in (2) above applies.

	4)  Delete all database files older than version 4.  NOTE:  make
	    sure your MAKE uses the right compiler!

			% sbversion -rm 0 1 2 3


