[comp.windows.x] Serpent UIMS Compile Problems

kelias@digi.lonestar.org (Kenneth Elias) (12/19/90)

     I am trying to compile Serpent User Interface Management System,  
Alpha Release 0.9 on an Apollo DN3500 running Domain OS/SR10.3 under 
BSD 4.3. The make files appear to have been built successfully; however,
during  'make build', I encounter several syntax errors within the include 
files due to multiple variable declarations and some undeclared variables.
(I've experienced identical results with Domain OS/SR10.2 also.)

  Example:
   
        % make build

        .
        .
        .

making all in Serpent
making all in c_toolkit
making all in utilities
making all in int
cc -O -U__STDC__ -D_PROTOTYPES -I/serpent/include    -I. -I../include -I../
../include -I../../data  -c ipc.cipc.c: 96: DEBUG2 redefined

 (0001) typedef unsigned char u_char;

******** Line 1 of "../../include/u22_rt.h": [Error #258]  Multiple
         declaration of "u_char".

 (0002) typedef unsigned short u_short;

******** Line 2 of "../../include/u22_rt.h": [Error #258]  Multiple 
         declaration of "u_short".

 (0003) typedef unsigned int u_int;

******** Line 3 of "../../include/u22_rt.h": [Error #258]  Multiple 
         declaration of "u_int".

        .
        .
        .



Under /usr/include,      

        % fgrep 'u_short' *.h   

reveals that u_short appears in one of the BSD system includes:

resolv.h:	u_short	id;		/* current packet id */

The context is declaring 'id' to be of type 'u_short'.

Note that 'u_short' is also declared in u22_rt.h (within Serpent):

typedef unsigned short u_short; 



My problem is that commenting out the 'duplicate declaration' in the
offending .h or .c file doesn't seem to help nor does commenting out
the entire include file from the source. 

Has anyone successfully built Serpent on their system or does anyone
have a workaround for this problem?



 

Erik.Hardy@SEI.CMU.EDU (12/19/90)

Sorry, gang, but I don't know Kenneth Elias' email address...

Kenneth, there is a forum for solving Serpent problems, so that we don't
clutter up xpert. Send me mail and we'll try to fix it.

Erik Hardy (erik@sei.cmu.edu)
SEI/User Interface Project