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 Systems Co., C3I     | email: [EMAIL PROTECTED]  |
| mail stop HA-36170            | phone: (972) 205-6452           |
| P.O. Box 660023               |   or   1-800-752-6163 x6452     |
| Dallas, TX 75266              | fax  : (972) 205-7180           |
|_______________________________|_________________________________|
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to [EMAIL PROTECTED]
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to