Perhaps the following, which I posted in the mail list
some time back, may help:

RESOLVED: [I]make problem with Xvnc on
VNC 3.3.3R2 on SGI IRIX 6.5 

Mac Cody [EMAIL PROTECTED] 
Tue, 06 Mar 2001 16:35:18 +0000 

Last week, I reported a problem with either imake or make
while attempting to compile Xvnc server 3.3.3R2 on my SGI
Indy running IRIX 6.5.0.  I found that the problem was in
vnc_unixsrc/Xvnc/programs/Xserver/hw/vnc/Imakefile.

Between Xvnc 3.3.3 and 3.3.3R2, this file was modified to
use the macro SpecialCObjectRule to include the DEFINE
macro in the compilation of init.c.  The terminal output
illustrates the error:

-------------------- start terminal output ----------------
making Makefiles in programs/Xserver/hw/vnc...
At end of source: error(1018): expected a ")"

"./Imakefile", line 23: error(1247): improperly terminated macro
invocation
  SpecialCObjectRule(init,$(ICONFIGFILES),-DXVNCRELEASE=\"XvncRelease\")
  ^

2 errors detected in the compilation of "Imakefile.c".
../../../../config/imake/imake: Exit code 2.
  Stop.
--------------------- end terminal output -----------------

Below is listed the related Imakefiles from Xvnc 3.3.3R2
and 3.3.3, respectively.  The difference is only in the
modification of the DEFINES statement and the inclusion
of the SpecialCObjectRule macro.

---------- start Imakefile Xvnc 3.3.3R2 listing -----------
XCOMM $XConsortium: Imakefile,v 1.5 94/01/21 22:04:27 dpw Exp $
#include <Server.tmpl>

SRCS = init.c sockets.c kbdptr.c cmap.c draw.c cutpaste.c \
       dispcur.c sprite.c rfbserver.c translate.c httpd.c auth.c \
       rre.c corre.c stats.c hextile.c

OBJS = init.o sockets.o kbdptr.o cmap.o draw.o cutpaste.o \
       dispcur.o sprite.o rfbserver.o translate.o httpd.o auth.o \
       rre.o corre.o stats.o hextile.o

#include <vnclibs.def>
INCLUDES = -I. -I$(XBUILDINCDIR) -I$(FONTINCSRC) -I$(XINCLUDESRC) \
           -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os
\
           $(VNCCPPFLAGS)

DEFINES = ServerOSDefines

all:: $(OBJS)

NormalLibraryObjectRule()
NormalLibraryTarget(vnc,$(OBJS))
SpecialCObjectRule(init,$(ICONFIGFILES),-DXVNCRELEASE=\"XvncRelease\")

DependTarget()
------------ end Imakefile Xvnc 3.3.3R2 listing -----------
----------- start Imakefile Xvnc 3.3.3 listing ------------

XCOMM $XConsortium: Imakefile,v 1.5 94/01/21 22:04:27 dpw Exp $
#include <Server.tmpl>

SRCS = init.c sockets.c kbdptr.c cmap.c draw.c cutpaste.c \
       dispcur.c sprite.c rfbserver.c translate.c httpd.c auth.c \
       rre.c corre.c stats.c hextile.c

OBJS = init.o sockets.o kbdptr.o cmap.o draw.o cutpaste.o \
       dispcur.o sprite.o rfbserver.o translate.o httpd.o auth.o \
       rre.o corre.o stats.o hextile.o

#include <vnclibs.def>
INCLUDES = -I. -I$(XBUILDINCDIR) -I$(FONTINCSRC) -I$(XINCLUDESRC) \
           -I../../cfb -I../../mfb -I../../mi -I../../include -I../../os
\
           $(VNCCPPFLAGS)

DEFINES = ServerOSDefines -DXVNCRELEASE=\"XvncRelease\"

all:: $(OBJS)

NormalLibraryObjectRule()
NormalLibraryTarget(vnc,$(OBJS))

DependTarget()
------------- end Imakefile Xvnc 3.3.3 listing ------------

By replacing the Imakefile in 3.3.3R2 with the Imakefile
from 3.3.3, the error didn't occur and I was able to
accomplish a complete compile of the Xvnc server with the
invocation of Xvnc server make for IRIX 6.5:

  make BOOTSTRAPCFLAGS=-DFIXUP_CPP_WHITESPACE World

No other modification to the Xvnc sources or scripts was
necessary and the resulting server binary appears to
function correctly.  Hopefully this Imakefile will be
updated to support IRIX along with other UNIX platforms
(though, in this case, a "backdated" file actually solved
the problem).

regards,

Mac Cody
-- 
 _________________________________________________________________
|                               |                                 |
| Mac A. Cody                   | Principal Physics Engineer      |
| Raytheon Coompany C3I IGS     | email: [EMAIL PROTECTED]  |
| Mail Stop HA                  | phone: (972) 205-6452           |
| P.O. Box 660023               |   or   1-800-752-6163 x6452     |
| Dallas, TX 75266              | fax  : (972) 205-7180           |
|_______________________________|_________________________________|

Richard Gillman <[EMAIL PROTECTED]> wrote:
> I've tried compiling VNC 3.3.3r2 on Irix 6.5.14f. I follow the
> instructions:
> 
> xmkmf
> make World
> 
> This works fine with a few warnings, and it creates a copy of
> vncviewer.
> 
> But when I try the next step, cd Xvnc; make World, I get
> 
> make: file `Makefile.proto' line 555: Must be a separator (: or ::)
> for
> rules (bu39)
8<------------------snip error messages ------------------------->8
> rules (bu39)
> make: file `Makefile.proto' line 573: inconsistent rules lines for
> `../../config/makedepend/makedepend' (bu36)
> make: file `Makefile.proto' line 573: Syntax error
> *** Error code 1 (bu21)
> *** Error code 1 (bu21)
> 
> and the make process stops.
> 
> The cc I'm using is /usr/bin/cc, the compiler that comes with Irix.
> I
> also tried to use gcc, but got no further.
> I've tried 
> make World (as in documentation)
> make BOOTSTRAPFLAGS=-DSVRX World (as hinted in
> Xvnc/config/cf/sgi.cf)
> make BOOTSTRAPFLAGS=-DFIXUP_CPP_WHITESPACE World (as suggested in an
> email on this list)
> make -k World (also suggested in an email)
> 
> Has anybody succeeded in compiling Xvnc under Irix 6.5.14f or 6.5?
> 
> I've downloaded the package from freeware.sgi.com; this claims to
> contain both viewer and server, but seems only to contain the
> viewer. 
> 
> This looks like a FAQ...I've seen a number of questions on this
> issue
> posted. But has anyone got a solution that might work for me? If so,
> reply to [EMAIL PROTECTED] as I'm not on the vnc list.
> 
> Thanks in advance...Dick
> -- 
> Richard Gillman
> iTSS UNIX Systems Group, Maclean Building, Wallingford OX10 8BB
> Tel: 01491 - 692 339
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to