Help with a build error on a linux system

Patrick Mahan mahan at mahan.org
Thu Sep 21 18:51:44 PDT 2006


After searching the faq and the mailing list archives, I have found no
information for my question.

Release: X11R6.7.0

Building from source.

Build system: Ubuntu Linux (2.6.15-27-386 #1 PREEMPT)

gcc -v gives the following:

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib --with
out-included-gettext --enable-threads=posix --enable-nls 
--program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-java-awt=gtk-default 
--enable-gtk-cairo 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre 
--enable-mpfr --disable-werror --with-tune=pentium4 --enable-checking=relea
se i486-linux-gnu
Thread model: posix
gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)

I ran './configure' and the 'make World'.  The 'make World' is failing 
with the following error:


rm -f tdfx_span.o
gcc -m32 -c -O2 -fno-strength-reduce  -ansi -pedantic -Wall 
-Wpointer-arith -Wundef  -I../../../../../../exports/include/X11 
-I../../../../../../include/extensions 
-I../../../../../../extras/Mesa/src 
-I../../../../../../lib/GL/mesa/src/drv/common 
-I../../../../../../lib/GL/mesa/src/drv/tdfx 
-I../../../../../../lib/GL/dri           -I../../../../../../lib/GL/glx 
          -I../../../../../../exports/include 
-I../../../../../../exports/include/GL 
-I../../../../../../programs/Xserver/GL/dri 
-I../../../../../../programs/Xserver/hw/xfree86/os-support 
-I../../../../../../programs/Xserver/hw/xfree86/drivers/tdfx 
-I../../../../../../programs/Xserver/hw/xfree86/common 
-I../../../../../../lib/GL/dri/drm 
-I../../../../../../lib/GL/include  -I../../../../../.. 
-I../../../../../../exports/include   -Dlinux -D__i386__ 
-D_POSIX_C_SOURCE=199309L                            -D_POSIX_SOURCE 
-D_XOPEN_SOURCE                               -D_BSD_SOURCE 
-D_SVID_SOURCE                             -D_GNU_SOURCE 
             -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS  -D_REENTRANT 
-DXUSE_MTSAFE_API    -DMALLOC_0_RETURNS_NULL -DGLXEXT -DXF86DRI 
-DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA 
-DX_BYTE_ORDER=X_LITTLE_ENDIAN -DUSE_X86_ASM -DUSE_MMX_ASM 
-DUSE_3DNOW_ASM -DUSE_SSE_ASM  -DXVENDORNAME='"The X.Org Foundation"' 
-DXVENDORNAMESHORT='"X.Org"'  tdfx_span.c
tdfx_span.c: In function ‘tdfxDDWriteDepthPixels’:
tdfx_span.c:976: error: invalid lvalue in assignment
tdfx_span.c:1008: error: invalid lvalue in assignment
tdfx_span.c: In function ‘write_stencil_pixels’:
tdfx_span.c:1242: error: invalid lvalue in assignment
make[6]: *** [tdfx_span.o] Error 1



Now it is entirely possible that I have a mis-configuration problem,
if so I can post the configuration.  I suspect I am missing some flag
to gcc.

Thanks for any pointers,

Patrick



More information about the xorg mailing list