Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] emergeing xf86-video-i810-2.0.0 fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
siik
n00b
n00b


Joined: 28 Jun 2007
Posts: 11

PostPosted: Sun Jul 01, 2007 12:00 pm    Post subject: [solved] emergeing xf86-video-i810-2.0.0 fails Reply with quote

Hi there,

I tried to emerge xf86-video-i810-2.0.0 because it's said to support the X3100 integrated graphic, according to intellinuxgraphics.

Here's the tail of the build.log:

Quote:
i830_dri.c:93: error: redefinition of 'struct drm_i915_flip'
i830_dri.c:95: error: redefinition of typedef 'drm_i915_flip_t'
/usr/include/drm/i915_drm.h:186: error: previous declaration of 'drm_i915_flip_t' was here
make[3]: *** [i830_dri.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/i810_dri.Tpo .deps/i810_dri.Plo
mv -f .deps/i965_render.Tpo .deps/i965_render.Plo
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] Error 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] Error 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] Error 2

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


I don't know what to do with this... any ideas?

Thanks,
siik


Last edited by siik on Mon Jul 02, 2007 1:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54838
Location: 56N 3W

PostPosted: Sun Jul 01, 2007 12:55 pm    Post subject: Reply with quote

siik,

Welcome to gentoo.

We need sight of the very first error from the build.log. I'm not sure your tail shows it.
I can build it here on a ~x86 system, so it does work.

If you want a wild guess, I suspect the symbol drm_i915_flip is defined in the kernel and in the xf86-video-i810 module.
Which suggests (from the name) that xf86-video-i810 provides its one drm code.
Try again after you have rebuilt your kernel with onlt the top level DRM option selected - turn off all the lower level Intel chipset support. If you don't use kernel DRM, rip out x11-base/x11-drm.
Like I say, its a wild guess based on your post. If the first error is something completely different, ignore the above.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
siik
n00b
n00b


Joined: 28 Jun 2007
Posts: 11

PostPosted: Sun Jul 01, 2007 2:25 pm    Post subject: Reply with quote

Hi,

actually

Quote:
i830_dri.c:93: error: redefinition of 'struct drm_i915_flip'


is the first line where an error occurs. I recompiled the kernel without the i915 driver but got exactly the same error. Hum..
Back to top
View user's profile Send private message
siik
n00b
n00b


Joined: 28 Jun 2007
Posts: 11

PostPosted: Sun Jul 01, 2007 2:55 pm    Post subject: Reply with quote

Well,

I found another way getting DRI to work:

1. get a newer kernel (for me, vanilla-sources-2.6.22-rc6 worked)
2. configure as follows:
Quote:
CONFIG_DRM=y
CONFIG_DRM_I915=m

3. get xorg-2D-drivers from http://www.intellinuxgraphics.org/download.html and install them (you don't need the other stuff)
4. change xorg.conf according to http://www.intellinuxgraphics.org/install.html

Enjoy :-)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54838
Location: 56N 3W

PostPosted: Sun Jul 01, 2007 2:55 pm    Post subject: Reply with quote

siik,

grepping the kernel tree shows that your symbol is indeed defined there.
Code:
 /usr/src/linux $ grep -R -i drm_i915_flip ./*
./drivers/char/drm/i915_dma.c:  [DRM_IOCTL_NR(DRM_I915_FLIP)] = {i915_flip_bufs, DRM_AUTH},
./drivers/char/drm/i915_drm.h:#define DRM_I915_FLIP             0x02
./drivers/char/drm/i915_drm.h:#define DRM_IOCTL_I915_FLIP               DRM_IO ( DRM_COMMAND_BASE + DRM_I915_FLIP)


Are you actually running your new kernel ?
What time/date does
Code:
uname -a
give, thats the build date/time of the running kernel?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
siik
n00b
n00b


Joined: 28 Jun 2007
Posts: 11

PostPosted: Sun Jul 01, 2007 5:54 pm    Post subject: Reply with quote

You're right, it is a redefinition, but recompiling the kernel without the intel drm drivers didn't solve it because i915_drm.h still was in /usr/include/drm ... I don't where it came from, perhaps I should try deleting/moving it so I can use the ebuild.

uname -a says
Code:
Linux D630 2.6.22-rc6 #6 SMP Sun Jul 1 21:18:33 CEST 2007 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum