LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2009, 10:05 AM   #1
lan_ops
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Newbie compiling for the first time...


I am installing slackware 12.2.
When I compile the following, I get errors. Can someone help me understand what the errors mean? The errors occur in step 7 make modules
Quote:
root@devtower:/usr/src/linux# make modules
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CC [M] drivers/md/md.o
drivers/md/md.c: In function 'read_file':
drivers/md/md.c:193: error: 'struct task_struct' has no member named 'fsuid'
drivers/md/md.c:194: error: 'struct task_struct' has no member named 'fsgid'
drivers/md/md.c:195: error: 'struct task_struct' has no member named 'fsuid'
drivers/md/md.c:195: error: 'struct task_struct' has no member named 'fsgid'
drivers/md/md.c:227: error: 'struct task_struct' has no member named 'fsuid'
drivers/md/md.c:228: error: 'struct task_struct' has no member named 'fsgid'
drivers/md/md.c: In function 'write_file':
drivers/md/md.c:246: error: 'struct task_struct' has no member named 'fsuid'
drivers/md/md.c:247: error: 'struct task_struct' has no member named 'fsgid'
drivers/md/md.c:248: error: 'struct task_struct' has no member named 'fsuid'
drivers/md/md.c:248: error: 'struct task_struct' has no member named 'fsgid'
drivers/md/md.c:281: error: 'struct task_struct' has no member named 'fsuid'
drivers/md/md.c:282: error: 'struct task_struct' has no member named 'fsgid'
make[2]: *** [drivers/md/md.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2
root@devtower:/usr/src/linux# drivers/md/md.c:193: error: 'struct task_struct' has no member named 'fsuid'
My steps:

mkdir unraid
mv unRAID* unraid
cd unraid
unzip unRAID*
mkdir bz-mod
cd bz-mod
zcat ../bzroot | cpio -i -d -H newc --no-absolute-filenames
cd /usr/src/unraid/bz-mod/usr/src/linux
cp -rf * /usr/src/linux/
cp -rf .config /usr/src/linux/


6. Prepare the kernel config. Code:

cd /usr/src/linux
make clean
make menuconfig

In the last step of #5, we had copied the stock unRAID kernel config to /usr/src/linux.

7. Compile the kernel: Code:

make bzImage
cp arch/x86/boot/bzImage /boot/vmlinuz-2.6.29.1-unRAID
cp System.map /boot/System.map-2.6.29.1-unRAID
make modules This is where the errors start.
make modules_install
 
Old 04-22-2009, 05:01 PM   #2
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Rep: Reputation: 22
It says there is a bug in the file drivers/md/md.c I would look for a patch; check out the latest kernel sources or use the previous, fully patched, kernel from kernel.org. These things happen and, from what I can see, what you did is the correct way to compile the kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling kernel for first time... phantom_cyph Slackware 3 05-21-2008 12:49 PM
Compiling a Kernel for the first time? RodWC Debian 12 10-31-2005 07:55 AM
first time compiling, what am I doing wrong? über-noob Linux - Newbie 9 03-12-2004 10:37 AM
Compiling a kernal(first time) sergeantroach Linux - Software 6 02-11-2004 02:10 AM


All times are GMT -5. The time now is 10:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration