Am Freitag, 4. Januar 2013 schrieb Evgeni Golov:
> Hi Martin,

Hi Evgeni,

> On Fri, Jan 04, 2013 at 12:25:12PM +0100, Martin Steigerwald wrote:
> 
> > /usr/bin/make modules KSRC=/usr/src/linux-headers-3.7-trunk-686-pae 
> > KVER=3.7-trunk-686-pae HDAPS=1
> > make[2]: Entering directory `/usr/src/modules/tp-smapi'
> > /usr/bin/make -C /usr/src/linux-headers-3.7-trunk-686-pae 
> > M=/usr/src/modules/tp-smapi O=/usr/src/linux-headers-3.7-trunk-686-pae 
> > modules
> > make[3]: Entering directory `/usr/src/linux-headers-3.7-trunk-686-pae'
> >   CC [M]  /usr/src/modules/tp-smapi/thinkpad_ec.o
> > In file included from 
> > /usr/src/linux-headers-3.7-trunk-common/include/uapi/linux/types.h:4:0,
> >                  from 
> > /usr/src/linux-headers-3.7-trunk-common/include/linux/types.h:5,
> >                  from 
> > /usr/src/linux-headers-3.7-trunk-common/include/linux/kernel.h:8,
> >                  from /usr/src/modules/tp-smapi/thinkpad_ec.c:32:
> > /usr/src/linux-headers-3.7-trunk-common/arch/x86/include/asm/types.h:4:31: 
> > fatal error: asm-generic/types.h: No such file or directory
> > compilation terminated.
> > make[6]: *** [/usr/src/modules/tp-smapi/thinkpad_ec.o] Error 1
> > make[5]: *** [_module_/usr/src/modules/tp-smapi] Error 2
> > make[4]: *** [sub-make] Error 2
> > make[3]: *** [all] Error 2
> > make[3]: Leaving directory `/usr/src/linux-headers-3.7-trunk-686-pae'
> > make[2]: *** [modules] Error 2
> > make[2]: Leaving directory `/usr/src/modules/tp-smapi'
> > make[1]: *** [binary-modules] Error 2
> > make[1]: Leaving directory `/usr/src/modules/tp-smapi'
> > make: *** [kdist_build] Error 2
> 
> This part is obviously http://bugs.debian.org/696664.
> As the package actually builds fine when the kernel headers are fixed, I 
> do not see a real bug in tp-smapi here, but would like you to check 
> first.
> 
> Can you get the linux source for 3.7.1 and copy include/uapi/asm-generic 
> to /usr/src/linux-headers-3.7-trunk-common/include/uapi/asm-generic. If 
> the compile works then, everything is fine. If not, I will have to 
> figure what m-a does different to dkms here (as it works with dkms with 
> the mentioned workaround).


shambhala:/var/tmp> tar -xf /usr/src/linux-source-3.7.tar.bz2 
shambhala:/var/tmp> rsync -a linux-source-3.7/include/uapi/asm-generic 
/usr/src/linux-headers-3.7-trunk-common/include/uapi


shambhala:/var/tmp> LANG=C m-a -t a-i tp-smapi
.
Updated infos about 1 packages
Getting source for kernel version: 3.7-trunk-686-pae
apt-get install linux-headers-3.7-trunk-686-pae 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-3.7-trunk-686-pae is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
apt-get install build-essential 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Done!


Bad luck, the kernel headers for the target kernel version could not be found 
and you did not specify other valid kernel headers to use.
      

However, you can install the header files for your kernel which are provided by 
the linux-headers-3.7-trunk-686-pae package. For most modules packages, 
these files are perfectly sufficient without having the original kernel source.

To install the package, run:

module-assistant prepare

or

apt-get install linux-headers-3.7-trunk-686-pae


Then I tried:

shambhala:/var/tmp> LANG=C m-a -t -k 
/usr/src/linux-headers-3.7-trunk-686-pae,/usr/src/linux-headers-3.7-trunk-common
 a-i tp-smapi 
Warning, /usr/src/linux-headers-3.7-trunk-common seems to contain unconfigured 
kernel source (see manpage for details)!
.
Updated infos about 1 packages
Bad kernel version specification at /usr/bin/m-a line 568, <$apt> line 8.



And finally

shambhala:/var/tmp> LANG=C m-a -t -l 3.7-trunk-686-pae -k 
/usr/src/linux-headers-3.7-trunk-686-pae,/usr/src/linux-headers-3.7-trunk-common
 a-i tp-smapi

works.


So the compilation mistake seems to be fixed by that.

But the does not recognize the kernel headers issue seems to persist.


> PS: am I mistaken or have I seen your name on irc somewhere?

I have been recently on freenode regarding Planeshift :), but I have a
different nickname in IRC (helios).

Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to