Subject: Compiling

From: [email-masked] (Tim Sailer)
Date: Thu, 8 Jul 1993 07:21:08 -0700

OK... I'm trying to compile the server on a sparc 10 with gcc... I get the 
following errors: (SunOS 4.1.3)

make
[ config.h : config.status ]
./config.status
creating Makefile
creating config.h
gcc -O -traditional -Wall -Wwrite-strings -g -DMOO  -c  db.c
In file included from db.c:26:
exceptions.h:71: syntax error before `struct'
exceptions.h:79: parse error before `ES_CtxBlock'
exceptions.h:79: warning: no semicolon at end of struct or union
exceptions.h:83: parse error before `*'
db.c: In function `create_object':
db.c:337: warning: suggest parentheses around assignment used as truth value
exceptions.h: At top level:
exceptions.h:71: storage size of `ES_CtxBlock' isn't known
*** Error code 1
make: Fatal error: Command failed for target `db.o'

Any ideas before I scream?

Tim (all this for o_n_c....)
-- 
                            Tim Sailer
                      [email-masked]
             "The one who dies with the most toys, wins!"

---

From: Pavel Curtis <[email-masked]>
Date: Thu, 8 Jul 1993 11:59:01 -0700

> Date:	Thu, 8 Jul 1993 07:21:08 -0700
> From:	[email-masked] (Tim Sailer)
> 

Add this line to the end of config.h:

	#define volatile __volatile__

The problem is that the -traditional flag to gcc (necessary because of the way
it was installed at your site) turns off its recognition of the `volatile'
keyword, so we have to make it use the `hidden' version.  This configuration
bug will be fixed in the next release.

> db.c:337: warning: suggest parentheses around assignment used as truth value

Ignore all of the warnings you get from GCC; they added more after I released
the server so that code that was fine before generates warnings now.  All of
the warnings are innocuous and will be eliminated in the next release.

	Pavel