vnc-4.1.1/vnc.so missing dependencies
James Weatherall
jnw "at" realvnc.com
Tue Oct 4 11:46:02 2005
Bogdan,
The module should link against the functions exported by the X server
binary, it should not have them linked in directly. You may well find that
things behave rather oddly with your build, since certain global variables
will be replicated between the module and the X core that shouldn't be!
Cheers,
Wez
> -----Original Message-----
> From: Bogdan Mutziu [mailto:bmutziu "at" itcnetworks.ro]
> Sent: 30 September 2005 13:55
> To: James Weatherall
> Cc: vnc-list "at" realvnc.com
> Subject: RE: vnc-4.1.1/vnc.so missing dependencies
>
> On Fri, 2005-09-30 at 12:51 +0100, James Weatherall wrote:
> James,
>
> Is an X server built by me.
> I have resolved the problem integrating all the missing simbols into
> vnc ...
>
> /net/tool/sol2x/stow/MakeDir/build#
> LD_RUN_PATH=/net/tool/sol2x/stow/X11R6/lib g++ -shared -o vnc.so -O3 -
> mv8 -mcpu=v8 -DNO_ASM -Wall -Wpointer-arith -Wundef -
> L../../exports/lib vnc/module/vncExtInit.o
> vnc/module/vncHooks.o vnc/module/xf86vncModule.o
> vnc/module/XserverDesktop.o
> ../../programs/Xserver/hw/xfree86/common/xf86Init.o
> ../../programs/Xserver/hw/xfree86/common/xf86IniExt.o
> ../../programs/Xserver/hw/xfree86/common/libxf86.a
> ../../programs/Xserver/hw/xfree86/parser/libxf86config.a
> ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a
> ../../programs/Xserver/hw/xfree86/loader/libloader.a
> ../../programs/Xserver/hw/xfree86/common/libxf86.a
> dix/libdix.a os/libos.a
> ../../lib/font/fontbase.o ../../lib/font/libfontbase.a
> ../../programs/Xserver/hw/xfree86/common/libxf86.a
> mi/libmi.a Xext/libexts.a Xi/libxinput.a lbx/liblbx.a
> ../../lib/lbxutil/liblbxutil.a vnc/libvnc.a
> ../../../../common/rfb/librfb.a
> ../../../../common/Xregion/libXregion.a
> ../../../../common/network/libnetwork.a
> ../../../../common/rdr/librdr.a randr/librandr.a
> render/librender.a
> ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a
> -lsocket -lnsl dix/libxpstubs.a -lz -lm
> -lXau -lXdmcp -ldl -lm
>
> ...
>
> and X now accepts it.
>
> I hope that this monster will be still functional when I'll
> came to the
> running vnc episode.
> If you can give me any advices regarding vnc on Solaris, I am all
> yours :)
>
> Thanks for your prompt answer,
>
> Bogdan
>
> > Bogdan,
> >
> > The missing symbols referenced by vnc.so are provided by
> the X server binary
> > itself. The fact that you can't load your vnc.so suggests
> that the XFree86
> > 4.5.0 binary is not providing one of the required export functions.
> >
> > Which version of the X tree are you building your vnc.so against?
> >
> > Is your XFree86 4.5.0 server built by you, or provided as a
> binary with the
> > system?
> >
> > Regards,
> >
> > Wez @ RealVNC Ltd.
> >
> >
> > > -----Original Message-----
> > > From: vnc-list-admin "at" realvnc.com
> > > [mailto:vnc-list-admin "at" realvnc.com] On Behalf Of Bogdan Mutziu
> > > Sent: 30 September 2005 09:07
> > > To: vnc-list "at" realvnc.com
> > > Subject: vnc-4.1.1/vnc.so missing dependencies
> > >
> > > Hello to everybody,
> > >
> > > I just subscribed to this list hoping that you can help me out:
> > >
> > >
> > > Configuration:
> > >
> > > Reading specs from
> > > /net/tool/sol2x/stow/tmp-gcc-3.4.2/lib/gcc/sparc-sun-
> > > solaris2.7/3.4.2/specs
> > > Configured with: ../gcc-3.4.2/configure
> > > --program-transform-name=s,\\(.*
> > > \\),\\1-3.4.2, --host=sparc-sun-solaris2.7 --
> > > prefix=/net/tool/sol2x/stow/tmp-gcc-3.4.2 --with-
> > > ld=/net/tool/sol2x/bin/ld --with-as=/net/tool/sol2x/bin/as
> > > --with-local-
> > > prefix=/net/tool/sol2x --with-gnu-as --with-gnu-ld
> > > --with-stabs --with-
> > > dwarf2 --enable-threads --with-included-gettext --enable-version-
> > > specific-runtime-libs
> > > Thread model: posix
> > > gcc version 3.4.2
> > >
> > >
> > > Compilation:
> > >
> > >
> /net/tool/sol2x/stow/MakeDir/build/programs/Xserver/vnc/module# make
> > > rm -f vncExtInit.cc
> > > ln -s ../vncExtInit.cc vncExtInit.cc
> > > g++ -O2 -fno-strict-aliasing -fPIC -shared -I..
> -I../../include -
> > > I../../../../include/extensions -I../../../../exports/include/X11
> > > -I../../../../include/fonts -
> > > I../../../../programs/Xserver/hw/xfree86/common -
> > > I../../../../../../common -I../../../../../vncconfig
> -I../../../.. -
> > > I../../../../exports/include -Dsun -DSVR4 -D__EXTENSIONS__
> > > -Dsparc -D__sparc__ -Dsun -DSVR4 -D__EXTENSIONS__
> -
> > > Dsparc -D__sparc__ -DSHAPE -DXINPUT -DLBX -DXAPPGROUP -
> > > DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension
> -DPANORAMIX
> > > -DRENDER -DRANDR -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH
> > > -
> > > DXFreeXDGA -DXvExtension
> -DXFree86LOADER
> > > -DXFree86Server -DXF86VIDMODE
> > > -DXvMCExtension -DSMART_SCHEDULE
> > > -DBUILDDEBUG -DXResExtension -
> > > DX_BYTE_ORDER=X_BIG_ENDIAN -DNDEBUG -DNEED_STRLCAT -
> > > DGC_HAS_COMPOSITE_CLIP -DXFree86LOADER -c -o vncExtInit.o
> > > vncExtInit.cc
> > > rm -f vncHooks.cc
> > > ln -s ../vncHooks.cc vncHooks.cc
> > > g++ -O2 -fno-strict-aliasing -fPIC -shared -I..
> -I../../include -
> > > I../../../../include/extensions -I../../../../exports/include/X11
> > > -I../../../../include/fonts -
> > > I../../../../programs/Xserver/hw/xfree86/common -
> > > I../../../../../../common -I../../../../../vncconfig
> -I../../../.. -
> > > I../../../../exports/include -Dsun -DSVR4 -D__EXTENSIONS__
> > > -Dsparc -D__sparc__ -Dsun -DSVR4 -D__EXTENSIONS__
> -
> > > Dsparc -D__sparc__ -DSHAPE -DXINPUT -DLBX -DXAPPGROUP -
> > > DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension
> -DPANORAMIX
> > > -DRENDER -DRANDR -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH
> > > -
> > > DXFreeXDGA -DXvExtension
> -DXFree86LOADER
> > > -DXFree86Server -DXF86VIDMODE
> > > -DXvMCExtension -DSMART_SCHEDULE
> > > -DBUILDDEBUG -DXResExtension -
> > > DX_BYTE_ORDER=X_BIG_ENDIAN -DNDEBUG -DNEED_STRLCAT -
> > > DGC_HAS_COMPOSITE_CLIP -DXFree86LOADER -c -o
> vncHooks.o vncHooks.cc
> > > rm -f xf86vncModule.cc
> > > ln -s ../xf86vncModule.cc xf86vncModule.cc
> > > g++ -O2 -fno-strict-aliasing -fPIC -shared -I..
> -I../../include -
> > > I../../../../include/extensions -I../../../../exports/include/X11
> > > -I../../../../include/fonts -
> > > I../../../../programs/Xserver/hw/xfree86/common -
> > > I../../../../../../common -I../../../../../vncconfig
> -I../../../.. -
> > > I../../../../exports/include -Dsun -DSVR4 -D__EXTENSIONS__
> > > -Dsparc -D__sparc__ -Dsun -DSVR4 -D__EXTENSIONS__
> -
> > > Dsparc -D__sparc__ -DSHAPE -DXINPUT -DLBX -DXAPPGROUP -
> > > DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension
> -DPANORAMIX
> > > -DRENDER -DRANDR -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH
> > > -
> > > DXFreeXDGA -DXvExtension
> -DXFree86LOADER
> > > -DXFree86Server -DXF86VIDMODE
> > > -DXvMCExtension -DSMART_SCHEDULE
> > > -DBUILDDEBUG -DXResExtension -
> > > DX_BYTE_ORDER=X_BIG_ENDIAN -DNDEBUG -DNEED_STRLCAT -
> > > DGC_HAS_COMPOSITE_CLIP -DXFree86LOADER -c -o xf86vncModule.o
> > > xf86vncModule.cc
> > > rm -f XserverDesktop.cc
> > > ln -s ../XserverDesktop.cc XserverDesktop.cc
> > > g++ -O2 -fno-strict-aliasing -fPIC -shared -I..
> -I../../include -
> > > I../../../../include/extensions -I../../../../exports/include/X11
> > > -I../../../../include/fonts -
> > > I../../../../programs/Xserver/hw/xfree86/common -
> > > I../../../../../../common -I../../../../../vncconfig
> -I../../../.. -
> > > I../../../../exports/include -Dsun -DSVR4 -D__EXTENSIONS__
> > > -Dsparc -D__sparc__ -Dsun -DSVR4 -D__EXTENSIONS__
> -
> > > Dsparc -D__sparc__ -DSHAPE -DXINPUT -DLBX -DXAPPGROUP -
> > > DXCSECURITY -DTOGCUP -DXF86BIGFONT -DDPMSExtension
> -DPANORAMIX
> > > -DRENDER -DRANDR -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH
> > > -
> > > DXFreeXDGA -DXvExtension
> -DXFree86LOADER
> > > -DXFree86Server -DXF86VIDMODE
> > > -DXvMCExtension -DSMART_SCHEDULE
> > > -DBUILDDEBUG -DXResExtension -
> > > DX_BYTE_ORDER=X_BIG_ENDIAN -DNDEBUG -DNEED_STRLCAT -
> > > DGC_HAS_COMPOSITE_CLIP -DXFree86LOADER -c -o XserverDesktop.o
> > > XserverDesktop.cc
> > > rm -f vnc.so
> > > g++ -o vnc.so -shared
> -lm
> > > vncExtInit.o vncHooks.o xf86vncModule.o
> > > XserverDesktop.o ../../../../../../common/rfb/librfb.a
> > > ../../../../../../common/Xregion/libXregion.a
> > > ../../../../../../common/network/libnetwork.a
> > > ../../../../../../common/rdr/librdr.a
> > >
> > > root "at" bmutziusolsun:/net/tool/sol2x/stow/MakeDir/build/programs
> > > /Xserver/vnc/module# ldd -u -r vnc.so
> > > libstdc++.so.6 =>
> /net/tool/sol2x/lib/gcc/sparc-sun-
> > > solaris2.7/3.4.2/libstdc++.so.6
> > > libm.so.1 => /lib/libm.so.1
> > > libgcc_s.so.1 =>
> /net/tool/sol2x/lib/gcc/sparc-sun-
> > > solaris2.7/3.4.2/libgcc_s.so.1
> > > libc.so.1 => /lib/libc.so.1
> > > libdl.so.1 => /lib/libdl.so.1
> > > /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
> > > symbol not found: main (./vnc.so)
> > > symbol not found: miEmptyData (./vnc.so)
> > > symbol not found: serverGeneration (./vnc.so)
> > > symbol not found: xf86Screens (./vnc.so)
> > > symbol not found: miEmptyBox (./vnc.so)
> > > symbol not found: display (./vnc.so)
> > > symbol not found: StandardMinorOpcode (./vnc.so)
> > > symbol not found: NumCurrentSelections (./vnc.so)
> > > symbol not found: serverClient (./vnc.so)
> > > symbol not found: CurrentSelections (./vnc.so)
> > > symbol not found: screenInfo (./vnc.so)
> > > symbol not found: WindowTable (./vnc.so)
> > > symbol not found: ClientStateCallback (./vnc.so)
> > > symbol not found: miRegionCopy (./vnc.so)
> > > symbol not found: FatalError (./vnc.so)
> > > symbol not found: deflate (./vnc.so)
> > > symbol not found: miIntersect (./vnc.so)
> > > symbol not found: miRegionDestroy (./vnc.so)
> > > symbol not found: __xnet_connect (./vnc.so)
> > > symbol not found: miSubtract (./vnc.so)
> > > symbol not found: WriteToClient (./vnc.so)
> > > symbol not found: Xfree (./vnc.so)
> > > symbol not found: AddCallback (./vnc.so)
> > > symbol not found: GetTimeInMillis (./vnc.so)
> > > symbol not found: __xnet_bind (./vnc.so)
> > > symbol not found: LookupKeyboardDevice (./vnc.so)
> > > symbol not found: GetSpritePosition (./vnc.so)
> > > symbol not found: SendMappingNotify (./vnc.so)
> > > symbol not found: accept (./vnc.so)
> > > symbol not found: xf86FindOptionValue (./vnc.so)
> > > symbol not found: RegisterBlockAndWakeupHandlers
> > > (./vnc.so)
> > > symbol not found: deflateInit_ (./vnc.so)
> > > symbol not found: inet_addr (./vnc.so)
> > > symbol not found: LookupIDByType (./vnc.so)
> > > symbol not found: setsockopt (./vnc.so)
> > > symbol not found: TimerFree (./vnc.so)
> > > symbol not found: GetCurrentRootWindow (./vnc.so)
> > > symbol not found: miTranslateRegion (./vnc.so)
> > > symbol not found: XNFrealloc (./vnc.so)
> > > symbol not found: listen (./vnc.so)
> > > symbol not found: AllocateGCPrivate (./vnc.so)
> > > symbol not found: ErrorF (./vnc.so)
> > > symbol not found: inet_ntoa (./vnc.so)
> > > symbol not found: TimerSet (./vnc.so)
> > > symbol not found: shutdown (./vnc.so)
> > > symbol not found: AllocateScreenPrivateIndex
> > > (./vnc.so)
> > > symbol not found: LoadExtension (./vnc.so)
> > > symbol not found: gethostbyname (./vnc.so)
> > > symbol not found: getpeername (./vnc.so)
> > > symbol not found: TimerCancel (./vnc.so)
> > > symbol not found: FakeFreeColor (./vnc.so)
> > > symbol not found: FakeAllocColor (./vnc.so)
> > > symbol not found: GiveUp (./vnc.so)
> > > symbol not found: NewCurrentScreen (./vnc.so)
> > > symbol not found: miRectsToRegion (./vnc.so)
> > > symbol not found: AllocateGCPrivateIndex
> > > (./vnc.so)
> > > symbol not found: XNFalloc (./vnc.so)
> > > symbol not found: AddExtension (./vnc.so)
> > > symbol not found: deflateEnd (./vnc.so)
> > > symbol not found: __xnet_socket (./vnc.so)
> > > symbol not found: LookupPointerDevice (./vnc.so)
> > > symbol not found: getsockname (./vnc.so)
> > >
> > > Running:
> > >
> > > /net/tool/sol2x/stow/MakeDir/build/programs/Xserver/vnc/module
> > > # XFree86
> > > -xf86config /root/XF86Config.new XFree86 Version 4.5.0
> > > Release Date: 16
> > > March 2005
> > > X Protocol Version 11, Revision 0
> > > Build Operating System: SunOS 5.7 Generic_106541-41 sun4u
> > > Build Date: 23 September 2005
> > > Changelog Date: 17 March 2005
> > > Before reporting problems, check http://www.XFree86.Org/
> > > to make sure that you have the latest version.
> > > Module Loader present
> > > Command line: XFree86 -xf86config /root/XF86Config.new
> > > Markers: (--) probed, (**) from config file, (==) default setting,
> > > (++) from command line, (!!) notice, (EE) error,
> (WW) warning,
> > > (II) informational, (NI) not implemented, (??) unknown.
> > > (==) Log file: "/var/log/XFree86.0.log", Time: Fri Sep 30
> > > 10:57:23 2005
> > > (++) Using config file: "/root/XF86Config.new".
> > > dlopen: ld.so.1: XFree86: fatal: relocation error:
> > > file
> /net/tool/sol2x/stow/X11R6/lib/modules/extensions/vnc.so: symbol
> > > miEmptyData: referenced symbol not found
> > > (EE) Failed to
> > > load /net/tool/sol2x/stow/X11R6/lib/modules/extensions/vnc.so
> > > (EE) Failed to load module "vnc" (loader failed, 7)
> > >
> > >
> > > I have try many things, including the addition of static libraries
> > > required by vnc.so, but it's a mess :(. After all, it's a *shared*
> > > library ...
> > > I have also read the postings and the notice that 4.1.1
> resolved the
> > > missing dependencies, but not for me :)
> > >
> > > Please enlight this matter.
> > >
> > >
> > > Many Thanks,
> > >
> > >
> > > Bogdan Mutiu,
> > >
> > > ITC Networks UNIX System Engineer
> > > _______________________________________________
> > > VNC-List mailing list
> > > VNC-List "at" realvnc.com
> > > To remove yourself from the list visit:
> > > http://www.realvnc.com/mailman/listinfo/vnc-list
> > _______________________________________________
> > VNC-List mailing list
> > VNC-List "at" realvnc.com
> > To remove yourself from the list visit:
> > http://www.realvnc.com/mailman/listinfo/vnc-list