[uClinux-dev]error in make uClinux-Samsung
SIE
kensou.sie.503 at gmail.com
Thu Oct 11 10:23:30 EDT 2007
Hi,
I'am compling the uClinux in my PC,OS:ubuntu 7.04,kernel 2.6;
when I make it ,it gives such errors:
/home/sie/SRC/uClinux-samsung/linux-2.4.x/include/asm/atomic.h:80:
multiple definition of `romfs_file_operations'
romfs.o:/home/sie/SRC/uClinux-samsung/linux-2.4.x/fs/romfs/inode.c:106:???????
make[1]: *** [linux] 错误 1
I have search this on the internet,however I have only got things like
this:
http://chinajz.spaces.live.com/blog/cns!EAD556F11EFE5C17!176.entry
here's the part of the answer to this question:
**********************************************************************************
vi ~/uClinux-dist/linux-2.4.x/fs/romfs/inode.c
/* Mapping from our types to the kernel */
static struct address_space_operations romfs_aops = {
readpage: romfs_readpage
};
static struct file_operations romfs_dir_operations = {
read: generic_read_dir,
readdir: romfs_readdir,
};
static struct file_operations romfs_file_operations = {
read: generic_file_read,
mmap: generic_file_mmap,
#ifdef MAGIC_ROM_PTR
romptr: romfs_romptr,
#endif
**************************************************************************
But , when I check the file ,I found that these codes are the same as
the answer it gave out.I don't know how to do with this error.
Can anyone give some advice?
Thanks.
More information about the uClinux-dev
mailing list