I have been successful in building an nvidia.ko that works with my xen kernel
(2.6.24-16-xen on hardy). I've achieved that through awful hacks, basically I
applied (partly by hand) the patch found at
http://www.nvnews.net/vbulletin/showthread.php?t=78632, and I basically bypass
the conftest.sh script (I changed it to force the use of Makefile.kbuild and
generated the conftest.h with the headers of the -generic kernel).
Now, I'm trying to understand *why* the conftest.sh script fails so miserably,
both for the makefile test and for a few of the compilation tests. It turns out
that when it tries to compile a simple test file (attached) that tries to get
the kernel version, it fails with the following output:
In file included from /usr/src/linux-headers-2.6.24-16-xen/include/asm/smp.h:4,
from
/usr/src/linux-headers-2.6.24-16-xen/include/linux/smp.h:19,
from
/usr/src/linux-headers-2.6.24-16-xen/include/linux/sched.h:68,
from
/usr/src/linux-headers-2.6.24-16-xen/include/linux/utsname.h:35,
from conftest15808.c:3:
/usr/src/linux-headers-2.6.24-16-xen/include/asm/smp_64.h: In function
‘hard_smp_processor_id’:
/usr/src/linux-headers-2.6.24-16-xen/include/asm/smp_64.h:84: error:
‘APIC_BASE’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.24-16-xen/include/asm/smp_64.h:84: error: (Each
undeclared identifier is reported only once
/usr/src/linux-headers-2.6.24-16-xen/include/asm/smp_64.h:84: error: for each
function it appears in.)
/usr/src/linux-headers-2.6.24-16-xen/include/asm/smp_64.h:84: error: ‘APIC_ID’
undeclared (first use in this function)
In file included from /usr/src/linux-headers-2.6.24-16-xen/include/asm/smp.h:4,
from
/usr/src/linux-headers-2.6.24-16-xen/include/linux/smp.h:19,
from
/usr/src/linux-headers-2.6.24-16-xen/include/linux/sched.h:68,
from
/usr/src/linux-headers-2.6.24-16-xen/include/linux/utsname.h:35,
from conftest15808.c:3:
/usr/src/linux-headers-2.6.24-16-xen/include/asm/smp_64.h: In function
‘logical_smp_processor_id’:
/usr/src/linux-headers-2.6.24-16-xen/include/asm/smp_64.h:120: error:
‘APIC_BASE’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.24-16-xen/include/asm/smp_64.h:120: error:
‘APIC_LDR’ undeclared (first use in this function)
Which makes me think that, either something is broken in the -xen
headers, or the test program should add another #include (why then is it
working with the -generic headers?) or there is some macro that should
be defined with -D and isn't; but, well, I'm a bit lost here. Hope this
helps.
** Attachment added: "Test program that nvidia's configuration script tries to
compile."
http://launchpadlibrarian.net/14557463/conftest.c
--
Can't Compile Driver with Xen 2.6.22-11-xen kernel
https://bugs.launchpad.net/bugs/139864
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs