VNC patch for Xserver 1.3

Stefan Dirsch sndirsch at suse.de
Thu Aug 23 07:31:02 PDT 2007


On Wed, Aug 22, 2007 at 05:45:58PM +0200, Stefan Dirsch wrote:
> On Wed, Aug 22, 2007 at 04:29:55PM +0100, Alan Hourihane wrote:
> > On Wed, 2007-08-22 at 17:21 +0200, Stefan Dirsch wrote:
> > > On Wed, Aug 22, 2007 at 04:06:29PM +0100, Alan Hourihane wrote:
> > > > On Wed, 2007-08-22 at 16:17 +0200, Stefan Dirsch wrote:
> > > > > On Wed, Aug 22, 2007 at 12:28:28PM +0100, Alan Hourihane wrote:
> > > > > > On Wed, 2007-08-22 at 12:37 +0200, Stefan Dirsch wrote:
> > > > > > > On Wed, Aug 22, 2007 at 10:30:49AM +0200, Stefan Dirsch wrote:
> > > > > > > > On Wed, Aug 22, 2007 at 09:18:12AM +0100, Alan Hourihane wrote:
> > > > > > > > > On Wed, 2007-08-22 at 10:08 +0200, Stefan Dirsch wrote:
> > > > > > > > > > On Mon, Aug 20, 2007 at 11:11:14AM +0100, Alan Hourihane wrote:
> > > > > > > > > > > On Mon, 2007-08-20 at 10:57 +0100, Colin Guthrie wrote:
> > > > > > > > > > > > Alan Hourihane wrote:
> > > > > > > > > > > > > On Mon, 2007-08-20 at 10:19 +0100, Colin Guthrie wrote:
> > > > > > > > > > > > >> Alan Hourihane wrote:
> > > > > > > > > > > > >>> It contains a full copy of the xserver tree because it needs to build
> > > > > > > > > > > > >>> Xvnc. It contains a pre-1.3 copy of the xserver tree though. But it
> > > > > > > > > > > > >>> wasn't that far behind.
> > > > > > > > > > > > >> So really, when you say it compiles fine "against" 1.3, you really mean,
> > > > > > > > > > > > >> it will compile fine and run with 1.3?
> > > > > > > > > > > > > 
> > > > > > > > > > > > > Both. I'm just about to merge the 1.3 stable code into xf4vnc anyway.
> > > > > > > > > > > > 
> > > > > > > > > > > > Oh great :) So I should be able to generate a patch for Xserver 1.3
> > > > > > > > > > > > after you've finished that merge? A few strategically placed -j options
> > > > > > > > > > > > to cvs diff should suffice if I remember my CVS syntax :)
> > > > > > > > > > > > 
> > > > > > > > > > > > Thanks for that :D
> > > > > > > > > > > 
> > > > > > > > > > > Actually, I've decided to pull in the current trunk for now. Given that
> > > > > > > > > > > 1.4 is just around the corner.
> > > > > > > > > > 
> > > > > > > > > > I just gave the current CVS (2007-08-21) a try. Looks like the
> > > > > > > > > > standalone Xvnc Xserver works for me (didn't test test this much), but
> > > > > > > > > > the vnc module does not.
> > > > > > > > > > 
> > > > > > > > > > (II) LoadModule: "vnc"
> > > > > > > > > > (II) Loading /usr/lib64/xorg/modules//extensions/libvnc.so
> > > > > > > > > > dlopen: /usr/lib64/xorg/modules//extensions/libvnc.so: undefined symbol: GetMotionHistory
> > > > > > > > > > (EE) Failed to load /usr/lib64/xorg/modules//extensions/libvnc.so
> > > > > > > > > > (II) UnloadModule: "vnc"
> > > > > > > > > > (EE) Failed to load module "vnc" (loader failed, 7)
> > > > > > > > > 
> > > > > > > > > Fixed.
> > > > > > > > 
> > > > > > > > Thanks! I'll give it a try ASAP and give you feedback.
> > > > > > > 
> > > > > > > gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/freetype2 -I/usr/include/pixman-1   -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow  -I../../miext/damage -I../../render -I../../randr -I../../fb -DVNCSERVER -DHAVE_XVNC_CONFIG_H -I../../hw/dmx/vnc -DCHROMIUM=1 -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-aliasing -c init.c
> > > > > > > init.c:855:18: error: missing binary operator before token "("
> > > > > > > make[2]: *** [init.o] Error 1
> > > > > > > make[2]: Leaving directory `/usr/src/packages/BUILD/xserver/hw/vnc'
> > > > > > > 
> > > > > > > I replaced 
> > > > > > > 
> > > > > > >   #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0
> > > > > > > 
> > > > > > > with 
> > > > > > > 
> > > > > > >   #if 1
> > > > > > > 
> > > > > > > --> init.c:(.text+0x4a9): undefined reference to `miPointerGetMotionEvents'
> > > > > > > 
> > > > > > > It builds with "#if 0", but then we're back to GetMotionHistory, which
> > > > > > > cannot be resolved on a 1.3 X.Org server at runtime.
> > > > > > 
> > > > > > Can you try again Stefan ?
> > > > > 
> > > > > Hmm. Again the initial problem. :-(
> > > > > 
> > > > > (II) LoadModule: "vnc"
> > > > > (II) Loading /usr/lib64/xorg/modules//extensions/libvnc.so
> > > > > dlopen: /usr/lib64/xorg/modules//extensions/libvnc.so: undefined symbol: GetMotionHistory
> > > > > (EE) Failed to load /usr/lib64/xorg/modules//extensions/libvnc.so
> > > > > (II) UnloadModule: "vnc"
> > > > > (EE) Failed to load module "vnc" (loader failed, 7)
> > > > > 
> > > > 
> > > > Doh, sorry about that.  Should be fixed now.
> > > 
> > > Hmm. It doesn't look like you changed anything in CVS. Maybe you
> > > forgot to commit?
> > 
> > No, it's there. Maybe you've been caught by the delay to copy to anoncvs
> > on SF.
> > 
> > Try again.
> 
> Maybe you can tell me, what you changed, so I easily can verify this?

Thanks. Unfortunately the Xserver crashes immediately now.

(gdb) run
Starting program: /usr/bin/Xorg :1

X Window System Version 7.2.0
Release Date: Sat Aug 18 09:39:10 UTC 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux shannon 2.6.22.3-5-default #1 SMP 2007/08/17 18:
57:29 UTC x86_64
Build Date: 18 August 2007
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Thu Aug 23 16:25:38 2007
(==) Using config file: "/etc/X11/xorg.conf"
[tcsetpgrp failed in terminal_inferior: Operation not permitted]
[Thread debugging using libthread_db enabled]
[New Thread 0x2ab337bb4290 (LWP 4737)]
Error while reading shared library symbols:
Cannot find new threads: generic error
(EE) Failed to load module "rfbkeyb" (module does not exist, 0)
(EE) Failed to load module "rfbmouse" (module does not exist, 0)
(WW) intel: No matching Device section for instance (BusID PCI:0:2:1) found
(II) Module already built-in
(II) Module already built-in
(II) Module already built-in
(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ab337bb4290 (LWP 4737)]
0x00000000004a0bdc in xf86CollectInputOptions ()
(gdb) bt
#0  0x00000000004a0bdc in xf86CollectInputOptions ()
#1  0x00002ab338d5a019 in xf86rfbKeybInit ()
   from /usr/lib64/xorg/modules//extensions/libvnc.so
#2  0x0000000000467fdc in InitInput ()
#3  0x0000000000439931 in main ()
(gdb) quit

Best regards,
Stefan

Public Key available
------------------------------------------------------
Stefan Dirsch (Res. & Dev.)   SUSE LINUX Products GmbH
Tel: 0911-740 53 0            Maxfeldstraße 5
FAX: 0911-740 53 479          D-90409 Nürnberg
http://www.suse.de            Germany 
-----------------------------------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-----------------------------------------------------------------



More information about the xorg mailing list