Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 182024

Summary: cannot compile latest i810 driver 2.0.0
Product: Gentoo Linux Reporter: Alexey <zubator>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexey 2007-06-14 13:19:55 UTC
(sorry for my english)
I compiled my xorg with flags (minimal -dri), so all drivers i compiled with (-dri). When I try compile driver I can see

/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -Wall -Wpointer-arith -Wstrict-prototypes        -Wmissing-prototypes -Wmissing-declarations     -Wnested-externs -fno-strict-aliasing -I/usr/include/xorg -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -O2 -march=i686 -pipe -MT i830_memory.lo -MD -MP -MF .deps/i830_memory.Tpo -c -o i830_memory.lo i830_memory.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -I/usr/include/xorg -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -O2 -march=i686 -pipe -MT i830_memory.lo -MD -MP -MF .deps/i830_memory.Tpo -c i830_memory.c  -fPIC -DPIC -o .libs/i830_memory.o
i830_memory.c: In function 'i830_reset_allocations':
i830_memory.c:234: error: 'struct _I830Rec' has no member named 'back_buffer'
i830_memory.c:235: error: 'struct _I830Rec' has no member named 'third_buffer'
i830_memory.c:236: error: 'struct _I830Rec' has no member named 'depth_buffer'
i830_memory.c:237: error: 'struct _I830Rec' has no member named 'textures'
i830_memory.c:238: error: 'struct _I830Rec' has no member named 'memory_manager'
i830_memory.c: In function 'i830_free_3d_memory':
i830_memory.c:251: error: 'struct _I830Rec' has no member named 'back_buffer'
i830_memory.c:252: error: 'struct _I830Rec' has no member named 'back_buffer'
i830_memory.c:253: error: 'struct _I830Rec' has no member named 'third_buffer'
i830_memory.c:254: error: 'struct _I830Rec' has no member named 'third_buffer'
i830_memory.c:255: error: 'struct _I830Rec' has no member named 'depth_buffer'
i830_memory.c:256: error: 'struct _I830Rec' has no member named 'depth_buffer'
i830_memory.c:257: error: 'struct _I830Rec' has no member named 'textures'
i830_memory.c:258: error: 'struct _I830Rec' has no member named 'textures'
i830_memory.c:259: error: 'struct _I830Rec' has no member named 'memory_manager'
i830_memory.c:260: error: 'struct _I830Rec' has no member named 'memory_manager'
i830_memory.c: In function 'i830_describe_allocations':
i830_memory.c:603: error: 'struct _I830Rec' has no member named 'front_tiled'
i830_memory.c:605: error: 'struct _I830Rec' has no member named 'back_buffer'
i830_memory.c:606: error: 'struct _I830Rec' has no member named 'back_buffer'
i830_memory.c:607: error: 'struct _I830Rec' has no member named 'back_tiled'
i830_memory.c:609: error: 'struct _I830Rec' has no member named 'third_buffer'
i830_memory.c:610: error: 'struct _I830Rec' has no member named 'third_buffer'
i830_memory.c:611: error: 'struct _I830Rec' has no member named 'third_tiled'
i830_memory.c:613: error: 'struct _I830Rec' has no member named 'depth_buffer'
i830_memory.c:614: error: 'struct _I830Rec' has no member named 'depth_buffer'
i830_memory.c:615: error: 'struct _I830Rec' has no member named 'depth_tiled'
i830_memory.c: In function 'i830_allocate_framebuffer':
i830_memory.c:811: error: 'struct _I830Rec' has no member named 'front_tiled'
i830_memory.c:817: error: 'struct _I830Rec' has no member named 'front_tiled'
make[3]: *** [i830_memory.lo] Ошибка 1
make[3]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-i810-2.0.0/work/xf86-video-intel-2.0.0/src'
make[2]: *** [all-recursive] Ошибка 1
make[2]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-i810-2.0.0/work/xf86-video-intel-2.0.0/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-i810-2.0.0/work/xf86-video-intel-2.0.0'
make: *** [all] Ошибка 2

!!! ERROR: x11-drivers/xf86-video-i810-2.0.0 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1311:   Called x-modular_src_compile
  x-modular.eclass, line 342:   Called x-modular_src_make
  x-modular.eclass, line 337:   Called die

Is I can see source of this driver in git, there is missing smthg like 
#ifdef XF86DRI in src/i830_memory.c and so on

/git source/
#ifdef XF86DRI

 235     pI830->back_buffer = NULL;

 236     pI830->third_buffer = NULL;

 237     pI830->depth_buffer = NULL;

 238     pI830->textures = NULL;

 239     pI830->memory_manager = NULL;

 240 #endif

Reproducible: Always
Comment 1 Marijn Schouten (RETIRED) gentoo-dev 2007-06-14 13:28:16 UTC

*** This bug has been marked as a duplicate of bug 182026 ***