Bug 9722

Summary: 7.2-RC3 build fails in Xvfb using Mesa-6.5.2
Product: xorg Reporter: David Ronis <David.Ronis>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WORKSFORME QA Contact:
Severity: blocker    
Priority: high    
Version: 7.2 (2007.02)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description David Ronis 2007-01-20 18:20:53 UTC
I suspsect that this is a mesa version mismatch.  What version am I supposed to
use?  I built using the build-from-tar-files as:


./build-from-tarballs.sh -e -n -m /home/ronis/Mesa-6.5.2 /usr/X11R7.2 >
build.log.1 2>&1


make[3]: Entering directory `/home/ronis/everything/xorg-server-1.1.99.903/hw/vfb'
/bin/sh ../../libtool --tag=CC --mode=link /usr/bin/gcc -DHAVE_DIX_CONFIG_H
-DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -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/X11R7.2/include   -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 -O3 -march=pentium4 -ffast-math -funroll-loops -fomit-frame-pointer 
 -o Xvfb  InitInput.o InitOutput.o dpmsstubs.o stubs.o miinitext.o fbcmap.o
../../dix/libdix.la ../../fb/libfb.la ../../mi/libmi.la
../../xfixes/libxfixes.la ../../Xext/libXext.la ../../dbe/libdbe.la
../../XTrap/libxtrap.la ../../record/librecord.la ../../GL/glx/libglx.la
../../GL/mesa/libGLcore.la ../../render/librender.la ../../randr/librandr.la
../../damageext/libdamageext.la ../../miext/damage/libdamage.la
../../miext/cw/libcw.la ../../miext/shadow/libshadow.la ../../Xi/libXi.la
../../xkb/libxkb.la ../../xkb/libxkbstubs.la ../../composite/libcomposite.la
../../dix/libxpstubs.la ../../os/libcwrapper.la ../../os/libos.la
-L/usr/X11R7.2/lib -lXfont -lXau -lfontenc -lXdmcp    -lm -lrt   -lrt
/usr/bin/gcc -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS -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/X11R7.2/include -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 -O3 -march=pentium4 -ffast-math -funroll-loops
-fomit-frame-pointer -o Xvfb InitInput.o InitOutput.o dpmsstubs.o stubs.o
miinitext.o fbcmap.o  ../../dix/.libs/libdix.a ../../fb/.libs/libfb.a
../../mi/.libs/libmi.a ../../xfixes/.libs/libxfixes.a ../../Xext/.libs/libXext.a
../../dbe/.libs/libdbe.a ../../XTrap/.libs/libxtrap.a
../../record/.libs/librecord.a ../../GL/glx/.libs/libglx.a
../../GL/mesa/.libs/libGLcore.a ../../render/.libs/librender.a
../../randr/.libs/librandr.a ../../damageext/.libs/libdamageext.a
../../miext/damage/.libs/libdamage.a ../../miext/cw/.libs/libcw.a
../../miext/shadow/.libs/libshadow.a ../../Xi/.libs/libXi.a
../../xkb/.libs/libxkb.a ../../xkb/.libs/libxkbstubs.a
../../composite/.libs/libcomposite.a ../../dix/.libs/libxpstubs.a
../../os/.libs/libcwrapper.a ../../os/.libs/libos.a -L/usr/X11R7.2/lib
/usr/X11R7.2/lib/libXfont.so /usr/lib/libfreetype.so /usr/X11R7.2/lib/libXau.so
/usr/X11R7.2/lib/libfontenc.so -lz /usr/X11R7.2/lib/libXdmcp.so -lm -lrt  
-Wl,--rpath -Wl,/usr/X11R7.2/lib -Wl,--rpath -Wl,/usr/X11R7.2/lib
../../GL/mesa/.libs/libGLcore.a(fbobject.o)(.text+0xbb2): In function
`_mesa_GenerateMipmapEXT':
: undefined reference to `_mesa_generate_mipmap'
../../GL/mesa/.libs/libGLcore.a(texcompress_fxt1.o)(.text+0x39e3): In function
`fxt1_encode':
: undefined reference to `_mesa_upscale_teximage2d'
../../GL/mesa/.libs/libGLcore.a(texstore.o)(.text+0x1238): In function
`_mesa_store_compressed_texsubimage2d':
: undefined reference to `_mesa_generate_mipmap'
../../GL/mesa/.libs/libGLcore.a(texstore.o)(.text+0x1390): In function
`_mesa_store_compressed_teximage2d':
: undefined reference to `_mesa_generate_mipmap'
../../GL/mesa/.libs/libGLcore.a(texstore.o)(.text+0x166e): In function
`_mesa_store_texsubimage3d':
: undefined reference to `_mesa_generate_mipmap'
../../GL/mesa/.libs/libGLcore.a(texstore.o)(.text+0x1832): In function
`_mesa_store_texsubimage2d':
: undefined reference to `_mesa_generate_mipmap'
../../GL/mesa/.libs/libGLcore.a(texstore.o)(.text+0x19bf): In function
`_mesa_store_texsubimage1d':
: undefined reference to `_mesa_generate_mipmap'
../../GL/mesa/.libs/libGLcore.a(texstore.o)(.text+0xac73): more undefined
references to `_mesa_generate_mipmap' follow
collect2: ld returned 1 exit status
make[3]: *** [Xvfb] Error 1
make[3]: Leaving directory `/home/ronis/everything/xorg-server-1.1.99.903/hw/vfb'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/ronis/everything/xorg-server-1.1.99.903/hw/vfb'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/ronis/everything/xorg-server-1.1.99.903/hw'
Comment 1 David Ronis 2007-01-21 12:28:29 UTC
OK I've solved the problem.  You need mesa-6.5.1.

I don't want to sound ungrateful for all the help and for the simple fact that
X.org is opensource; however, it is important to try and keep requirement
versions for companion software accurate and up to date.  I spent over a week
messing with 7.1 until I found out that it only works with mesa-6.5, and several
days on 7.2.

(BTW, my build is ongoing, so I still don't know if 7.2-RC3 works).



Comment 2 Dan Nicholson 2007-02-07 07:35:35 UTC
(In reply to comment #0)
> ../../GL/mesa/.libs/libGLcore.a(fbobject.o)(.text+0xbb2): In function
> `_mesa_GenerateMipmapEXT':
> : undefined reference to `_mesa_generate_mipmap'

This should be fixed in xorg-server-1.2.0 with this commit to add mipmap.c:

http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commit;h=198560a081eaedfb9872c0926a94c0298b9dcab8

xorg-server-1.2.0 should work with Mesa-6.5.2, I think.
Comment 3 Dave Airlie 2007-02-25 15:16:21 UTC
just versioning mismatch.. yes the wiki should document this better..

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.