[Xorg] -query option missing from Xorg

Seb James seb at hypercubesystems.co.uk
Wed Jun 23 08:25:25 PDT 2004


Hi,

I'm building Xorg to run on a small computer, which is an i586, using
uclibc and a late 2.4.x kernel.

I've got a cross-compiled Xorg built ok, but the Xorg binary has no
"-query" option to allow it to send out an Xdmcp query. 

However, xdmcp.o is compiled:

-------------------------------------------------------
/data/projects/buildroot.X2/build_i586/staging_dir/bin/i686-linux-uclibc-gcc -c -O2 -ansi -pedantic -Wall -Wpointer-arith -Wundef     -I. -I../include -I../../../exports/include/X11 -I../../../include/extensions 		  -I../../../programs/Xserver/Xext -I../../../include/fonts -I../../../programs/Xserver/render 		  -I../../../lib/Xau -I../lbx  -I../../.. -I../../../exports/include -I/usr/X11R6/include  -Dlinux -D_POSIX_SOURCE 				-D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE -DSHAPE -DXINPUT -DXKB  -DXAPPGROUP 	-DXCSECURITY -DTOGCUP  	-DXF86BIGFONT -DDPMSExtension 	  -DPANORAMIX 	 -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH 				-DXFreeXDGA -DXvExtension 				-DXFree86LOADER  -DXFree86Server 				-DXF86VIDMODE 				-DXvMCExtension 				-DSMART_SCHEDULE 				-DBUILDDEBUG -DXResExtension 				-DX_BYTE_ORDER=X_LITTLE_ENDIAN 				-DXORG_VERSION_CURRENT="(((6) * 10000000) + ((7) * 100000) + ((0) * 1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO   -DXSERV_t -DTRANS_SERVER -DUNIXCONN -DTCPCONN -DHAS_STICKY_DIR_BIT -DHAS_FCHOWN -DIPv6  		     -DDDXOSINIT -DSERVER_LOCK -DDDXOSFATALERROR 				-DDDXOSVERRORF -DDDXTIME 		   -DUSE_RGB_TXT  		    -DXVENDORNAME='"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'   xdmcp.c
-------------------------------------------------------

And then the Xdmcp library seems to be linked into Xorg:

-------------------------------------------------------
/data/projects/buildroot.X2/build_i586/staging_dir/bin/i686-linux-uclibc-gcc -o Xorg -O2 -ansi -pedantic -Wall -Wpointer-arith -Wundef     -L../../exports/lib  -L/usr/X11R6/lib xkb/xf86KillSrv.o xkb/xf86VT.o xkb/xf86Private.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 Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                     ../../programs/Xserver/hw/xfree86/common/libxf86.a 	       Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                     randr/librandr.a render/librender.a dix/libxpstubs.a mi/libmi.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                     randr/librandr.a render/librender.a  ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a     -lz -lm    		    -lXau -lXdmcp  -rdynamic -ldl
-------------------------------------------------------

And yet no -query option to the resultant Xorg.

My host.def contains defines to build libXdmcp as a shared library:

-------------------------------------------------------
#define XawI18nDefines		-DUSE_XWCHAR_STRING -DUSE_XMBTOWC
/* Could maybe play with this parameter */
#define ThreadedX               NO
#define BuildDocs               NO
/* Not sure what these are, so won't interfere with xorg defaults */
/* #define KDriveXServer           YES */
/* #define KdriveServerExtraDefines -DITSY -DMAXSCREENS=1 */
/* Don't want a TinyX server, want the full shebang */
#define TinyXServer             NO
/* we _are_ cross compiling */
#define CrossCompiling          YES
/* don't know what this is */
/* #define ItsyCompilerBug         YES */
/* what's RandR? */
#undef BuildRandR
#define BuildRandR              YES
/* lbx is for reducing X related bandwidth */
#define BuildLBX                NO
#define BuildXInputLib          YES
#define ProjectRoot             /usr/X11R6
#define Freetype2Dir            $(TOP)/extras/freetype2
#define Freetype2LibDir         $(TOP)/exports/lib
/* X11.tmpl suggests that these are necessary: */
#define BuildFreetype2Library	YES
#define HasExpat		NO
#define BuildExpatLibrary	YES
#define UseExpat		YES
#define UseFreetype2		YES
#define UseFontconfig		YES
#define BuildFreetype		YES
#define BuildFreetype2		YES
#define BuildXftLibrary		YES
#define BuildXft1Library	YES
#define TermcapLibrary		-lncurses

#define BuildXdmcpLib		YES
#define SharedLibXdmcp		YES

#define BuildXcursorgen		NO

#define BuildXTrueType          YES
#define BuildScreenSaverExt     YES
#define BuildScreenSaverLibrary YES
#define SharedLibXss            YES
-------------------------------------------------------

I've tried to compare a standard native build of Xorg on my host, where
the Xorg binary _does_ have the -query option and the Xorg build for my
target, but I can't find the relevant difference.

Can anyone help with any suggestions?

many thanks,

Seb James







More information about the xorg mailing list