Hi, Does anybody have an idea why the following code fails in the 2.6.21.7Fedora 8 XEN kernel but not in 2.6.18.8-xen ? emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ cc -D__KERNEL__ ''-DKBUILD_BASENAME="#conftest.emre"'' ''-DKBUILD_MODNAME="#conftest.emre"'' -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -I/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen -I/lib/modules/2.6.21.7-3.fc8xen/build/include -I/lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-default -o conftest.emre conftest.emre.c In file included from /lib/modules/2.6.21.7-3.fc8xen/build/include/asm/system.h:10, from /lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/processor.h:18, from /lib/modules/2.6.21.7-3.fc8xen/build/include/asm/thread_info.h:16, from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/thread_info.h:21, from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/preempt.h:9, from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/spinlock.h:49, from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/capability.h:45, from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/sched.h:46, from /lib/modules/2.6.21.7-3.fc8xen/build/include/linux/utsname.h:35, from conftest.emre.c:3: /lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/hypervisor.h: In function ''HYPERVISOR_poll'': /lib/modules/2.6.21.7-3.fc8xen/build/include/asm/mach-xen/asm/hypervisor.h:198: error: request for member ''p'' in something not a structure or union emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ The code is: emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ cat conftest.emre.c #include <linux/autoconf.h> #include <linux/version.h> #include <linux/utsname.h> int main() { if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) { return 0; } else { return 1; } } emre@xenroot:/d/nvidia/nvidia-source-100.14.19-x86_64-xen$ Due to this, the whole nvidia driver compilation is failing even though it works on 2.6.18.8-xen dom0 kernel. Any ideas on what''s missing in the 2.6.21.7 sources? Thanks a lot, Emre Erenoglu
On Tue, Apr 15, 2008 at 05:34:05PM +0200, Emre ERENOGLU wrote:> Hi, > > Does anybody have an idea why the following code fails in the > 2.6.21.7Fedora 8 XEN kernel but not in 2.6.18.8-xen ?Because the kernel changes & nvidia is an out of tree module which doesn''t track the changes to the upstream kernels. Go speak to NVIDIA and tell them to support an open source driver for their graphics cards.> Due to this, the whole nvidia driver compilation is failing even though it > works on 2.6.18.8-xen dom0 kernel. > > Any ideas on what''s missing in the 2.6.21.7 sources?Nothing is missing. The NVidia module is broken. Dan. -- |: Red Hat, Engineering, Boston -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
Hi Daniel, Thanks for the quick comment. I understand, then why do you think it is compiling fine under 2.6.18.8-xen and also seemingly working fine since a lot of months on my Xen 3.2 system? (game, video playing, compiz, etc.) Emre On Tue, Apr 15, 2008 at 5:37 PM, Daniel P. Berrange <berrange@redhat.com> wrote:> On Tue, Apr 15, 2008 at 05:34:05PM +0200, Emre ERENOGLU wrote: > > Hi, > > > > Does anybody have an idea why the following code fails in the > > 2.6.21.7Fedora 8 XEN kernel but not in 2.6.18.8-xen ? > > Because the kernel changes & nvidia is an out of tree module which doesn''t > track the changes to the upstream kernels. Go speak to NVIDIA and tell > them > to support an open source driver for their graphics cards. > > > Due to this, the whole nvidia driver compilation is failing even though > it > > works on 2.6.18.8-xen dom0 kernel. > > > > Any ideas on what''s missing in the 2.6.21.7 sources? > > Nothing is missing. The NVidia module is broken. > > Dan. > -- > |: Red Hat, Engineering, Boston -o- http://people.redhat.com/berrange/:| > |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org:| > |: http://autobuild.org -o- http://search.cpan.org/~danberr/<http://search.cpan.org/%7Edanberr/>:| > |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 > :| >-- Emre Erenoglu erenoglu@gmail.com