Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi ,hippo
I try out the Usbhost on my DE2 board. I following your steps, but when I enabled "mount" command then compile it. It have an error. error message display following: os2-linux-uclibc/sys-include/linux/nfs_mount.h:11, from nfs_mount3.h:15, from nfsmount.c:51: /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/sys-i nclude/linux/in.h:131: error: redefinition of `struct ip_mreq_source' /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/sys-i nclude/linux/in.h:137: error: redefinition of `struct ip_msfilter' /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/sys-i nclude/linux/in.h:150: error: redefinition of `struct group_req' /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/sys-i nclude/linux/in.h:156: error: redefinition of `struct group_source_req' /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/sys-i nclude/linux/in.h:163: error: redefinition of `struct group_filter' nfsmount.c: In function `nfsmount': nfsmount.c:237: error: `NFS_VERSION' undeclared (first use in this function) nfsmount.c:237: error: (Each undeclared identifier is reported only once nfsmount.c:237: error: for each function it appears in.) make[3]: *** [nfsmount.o] Error 1 make[3]: Leaving directory `/home/faye/uClinux-dist/user/mount' make[2]: *** [mount] Error 2 make[2]: Leaving directory `/home/faye/uClinux-dist/user' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/faye/uClinux-dist/user' make: *** [subdirs] Error 1 How can slove it ? Regards Faye