vnc-3.3.7 with cygwin
Harold L Hunt II
huntharo@msu.edu
Mon Mar 24 11:51:00 GMT 2003
You have to have Cygwin/XFree86 compiled with the shared memory
extension (SHM), which is not in the standard distribution. You can
look at the KDE on Cygwin project for binaries with the SHM extension
enabled. SHM is not on by default because it depends on another Cygwin
package (cygipc, or does it have a new name now?) that has not been
blessed as stable/supported yet. So, we could not distributed a VNC
binary for Cygwin/XFree86 that was installed via setup.exe until we use
the SHM extension in the standard build.
Usually when people want to use an X program that is available as a
native Windows binary we ask them why they are trying to do this. I am
sure you have your reasons, but understand that most people probably
won't share your motivations... Good luck with it if you decide to
pursue it.
Harold
roland wrote:
> Hi cygwinners,
>
> i searched the net a bit and saw, that some time ago, s.o. made xvnc run under cygwin.
> Unfortunately I didn`t find any binary download on the net, so I gave it a try to compile it
> from source (http://www.realvnc.com/dist/vnc-3.3.7-unixsrc.tar.gz).
> I looked very compromising for the first part of compile (just had to modify some
> paths in Makefile because some libs/headers wouldn`t be found without - but then I got:
>
> c++ -O2 -Wall -L/usr/X11R6/lib -o vncviewer argsresources.o colour.o desktop.o
> dialogs.o fullscreen.o listen.o misc.o popup.o rfbproto.o selection.o shm.o vncv
> iewer.o sockets.o zrle.o buildtime.o ../rfb/librfb.a ../rdr/librdr.a ../zlib/li
> bz.a -lXmu -lXaw -lXt -lX11 -lXext
> shm.o(.text+0x69):shm.c: undefined reference to `_shmdt'
> shm.o(.text+0x86):shm.c: undefined reference to `_shmctl'
> shm.o(.text+0xe5):shm.c: undefined reference to `_XShmQueryExtension'
> shm.o(.text+0x149):shm.c: undefined reference to `_XShmCreateImage'
> shm.o(.text+0x172):shm.c: undefined reference to `_shmget'
> shm.o(.text+0x198):shm.c: undefined reference to `_shmat'
> shm.o(.text+0x1d4):shm.c: undefined reference to `_XShmAttach'
> shm.o(.text+0x20d):shm.c: undefined reference to `_shmdt'
> shm.o(.text+0x22a):shm.c: undefined reference to `_shmctl'
> /usr/X11R6/lib/libXaw.a(Form.o)(.text+0x45f):Form.c: undefined reference to `_Xm
> uNewCvtStringToWidget'
> /usr/X11R6/lib/libXaw.a(Form.o)(.text+0x481):Form.c: undefined reference to `_Xm
> uCvtWidgetToString'
> /usr/X11R6/lib/libXaw.a(Toggle.o)(.text+0xc7):Toggle.c: undefined reference to
>
>
> I cannot evaluate, if this is a minor or a major problem - but perhaps someone of you
> experts can tell me, what`s wrong here and what can be done to fix this. (i`m admin
> with marginal programming skills)
>
> please reply to my mailadress, too - i`m not subscribed to this list.
>
> TIA & regards
> roland
>
>
>
>
> tester@schlepptopp /tmp/vnc-3.3.7-unixsrc
> $ make
> make[1]: Entering directory `/tmp/vnc-3.3.7-unixsrc/zlib'
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o example.o example.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o adler32.o adler32.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o compress.o compress.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o crc32.o crc32.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o gzio.o gzio.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o uncompr.o uncompr.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o deflate.o deflate.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o trees.o trees.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o zutil.o zutil.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o inflate.o inflate.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o infblock.o infblock.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o inftrees.o inftrees.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o infcodes.o infcodes.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o infutil.o infutil.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o inffast.o inffast.c
> ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zut
> il.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -o example example.o -L. -lz
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -c -o minigzip.o minigzip.c
> gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP -o minigzip minigzip.o -L. -lz
> make[1]: Leaving directory `/tmp/vnc-3.3.7-unixsrc/zlib'
> make[1]: Entering directory `/tmp/vnc-3.3.7-unixsrc/rdr'
> c++ -DX_DISPLAY_MISSING=1 -I.. -I../zlib -O2 -Wall -c FdInStream.cxx
> c++ -DX_DISPLAY_MISSING=1 -I.. -I../zlib -O2 -Wall -c FdOutStream.cxx
> c++ -DX_DISPLAY_MISSING=1 -I.. -I../zlib -O2 -Wall -c InStream.cxx
> c++ -DX_DISPLAY_MISSING=1 -I.. -I../zlib -O2 -Wall -c NullOutStream.cxx
> c++ -DX_DISPLAY_MISSING=1 -I.. -I../zlib -O2 -Wall -c ZlibInStream.cxx
> c++ -DX_DISPLAY_MISSING=1 -I.. -I../zlib -O2 -Wall -c ZlibOutStream.cxx
> rm -f librdr.a
> ar cq librdr.a FdInStream.o FdOutStream.o InStream.o NullOutStream.o ZlibInStrea
> m.o ZlibOutStream.o
> ranlib librdr.a
> make[1]: Leaving directory `/tmp/vnc-3.3.7-unixsrc/rdr'
> make[1]: Entering directory `/tmp/vnc-3.3.7-unixsrc/rfb'
> gcc -DX_DISPLAY_MISSING=1 -I.. -O2 -Wall -c d3des.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -O2 -Wall -c vncauth.c
> rm -f librfb.a
> ar cq librfb.a d3des.o vncauth.o
> ranlib librfb.a
> make[1]: Leaving directory `/tmp/vnc-3.3.7-unixsrc/rfb'
> make[1]: Entering directory `/tmp/vnc-3.3.7-unixsrc/vncconnect'
> gcc -DX_DISPLAY_MISSING=1 -O2 -Wall -L/usr/X11R6/lib -c vncconnect.c
> rm -f vncconnect
> gcc -O2 -Wall -L/usr/X11R6/lib -o vncconnect vncconnect.o -lX11 -lXext
> make[1]: Leaving directory `/tmp/vnc-3.3.7-unixsrc/vncconnect'
> make[1]: Entering directory `/tmp/vnc-3.3.7-unixsrc/vncpasswd'
> gcc -DX_DISPLAY_MISSING=1 -I.. -O2 -Wall -c vncpasswd.c
> rm -f vncpasswd
> gcc -O2 -Wall -o vncpasswd vncpasswd.o ../rfb/librfb.a
> make[1]: Leaving directory `/tmp/vnc-3.3.7-unixsrc/vncpasswd'
> make[1]: Entering directory `/tmp/vnc-3.3.7-unixsrc/vncviewer'
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c argsresources.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c colour.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c desktop.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c dialogs.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c fullscreen.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c listen.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c misc.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c popup.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c rfbproto.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c selection.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c shm.c
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c vncviewer.c
> c++ -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c sockets.cxx
> c++ -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c zrle.cxx
> gcc -DX_DISPLAY_MISSING=1 -I.. -I/usr/include/cygwin -DVNC_SOCKLEN_T=socklen_t
> -O2 -Wall -L/usr/X11R6/lib -c buildtime.c
> rm -f vncviewer
> c++ -O2 -Wall -L/usr/X11R6/lib -o vncviewer argsresources.o colour.o desktop.o
> dialogs.o fullscreen.o listen.o misc.o popup.o rfbproto.o selection.o shm.o vncv
> iewer.o sockets.o zrle.o buildtime.o ../rfb/librfb.a ../rdr/librdr.a ../zlib/li
> bz.a -lXmu -lXaw -lXt -lX11 -lXext
> shm.o(.text+0x69):shm.c: undefined reference to `_shmdt'
> shm.o(.text+0x86):shm.c: undefined reference to `_shmctl'
> shm.o(.text+0xe5):shm.c: undefined reference to `_XShmQueryExtension'
> shm.o(.text+0x149):shm.c: undefined reference to `_XShmCreateImage'
> shm.o(.text+0x172):shm.c: undefined reference to `_shmget'
> shm.o(.text+0x198):shm.c: undefined reference to `_shmat'
> shm.o(.text+0x1d4):shm.c: undefined reference to `_XShmAttach'
> shm.o(.text+0x20d):shm.c: undefined reference to `_shmdt'
> shm.o(.text+0x22a):shm.c: undefined reference to `_shmctl'
> /usr/X11R6/lib/libXaw.a(Form.o)(.text+0x45f):Form.c: undefined reference to `_Xm
> uNewCvtStringToWidget'
> /usr/X11R6/lib/libXaw.a(Form.o)(.text+0x481):Form.c: undefined reference to `_Xm
> uCvtWidgetToString'
> /usr/X11R6/lib/libXaw.a(Toggle.o)(.text+0xc7):Toggle.c: undefined reference to `
> _XmuNewCvtStringToWidget'
> /usr/X11R6/lib/libXaw.a(Toggle.o)(.text+0xe9):Toggle.c: undefined reference to `
> _XmuCvtWidgetToString'
> /usr/X11R6/lib/libXaw.a(Command.o)(.text+0x857):Command.c: undefined reference t
> o `_XmuCvtStringToShapeStyle'
> /usr/X11R6/lib/libXaw.a(Command.o)(.text+0x879):Command.c: undefined reference t
> o `_XmuCvtShapeStyleToString'
> /usr/X11R6/lib/libXaw.a(Command.o)(.text+0x8ef):Command.c: undefined reference t
> o `_XmuReshapeWidget'
> /usr/X11R6/lib/libXaw.a(Command.o)(.text+0xa19):Command.c: undefined reference t
> o `_XmuCreateStippledPixmap'
> /usr/X11R6/lib/libXaw.a(Pixmap.o)(.text+0x1d4b):Pixmap.c: undefined reference to
> `_XpmReadFileToPixmap'
> /usr/X11R6/lib/libXaw.a(Scrollbar.o)(.text+0xfb):Scrollbar.c: undefined referenc
> e to `_XmuCvtStringToOrientation'
> /usr/X11R6/lib/libXaw.a(Scrollbar.o)(.text+0x11d):Scrollbar.c: undefined referen
> ce to `_XmuCvtOrientationToString'
> /usr/X11R6/lib/libXaw.a(Scrollbar.o)(.text+0x4aa):Scrollbar.c: undefined referen
> ce to `_XmuCreateStippledPixmap'
> /usr/X11R6/lib/libXaw.a(Label.o)(.text+0x83):Label.c: undefined reference to `_X
> muCvtStringToJustify'
> /usr/X11R6/lib/libXaw.a(Label.o)(.text+0xa5):Label.c: undefined reference to `_X
> muCvtJustifyToString'
> /usr/X11R6/lib/libXaw.a(Label.o)(.text+0x613):Label.c: undefined reference to `_
> XmuCreateStippledPixmap'
> /usr/X11R6/lib/libXaw.a(Label.o)(.text+0xf96):Label.c: undefined reference to `_
> XmuReleaseStippledPixmap'
> /usr/X11R6/lib/libXaw.a(Label.o)(.text+0x108f):Label.c: undefined reference to `
> _XmuReleaseStippledPixmap'
> /usr/X11R6/lib/libXaw.a(Vendor.o)(.text+0x22d):Vendor.c: undefined reference to
> `_XmuCvtStringToCursor'
> /usr/X11R6/lib/libXaw.a(Vendor.o)(.text+0x24e):Vendor.c: undefined reference to
> `_XmuCvtStringToBitmap'
> /usr/X11R6/lib/libXaw.a(Vendor.o)(.text+0x314):Vendor.c: undefined reference to
> `__XEditResCheckMessages'
> /usr/X11R6/lib/libXaw.a(Vendor.o)(.text+0x32b):Vendor.c: undefined reference to
> `_XmuRegisterExternalAgent'
> /usr/X11R6/lib/libXaw.a(Simple.o)(.text+0x11e):Simple.c: undefined reference to
> `_XmuCvtStringToColorCursor'
> /usr/X11R6/lib/libXaw.a(Simple.o)(.text+0x2f0):Simple.c: undefined reference to
> `_XmuCreateStippledPixmap'
> /usr/X11R6/lib/libXaw.a(Simple.o)(.text+0x76b):Simple.c: undefined reference to
> `_XmuCreateStippledPixmap'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0xc92):Text.c: undefined reference to `_Xm
> uNewScanline'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x10c4):Text.c: undefined reference to `_X
> muScanlineOrSegment'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x21a1):Text.c: undefined reference to `_X
> muScanlineXor'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x3c43):Text.c: undefined reference to `_X
> muOptimizeScanline'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x3f10):Text.c: undefined reference to `_X
> muNewArea'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x4068):Text.c: undefined reference to `_X
> muAreaOrXor'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x4100):Text.c: undefined reference to `_X
> muDestroyScanlineList'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x4361):Text.c: undefined reference to `_X
> muAreaOrXor'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x43e3):Text.c: undefined reference to `_X
> muAreaOrXor'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x4f2c):Text.c: undefined reference to `_X
> muScanlineXor'
> /usr/X11R6/lib/libXaw.a(Text.o)(.text+0x561c):Text.c: undefined reference to `_X
> muDestroySegmentList'
> /usr/X11R6/lib/libXaw.a(AsciiSink.o)(.text+0xb35):AsciiSink.c: undefined referen
> ce to `_XmuAreaOrXor'
> /usr/X11R6/lib/libXaw.a(AsciiSink.o)(.text+0xb6f):AsciiSink.c: undefined referen
> ce to `_XmuAreaOrXor'
> /usr/X11R6/lib/libXaw.a(AsciiSink.o)(.text+0xb85):AsciiSink.c: undefined referen
> ce to `_XmuNewArea'
> /usr/X11R6/lib/libXaw.a(AsciiSink.o)(.text+0xbfb):AsciiSink.c: undefined referen
> ce to `_XmuNewArea'
> /usr/X11R6/lib/libXaw.a(AsciiSink.o)(.text+0xc38):AsciiSink.c: undefined referen
> ce to `_XmuAreaOrXor'
> /usr/X11R6/lib/libXaw.a(AsciiSink.o)(.text+0xe0e):AsciiSink.c: undefined referen
> ce to `_XmuAreaOrXor'
> /usr/X11R6/lib/libXaw.a(TextSink.o)(.text+0x6ca):TextSink.c: undefined reference
> to `_XmuNewArea'
> /usr/X11R6/lib/libXaw.a(TextSink.o)(.text+0x7a9):TextSink.c: undefined reference
> to `_XmuDestroyScanlineList'
> /usr/X11R6/lib/libXaw.a(TextSink.o)(.text+0x7cf):TextSink.c: undefined reference
> to `_XmuDestroyScanlineList'
> /usr/X11R6/lib/libXaw.a(TextSink.o)(.text+0x817):TextSink.c: undefined reference
> to `_XmuDestroyScanlineList'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3536):Shell.c: undefined reference to `_
> SmcCloseConnection'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3617):Shell.c: undefined reference to `_
> SmcModifyCallbacks'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3626):Shell.c: undefined reference to `_
> SmcClientID'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3686):Shell.c: undefined reference to `_
> SmcOpenConnection'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x37b6):Shell.c: undefined reference to `_
> SmcGetIceConnection'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x37cd):Shell.c: undefined reference to `_
> IceConnectionNumber'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3d51):Shell.c: undefined reference to `_
> SmcSetProperties'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3de4):Shell.c: undefined reference to `_
> SmcSetProperties'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3e4d):Shell.c: undefined reference to `_
> SmcDeleteProperties'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3e7c):Shell.c: undefined reference to `_
> SmcGetIceConnection'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3e85):Shell.c: undefined reference to `_
> IceProcessMessages'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x3f26):Shell.c: undefined reference to `_
> SmcSaveYourselfDone'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x408a):Shell.c: undefined reference to `_
> SmcInteractDone'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x41ab):Shell.c: undefined reference to `_
> SmcSaveYourselfDone'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x43f1):Shell.c: undefined reference to `_
> SmcInteractRequest'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x448e):Shell.c: undefined reference to `_
> SmcInteractDone'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x44da):Shell.c: undefined reference to `_
> SmcRequestSaveYourselfPhase2'
> /usr/X11R6/lib/libXt.a(Shell.o)(.text+0x4501):Shell.c: undefined reference to `_
> SmcSaveYourselfDone'
> collect2: ld returned 1 exit status
> make[1]: *** [vncviewer] Error 1
> make[1]: Leaving directory `/tmp/vnc-3.3.7-unixsrc/vncviewer'
> make: *** [all] Error 1
More information about the Cygwin-xfree
mailing list