LinuxQuestions.org
Visit Jeremy's Blog.
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


Reply
  Search this Thread
Old 05-01-2004, 10:29 PM   #1
leohuang
LQ Newbie
 
Registered: Sep 2003
Posts: 11

Rep: Reputation: 0
Compile A Single Module


Hi guys,

My Linux is running on an embedded system, and I need a smbfs.o module. How can I compile the module individually?

Thanks in advance,
Leo
 
Old 05-02-2004, 01:08 AM   #2
gsikora
LQ Newbie
 
Registered: Dec 2002
Location: Euless,TX
Distribution: Mandrake
Posts: 29

Rep: Reputation: 15
Have you been here for info?
http://de.samba.org/samba/docs/man/howto/install.html
 
Old 05-02-2004, 04:08 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
That sounds like a kernel module. What kernel are you using? You might want to reconfigure and recompile it to include Samba support, if possible (I don't know what's possible with embedded systems). I'd suggest looking in the 'filesystems' section.

You might also do a search in the Linux - Laptop and Handheld forum, and also check out http://www.tuxmobil.org/ (I'm assuming that your embedded system is perhaps a handheld device like a PDA or mobile phone, which the site is dedicated to, along with laptops and so forth).

Hope this helps.
 
Old 05-02-2004, 05:22 AM   #4
leohuang
LQ Newbie
 
Registered: Sep 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks guys,

I'm cross compiling 2.4.20 for my router, which has a MIPS cpu. I got a very strange error:

make[3]: Entering directory `/home/leo/local/src/src/linux/linux/fs/smbfs'
mipsel-linux-gcc -D__KERNEL__ -I/home/leo/local/src/src/linux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common -fomit-frame-pointer -I /home/leo/local/src/src/linux/linux/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -mcpu=r4600 -mips2 -Wa,--trap -m4710a0kern -I/home/leo/local/src/src/linux/linux/../../include -DSMBFS_PARANOIA -nostdinc -iwithprefix include -DKBUILD_BASENAME=proc -c -o proc.o proc.c
proc.c: In function `smb_proc_setattr_trans2':
proc.c:2446: Internal compiler error in eliminate_regs, at reload1.c:2600
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Any idea?
 
Old 05-02-2004, 06:20 AM   #5
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
What version of gcc are you using? A Google search comes up with nothing useful except to indicate that it is indeed a compiler error, and the contents of proc.c, which you could look at yourself if you wanted, but wouldn't be much help if you didn't know how to fix it (which I definitely don't).

So I'd suggest up- or down-grading gcc, but that might be using an elephant gun to shoot a mosquito for all I know.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you rebuild a single kernel module? rollo Linux - General 3 01-29-2006 01:19 AM
compile 2.6.10 with sata, sg as a module disleyg Debian 2 02-14-2005 07:18 PM
how to compile a single module? linjia Debian 1 12-26-2004 05:30 AM
Installing a single module sushant18 Linux - Software 1 04-03-2004 01:36 PM
compile a single kernel module wr3ck3d Linux - General 10 03-01-2003 12:00 PM

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

All times are GMT -5. The time now is 11:40 AM.

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