I made a standard uClinux-2.6.x kernel with nfs module.
In "/user/mount" compiler stopped with errors.
Probably there are some include problems. I 'm working on 200706021
(but I had the same error in 20070130), there are any patch to fix the
problem?
Thanks,
Max
**** Start OUTPUT
ucfront-gcc m68k-elf-gcc -m5200 -DCONFIG_COLDFIRE -Os -g
-fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall -DEMBED
-msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -DHAVE_NFS -c -o
nfsmount.o nfsmount.c
nfsmount.c:35:23: error: gnu/types.h: No such file or directory
In file included from nfsmount.c:46:
sundries.h:54: warning: type qualifiers ignored on function return type
In file included from
/home/development/uClinux-dist-20070621/include/include-linux/linux/nfs_mount.h:11,
from nfs_mount3.h:15,
from nfsmount.c:51:
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:26:
error: redeclaration of enumerator 'IPPROTO_IP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:33:
error: previous definition of 'IPPROTO_IP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:27:
error: redeclaration of enumerator 'IPPROTO_ICMP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:37:
error: previous definition of 'IPPROTO_ICMP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:28:
error: redeclaration of enumerator 'IPPROTO_IGMP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:39:
error: previous definition of 'IPPROTO_IGMP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:29:
error: redeclaration of enumerator 'IPPROTO_IPIP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:41:
error: previous definition of 'IPPROTO_IPIP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:30:
error: redeclaration of enumerator 'IPPROTO_TCP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:43:
error: previous definition of 'IPPROTO_TCP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:31:
error: redeclaration of enumerator 'IPPROTO_EGP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:45:
error: previous definition of 'IPPROTO_EGP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:32:
error: redeclaration of enumerator 'IPPROTO_PUP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:47:
error: previous definition of 'IPPROTO_PUP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:33:
error: redeclaration of enumerator 'IPPROTO_UDP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:49:
error: previous definition of 'IPPROTO_UDP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:34:
error: redeclaration of enumerator 'IPPROTO_IDP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:51:
error: previous definition of 'IPPROTO_IDP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:36:
error: redeclaration of enumerator 'IPPROTO_RSVP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:61:
error: previous definition of 'IPPROTO_RSVP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:37:
error: redeclaration of enumerator 'IPPROTO_GRE'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:63:
error: previous definition of 'IPPROTO_GRE' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:39:
error: redeclaration of enumerator 'IPPROTO_IPV6'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:55:
error: previous definition of 'IPPROTO_IPV6' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:41:
error: redeclaration of enumerator 'IPPROTO_ESP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:65:
error: previous definition of 'IPPROTO_ESP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:42:
error: redeclaration of enumerator 'IPPROTO_AH'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:67:
error: previous definition of 'IPPROTO_AH' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:44:
error: redeclaration of enumerator 'IPPROTO_PIM'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:79:
error: previous definition of 'IPPROTO_PIM' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:46:
error: redeclaration of enumerator 'IPPROTO_COMP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:81:
error: previous definition of 'IPPROTO_COMP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:47:
error: redeclaration of enumerator 'IPPROTO_SCTP'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:83:
error: previous definition of 'IPPROTO_SCTP' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:50:
error: redeclaration of enumerator 'IPPROTO_RAW'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:85:
error: previous definition of 'IPPROTO_RAW' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:52:
error: redeclaration of enumerator 'IPPROTO_MAX'
/home/development/uClinux-dist-20070621/uClibc/include/netinet/in.h:88:
error: previous definition of 'IPPROTO_MAX' was here
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:56:
error: redefinition of 'struct in_addr'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:115:
error: redefinition of 'struct ip_mreq'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:121:
error: redefinition of 'struct ip_mreqn'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:127:
error: redefinition of 'struct ip_mreq_source'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:133:
error: redefinition of 'struct ip_msfilter'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:146:
error: redefinition of 'struct group_req'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:152:
error: redefinition of 'struct group_source_req'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:159:
error: redefinition of 'struct group_filter'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:172:
error: redefinition of 'struct in_pktinfo'
/home/development/uClinux-dist-20070621/include/include-linux/linux/in.h:180:
error: redefinition of 'struct sockaddr_in'
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.)
nfsmount.c:445: warning: implicit declaration of function 'time'
nfsmount.c:118: warning: unused variable 'hp'
make[3]: *** [nfsmount.o] Error 1
make[3]: Leaving directory
`/home/development/uClinux-dist-20070621/user/mount'
make[2]: *** [mount] Error 2
make[2]: *** Waiting for unfinished jobs....
**** End OUTPUT
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev