Bug 1221

Summary: xinerama - compile error
Product: xorg Reporter: rmrmg <rmrmg>
Component: Lib/XiAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: high CC: alan.coopersmith, eich, kem, roland.mainz
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 269, 351    

Description rmrmg 2004-08-28 08:51:59 UTC
When in host.def  is
#define BuildXinerama           NO
compilation generate this error:

make[6]: Leaving directory
`/notslack/compiled/CVS-VERSION/X.org/xc-28o/programs/Xserver/hw/dmx/glxProxy'
rm -f libdmx.a
ar clq libdmx.a dmxinit.o 	dmxscrinit.o 	dmxshadow.o 	dmxcursor.o 	dmxinput.o 
dmxdpms.o 	dmxgc.o 	dmxgcops.o 	dmxwindow.o 	dmxpixmap.o 	dmxfont.o 	dmxcmap.o 
dmxvisual.o 	dmxlog.o 	dmxcb.o 	dmxprop.o 	dmxstat.o 	dmxsync.o 
dmxextension.o 	miinitext.o 	dmx_glxvisuals.o  	dmxpict.o
ranlib libdmx.a
rm -f Xdmx._man
if test -z "true" ; then \
   cd `dirname Xdmx` && \
   ln -s `basename Xdmx.man` `basename Xdmx._man`; \
else \
      	     cpp -undef -traditional 
-D__apploaddir__=/usr/X11R6/lib/X11/app-defaults -D__appmansuffix__=1x
-D__filemansuffix__=5x -D__libmansuffix__=3x -D__miscmansuffix__=7
-D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr/X11R6
-D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/X11R6/lib/X11
-D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__='"" ""'
-D__vendorversion__="`echo 6 7 99 902 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`
X.Org"  \
     < Xdmx.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d' 			-e '/^#line 
*[0-9][0-9]*  *.*$/d' 			-e '/^[ 	]*XCOMM$/s/XCOMM/#/' 			
-e '/^[ 	]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' 			-e '/^[ 	]*XHASH/s/XHASH/#/' 			-e
'/\@\@$/s/\@\@$/\\/' >Xdmx._man; \
fi
rm -f Xdmx.1x.html Xdmx.1x-html
../../../../config/util/rman -f HTML < Xdmx._man \
  > Xdmx.1x-html && mv -f Xdmx.1x-html Xdmx.1x.html
make[5]: Leaving directory
`/notslack/compiled/CVS-VERSION/X.org/xc-28o/programs/Xserver/hw/dmx'
gcc -m32 -o Xorg -O2  -march=athlon-xp -mfpmath=sse -ansi -pedantic -Wall
-Wpointer-arith -Wstrict-prototypes 			  -Wmissing-prototypes
-Wmissing-declarations 		
	  -Wredundant-decls -Wnested-externs -Wundef     -L../../exports/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                   lbx/liblbx.a                  
../../lib/lbxutil/liblbxutil.a 
../../programs/Xserver/hw/xfree86/common/libxf86.a 	       dix/libxpstubs.a
mi/libmi.a Xext/libexts.a xkb/libxkb.a Xi/libxinput.a                  
lbx/liblbx.a                   ../../lib/lbxutil/liblbxutil.a  randr/librandr.a
render/librender.a 		  composite/libcomposite.a xfixes/libxfixes.a
damageext/libdamage.a miext/damage/libdamage.a miext/cw/libcw.a 
../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a     -lz -lm    		   
-lXau -lXdmcp  -rdynamic -ldl  -Wl,-rpath-link,../../exports/lib
xfixes/libxfixes.a(region.o)(.text+0x394): In function
`ProcXFixesCreateRegionFromWindow':
: undefined reference to `CreateClipShape'
xfixes/libxfixes.a(region.o)(.text+0x3ab): In function
`ProcXFixesCreateRegionFromWindow':
: undefined reference to `CreateBoundingShape'
xfixes/libxfixes.a(region.o)(.text+0x1628): In function
`ProcXFixesSetWindowShapeRegion':
: undefined reference to `SendShapeNotify'
collect2: ld returned 1 exit status
make[4]: *** [Xorg] Błąd 1
make[4]: Leaving directory
`/notslack/compiled/CVS-VERSION/X.org/xc-28o/programs/Xserver'
make[3]: *** [all] Błąd 2
make[3]: Leaving directory `/notslack/compiled/CVS-VERSION/X.org/xc-28o/programs'
make[2]: *** [all] Błąd 2
make[2]: Leaving directory `/notslack/compiled/CVS-VERSION/X.org/xc-28o'
make[1]: *** [World] Błąd 2
make[1]: Leaving directory `/notslack/compiled/CVS-VERSION/X.org/xc-28o'
make: *** [World] Błąd 2
Comment 1 Roland Mainz 2004-08-31 09:26:35 UTC
Is this a release blocker (e.g. blocker for bug 351) ?
Comment 2 Kevin E. Martin 2004-08-31 13:07:36 UTC
Okay, this is a very strange problem, but I think there might be a simple fix so
I've added it to the blocker list.

The problem is just that the references are not being resolved at link time.  
Part of the problem is the following:

#if !BuildXinerama
#define NoMfbPostFbLibs NoMfbBarePostFbLibs $(EXTENSIONS)
#else
#define NoMfbPostFbLibs $(EXTENSIONS) NoMfbBarePostFbLibs $(EXTENSIONS)
#endif

Does anyone know why the latter definition can't be used with/without Xinerama?  
Comment 3 rmrmg 2004-08-31 15:07:41 UTC
(In reply to comment #2)
> Okay, this is a very strange problem, but I think there might be a simple fix so
> I've added it to the blocker list.
> 
> The problem is just that the references are not being resolved at link time.  
> Part of the problem is the following:

It (building Xorg w/out xinerama) work fine w/ version 6.7.0.
Comment 4 Kevin E. Martin 2004-08-31 18:00:06 UTC
I figured this one out.  It is due to the link ordering of the new xfixes,
damage and composite code.  I have now checked in a fix.
Closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.