Error in compiling linux-2.6.30.i586
Hello,
I am using Fedora 11 (2.6.30.10-105.2.23.fc11.i686.PAE). I got a patch for tpm_tis.c which a module to get my itpm working. And, for this I thought to customise the existing kernel and install new one. So, I followed the foolowing steps:
yumdownloader --source kernel
rpm -ihv kernel*.src.rpm
rpmbuild -bp ~/rpmbuild/SPECS/kernel.spec
cd ~/rpmbuild/BUILD/kernel*/linux*/
cp /boot/config-$(uname -r) .config
make oldconfig
In 'make menuconfig' , I have disabled Kernel debugging in the Kernel hacking section.
Then changed EXTRAVERSION to something like .test in Makefile
And, My Idea is to follow these steps:
make -j2
sudo make modules_install
sudo make install
But after make -j2
I got error in make as follows
LD drivers/video/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
------------------------
------------------------
------------------------
CHECK include/asm (52 files)
LD Documentation/accounting/built-in.o
HOSTCC Documentation/accounting/getdelays
LD Documentation/DocBook/built-in.o
CC [M] Documentation/DocBook/procfs_example.o
Documentation/accounting/getdelays.c: In function ‘get_family_id’:
Documentation/accounting/getdelays.c:186: warning: dereferencing pointer ‘na’ does break strict-aliasing rules
Documentation/accounting/getdelays.c:185: note: initialized from here
Documentation/accounting/getdelays.c: In function ‘main’:
Documentation/accounting/getdelays.c:249: warning: ‘cmd_type’ may be used uninitialized in this function
LD Documentation/auxdisplay/built-in.o
HOSTCC Documentation/auxdisplay/cfag12864b-example
LD Documentation/connector/built-in.o
CC [M] Documentation/connector/cn_test.o
LD Documentation/filesystems/configfs/built-in.o
CC [M] Documentation/filesystems/configfs/configfs_example_explicit.o
Documentation/connector/cn_test.c: In function ‘cn_test_want_notify’:
Documentation/connector/cn_test.c:54: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:54: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:80: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:81: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:82: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:83: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:83: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:85: error: invalid use of undefined type ‘struct cn_ctl_msg’
Documentation/connector/cn_test.c:90: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:91: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:96: error: increment of pointer to unknown structure
Documentation/connector/cn_test.c:96: error: arithmetic on pointer to an incomplete type
Documentation/connector/cn_test.c:97: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:98: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:103: error: increment of pointer to unknown structure
Documentation/connector/cn_test.c:103: error: arithmetic on pointer to an incomplete type
Documentation/connector/cn_test.c:104: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:105: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:107: error: dereferencing pointer to incomplete type
Documentation/connector/cn_test.c:111: error: dereferencing pointer to incomplete type
make[2]: *** [Documentation/connector/cn_test.o] Error 1
make[1]: *** [Documentation/connector] Error 2
make[1]: *** Waiting for unfinished jobs....
CC [M] Documentation/filesystems/configfs/configfs_example_macros.o
make: *** [vmlinux] Error 2
Can anyone please help in finding what is going wrong?? As, I am new fedora (or linux .. ), If my approach itself is wrong please suggest new way of customising the kernel.
Thanks and Regards
Vivek.
|