Help:compiling vnc on OpenLinux2.2
Jonathan Chan
afc1 "at" erols.com
Tue, 22 Jun 1999 10:51:24 +0000
Hi all, I found out that there was no binary for Openlinux 2.2.
So I tried to compile it myself. Here are the error message I got.
make[2]: Entering directory `/root/vnc_unixsrc/vncviewer'
gccmakedep -- -I../include -I. -I/usr/X11R6/include -Dlinux -D__i386__ -D_PO
SIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_
SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DMITSHM -- args.c listen.c rfbproto.c s
ockets.c vncviewer.c x.c
In file included from args.c:25:
vncviewer.h:28: X11/Xlib.h: No such file or directory
vncviewer.h:29: X11/Xmd.h: No such file or directory
In file included from listen.c:28:
vncviewer.h:28: X11/Xlib.h: No such file or directory
vncviewer.h:29: X11/Xmd.h: No such file or directory
In file included from rfbproto.c:27:
vncviewer.h:28: X11/Xlib.h: No such file or directory
vncviewer.h:29: X11/Xmd.h: No such file or directory
rfbproto.c:28: X11/Xatom.h: No such file or directory
In file included from sockets.c:31:
vncviewer.h:28: X11/Xlib.h: No such file or directory
vncviewer.h:29: X11/Xmd.h: No such file or directory
In file included from vncviewer.c:24:
vncviewer.h:28: X11/Xlib.h: No such file or directory
vncviewer.h:29: X11/Xmd.h: No such file or directory
In file included from x.c:24:
vncviewer.h:28: X11/Xlib.h: No such file or directory
vncviewer.h:29: X11/Xmd.h: No such file or directory
x.c:25: X11/X.h: No such file or directory
x.c:26: X11/Xutil.h: No such file or directory
x.c:27: X11/Xatom.h: No such file or directory
x.c:28: X11/cursorfont.h: No such file or directory
x.c:29: X11/keysym.h: No such file or directory
x.c:34: X11/extensions/XShm.h: No such file or directory
make[2]: Leaving directory `/root/vnc_unixsrc/vncviewer'
depending in ./vncpasswd...
make[2]: Entering directory `/root/vnc_unixsrc/vncpasswd'
gccmakedep -- -I../include -I/usr/X11R6/include -Dlinux -D__i386__ -D_POSIX_
C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOUR
CE -DFUNCPROTO=15 -DNARROWPROTO -- vncpasswd.c
make[2]: Leaving directory `/root/vnc_unixsrc/vncpasswd'
make[1]: Leaving directory `/root/vnc_unixsrc'
make all
make[1]: Entering directory `/root/vnc_unixsrc'
making all in ./libvncauth...
make[2]: Entering directory `/root/vnc_unixsrc/libvncauth'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/vnc_unixsrc/libvncauth'
making all in ./vncviewer...
make[2]: Entering directory `/root/vnc_unixsrc/vncviewer'
gcc -O2 -fno-strength-reduce -I../include -I. -I/usr/X11R6/include -Dlinux
-D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD
_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DMITSHM -c args.c -o a
rgs.o
In file included from args.c:25:
vncviewer.h:28: X11/Xlib.h: No such file or directory
vncviewer.h:29: X11/Xmd.h: No such file or directory
make[2]: *** [args.o] Error 1
make[2]: Leaving directory `/root/vnc_unixsrc/vncviewer'
making all in ./vncpasswd...
make[2]: Entering directory `/root/vnc_unixsrc/vncpasswd'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/vnc_unixsrc/vncpasswd'
make[1]: Leaving directory `/root/vnc_unixsrc'
Built libvncauth vncviewer vncpasswd.
To build Xvnc, do "cd Xvnc", followed by "make World"
Anyway, I ignored these errors and went on compiled the Xvnc fine.
I figure maybe at least I can run it as server now. So I try to run vncserver and here are the message.
[root "at" afc3gw /root]# vncserver
xauth: (argv):1: bad display name "afc3gw.asianfoodcenter.com:" in "add" command
xauth: (argv):1: bad display name "afc3gw.asianfoodcenter.com/unix:" in "add" command
New 'X' desktop is afc3gw.asianfoodcenter.com:
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/afc3gw.asianfoodcenter.com:.log
[root "at" afc3gw /root]#
Here are the log file:
[root "at" afc3gw .vnc]# more afc3gw.asianfoodcenter.com:.log
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already run
ning
xrdb: Can't open display 'afc3gw.asianfoodcenter.com:'
xsetroot: unable to open display 'afc3gw.asianfoodcenter.com:'
twm: unable to open display "afc3gw.asianfoodcenter.com:"
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm Xt error: Can't open display: %s
[
Hope this is not a very stupid mistake.
Thank you very much
-jc
---------------------------------------------------------------------
The VNC mailing list - see http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------