On Wed, Mar 18, 2009 at 04:15:40AM -0500, DRC wrote: > I checked in a patch which seems to allow me to build Xvnc on RHEL 5 > using the Xorg server 1.1 branch. Using this patch, I do: > > git clone git://git.freedesktop.org/git/xorg/xserver xorg > cd xorg > git checkout origin/server-1_1-branch > cd .. > cp -r xorg/* xserver > cd xserver > patch -p1 <../xserver11.patch > configure --disable-xvfb --disable-xnest --disable-xorg --disable-dmx > --disable-xprint --disable-xorgcfg --disable-kdrive --disable-lbx > --disable-xevie --disable-dri --enable-xdmcp --enable-composite --host > i686-pc-linux-gnu --with-included-jpeg CFLAGS=-m32 CXXFLAGS=-m32 > LDFLAGS=-m32 > > (NOTE: these flags were mostly lifted from the RealVNC RPM spec file on > RHEL 5.) > > -------------------- > > I had to install the libxkbfile-devel RPM to avoid an error during > configure. > > -------------------- > > I then had to modify hw/vnc/Makefile.am to remove the references to > pixman. Otherwise I got an error during the build: > > make: *** No rule to make target `/usr/local/include/pixman-1/pixman.h', > needed by `pixman.h'. Stop. > > (NOTE: Does anyone know why the build needs the Pixman includes? None > of the code appears to use them.) > > I could also install the xulrunner-devel RPM and 'sudo ln -fs > /usr/include/xulrunner-sdk-1.9/libpixman /usr/local/include/pixman-1' in > order to avoid this error. However, best to remove the Pixman > references if they aren't needed. > > -------------------- > > Now I ran into the following issue: > > vncHooks.cc:90: error: 'DevPrivateKey' does not name a type > vncHooks.cc:91: error: 'DevPrivateKey' does not name a type > > I fixed this by adding the following patch: > > --- hw/vnc/vncHooks.cc (revision 3680) > +++ hw/vnc/vncHooks.cc (working copy) > @@ -85,6 +85,7 @@ > static DevPrivateKey vncHooksScreenPrivateKey = &vncHooksScreenPrivateKey; > static DevPrivateKey vncHooksGCPrivateKey = &vncHooksGCPrivateKey; > #else > +typedef void *DevPrivateKey; > static int vncHooksScreenPrivateKeyIndex; > static int vncHooksGCPrivateKeyIndex; > static DevPrivateKey vncHooksScreenPrivateKey = > &vncHooksScreenPrivateKeyIndex; > > However, I suspect this patch would break the Xorg 1.6 build. I'm > wondering if there is a way to detect the 1.1 release and #ifdef around > it. It doesn't appear to set the XORG_11 macro. > > -------------------- > > Now I ran into numerous problems regarding undefined functions > "dixLookupPrivate()" and "dixRequestPrivate()" in vncHooks.cc. I assume > these functions are only available in the later Xorg releases. I don't > know of a way around this one.
Your changes seems fine for me. Let me finish your work because Xorg 1.1 uses quite different API for accesses to "privates". I will let you know when server will be compilable against Xorg 1.1 Adam -- Adam Tkac, Red Hat, Inc. ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel