LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 05-27-2010, 04:40 PM   #1
viveksama
LQ Newbie
 
Registered: May 2010
Posts: 9

Rep: Reputation: 0
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.
 
Old 05-28-2010, 01:52 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here: http://www.linuxquestions.org/questi...1/#post3983501
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to install j2sdk-1_4_2_04-linux-i586.bin: Error: tail: cannot open `+466' johnsanty Linux - Software 2 03-17-2010 06:38 AM
Cross Compiling from i686 to i586 -- Necessary? dwhitney67 Programming 5 09-08-2007 02:44 AM
Compilation error when including <linux/ext3_fs.h> in SuSE Linux 9.0 (i586) seshasai Linux - Distributions 0 06-01-2004 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration