Hello,

I just followed up on the suggestion below for a problem I posted as
http://www.uk.research.att.com/vnc/archives/2001-11/0293.html
(thanks, Constantin).  This eliminated the "Unexpected end of line"
error, but got me warnings and fatal errors very similar to the
messages in my original posting about missing zlib.h, among other
things.   From my initial experience, it seems quite futile to learn
about makefiles and try to debug it at that level.  In case anyone
recognizes a possible cause for the problem, I've pasted below
the output from the build attempt, after the suggested modifications
to vncviewer/Imakefile.  Thanks for any further suggestions.

Fred

--------------------------------------------------------------------------
Fred Ma
Department of Electronics
Carleton University, Mackenzie Building
1125 Colonel By Drive
Ottawa, Ontario
Canada     K1S 5B6
[EMAIL PROTECTED]
==========================================================================

From: Constantin Kaplinsky ([EMAIL PROTECTED])
Date: Tue Nov 13 2001 - 11:33:54 GMT

F> make: Fatal error in reader: Makefile, line 496: Unexpected
F> end of line seen

I think this problem should be solved by editing the last line in the
vnc_unixsrc/vncviewer/Imakefile file _before_ entering xmkmf, from

  ComplexProgramTargetNoMan(vncviewer)

to

  ComplexProgramTarget(vncviewer)

This would undo the change made in one of the latest TightVNC versions
aimed to solve compilation problems under XFree86 4.1. I'm not sure
how to fix this problem for everybody, but I think the most reasonable
solution would be to revert to the original ComplexProgramTarget
directive, and to change it to ComplexProgramTargetNoMan in the Linux
RPM only. Most likely, I'll do that in the next TightVNC distribution.

--
With Best Wishes,
Constantin

==========================================================================

            Output for build attempt

==========================================================================

Script started on Sat Nov 17 00:27:43 2001
*INSTROOT/vnc_unixsrc:21> xmkmf
imake -DUseInstalled -I/opt/x11/r6.3/lib/X11/config
*INSTROOT/vnc_unixsrc:22> make World
make Makefiles
make[1]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc'
making Makefiles in libvncauth...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc'
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc'
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/libvncauth'
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/libvncauth'
making Makefiles in vncviewer...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc'
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc'
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncviewer'
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/vncviewer'
making Makefiles in vncpasswd...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc'
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc'
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncpasswd'
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/vncpasswd'
making Makefiles in vncconnect...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc'
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc'
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncconnect'
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/vncconnect'
make[1]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc'
make depend
make[1]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc'
depending in ./libvncauth...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/libvncauth'
makedepend
-- -I. -I../include  -I/opt/x11/r6.3/include   -Dsun -DSVR4       -- vncauth.c d3des.c
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/libvncauth'
depending in ./vncviewer...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncviewer'
makedepend  -- -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4 
      -- argsresources.c  colour.c  cursor.c  desktop.c  dialogs.c  fullscreen.c  
listen.c  misc.c  popup.c  rfbproto.c  selection.c  shm.c  sockets.c  tunnel.c  
vncviewer.c
makedepend: warning:  rfbproto.c, line 31: cannot find include file "zlib.h"
    not in ../include/zlib.h
    not in ./zlib.h
    not in /usr/include/zlib.h
    not in /opt/x11/r6.3/include/zlib.h
    not in /usr/local/lib/gcc-include/zlib.h
    not in /usr/include/zlib.h
makedepend: warning:  rfbproto.c, line 32: cannot find include file "jpeglib.h"
    not in ../include/jpeglib.h
    not in ./jpeglib.h
    not in /usr/include/jpeglib.h
    not in /opt/x11/r6.3/include/jpeglib.h
    not in /usr/local/lib/gcc-include/jpeglib.h
    not in /usr/include/jpeglib.h
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/vncviewer'
depending in ./vncpasswd...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncpasswd'
makedepend  -- -I../include  -I/opt/x11/r6.3/include   -Dsun -DSVR4       -- 
vncpasswd.c
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/vncpasswd'
depending in ./vncconnect...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncconnect'
makedepend  --   -I/opt/x11/r6.3/include   -Dsun -DSVR4       --
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/vncconnect'
make[1]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc'
make all
make[1]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc'
making all in ./libvncauth...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/libvncauth'
gcc -O2   -I. -I../include  -I/opt/x11/r6.3/include   -Dsun -DSVR4       -c  vncauth.c
gcc -O2   -I. -I../include  -I/opt/x11/r6.3/include   -Dsun -DSVR4       -c  d3des.c
rm -f libvncauth.a
/usr/ccs/bin/ar cq libvncauth.a vncauth.o d3des.o
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/libvncauth'
making all in ./vncviewer...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncviewer'
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  argsresources.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  colour.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  cursor.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  desktop.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  dialogs.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  fullscreen.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  listen.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  misc.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  popup.c
gcc -O2   -I../include -I. -I/usr/include  -I/opt/x11/r6.3/include   -Dsun -DSVR4      
 -c  rfbproto.c
rfbproto.c:31: zlib.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `rfbproto.o'
Current working directory /home/fma/INSTROOT/vnc_unixsrc/vncviewer
making all in ./vncpasswd...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncpasswd'
gcc -O2   -I../include  -I/opt/x11/r6.3/include   -Dsun -DSVR4       -c  vncpasswd.c
rm -f vncpasswd
LD_RUN_PATH=/opt/x11/r6.3/lib gcc -o vncpasswd -O2      -L/opt/x11/r6.3/lib 
vncpasswd.o ../libvncauth/libvncauth.a    -lsocket -lnsl
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/vncpasswd'
making all in ./vncconnect...
make[2]: Entering directory `/home/fma/INSTROOT/vnc_unixsrc/vncconnect'
gcc -O2     -I/opt/x11/r6.3/include   -Dsun -DSVR4       -c  vncconnect.c
rm -f vncconnect
LD_RUN_PATH=/opt/x11/r6.3/lib gcc -o vncconnect -O2      -L/opt/x11/r6.3/lib 
vncconnect.o -lXext -lX11    -lsocket -lnsl
make[2]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc/vncconnect'
make[1]: Leaving directory `/home/fma/INSTROOT/vnc_unixsrc'

Built libvncauth vncviewer vncpasswd vncconnect.
To build Xvnc, do "cd Xvnc", followed by "make World"

*INSTROOT/vnc_unixsrc:23> exit

script done on Sat Nov 17 00:28:15 2001
---------------------------------------------------------------------
To unsubscribe, mail [EMAIL PROTECTED] with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to