Bug#697061: nvidia-kernel-dkms: Module fails to build against linux-headers-3.7-trunk-amd64 (VM_RESERVED undeclared)

Andre Beck beck at ibh.de
Tue Jan 22 18:19:24 UTC 2013


Hi,

for reasons I don't grok entirely, 304.64-4 doesn't fix the build issue
for me, though I'm building against linux-3.7.y stable (which in turn
is built using kernel-package). The dkms make.log still complains about
the missing symbol VM_RESERVED. It does build, however, as soon as I
remove the outer level of ifdefing which tries to match for kernel
versions >= 3.7.0, so that seems to somehow not trigger correctly.

I'm currently just using

# if !defined(VM_RESERVED)
#  define VM_RESERVED (VM_DONTEXPAND | VM_DONTDUMP)
# endif

(so I also rewrote the ifndef and removed the C++ style comment almost
intuitively before even thinking about reporting) and that builds without
issues on 3.7.3 as well as 3.7.4. The LINUX_VERSION_CODE stuff doesn't
look wrong though, so I'm not of much help identifying the issue here.
If you have any idea of how to gcc -E that specific part of the build
for further insight, please detail.

TIA,
Andre.
-- 
                    Cool .signatures are so 90s...

-> Andre Beck    +++ ABP-RIPE +++      IBH IT-Service GmbH, Dresden <-



More information about the pkg-nvidia-devel mailing list