LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Compile A Single Module (https://www.linuxquestions.org/questions/linux-general-1/compile-a-single-module-176847/)

leohuang 05-01-2004 10:29 PM

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

gsikora 05-02-2004 01:08 AM

Have you been here for info?
http://de.samba.org/samba/docs/man/howto/install.html

motub 05-02-2004 04:08 AM

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.

leohuang 05-02-2004 05:22 AM

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?

motub 05-02-2004 06:20 AM

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.


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