| Summary: | Build error: make: *** [libc/inet/if_index.os] Error 1 | ||
|---|---|---|---|
| Product: | uClibc | Reporter: | Michal <wicked> |
| Component: | Other | Assignee: | unassigned |
| Status: | VERIFIED INVALID | ||
| Severity: | normal | CC: | uclibc-cvs, wicked |
| Priority: | P5 | ||
| Version: | 0.9.34 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
Cannot reproduce this on current master. I reproduce this error with kernel older than 2.6.32 This fixed before "make headers_install" by change in kernel/include/linux/socket.h #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) to #if defined(__KERNEL__) |
Hello, I'm having this build error: Version: uClibc-20130528 Platform: Linux 2.6.31.8 #2 armv5tel GNU/Linux Linux version 2.6.31.8 (root@Neo) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) Error does not appear on version 0.9.33 or 0.9.33.2 Error details: CC libc/inet/ntohl.os CC libc/inet/getservice.os CC libc/inet/getproto.os CC libc/inet/getnet.os CC libc/inet/hostid.os CC libc/inet/inet_net.os CC libc/inet/herror.os CC libc/inet/if_index.os In file included from /ffp/include/linux/socket.h:23:0, from /ffp/include/linux/netlink.h:4, from /ffp/include/linux/rtnetlink.h:4, from libc/inet/netlinkaccess.h:26, from libc/inet/if_index.c:33: /ffp/include/linux/uio.h:19:8: error: redefinition of 'struct iovec' ./include/bits/uio.h:44:8: note: originally defined here In file included from /ffp/include/linux/netlink.h:4:0, from /ffp/include/linux/rtnetlink.h:4, from libc/inet/netlinkaccess.h:26, from libc/inet/if_index.c:33: /ffp/include/linux/socket.h:38:8: error: redefinition of 'struct sockaddr' ./include/bits/socket.h:149:8: note: originally defined here /ffp/include/linux/socket.h:43:8: error: redefinition of 'struct linger' ./include/bits/socket.h:339:8: note: originally defined here /ffp/include/linux/socket.h:56:8: error: redefinition of 'struct msghdr' ./include/bits/socket.h:230:8: note: originally defined here /ffp/include/linux/socket.h:72:8: error: redefinition of 'struct cmsghdr' ./include/bits/socket.h:253:8: note: originally defined here /ffp/include/linux/socket.h:84:0: warning: "CMSG_NXTHDR" redefined [enabled by default] ./include/bits/socket.h:270:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:86:0: warning: "CMSG_ALIGN" redefined [enabled by default] ./include/bits/socket.h:274:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:88:0: warning: "CMSG_DATA" redefined [enabled by default] ./include/bits/socket.h:266:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:89:0: warning: "CMSG_SPACE" redefined [enabled by default] ./include/bits/socket.h:276:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:90:0: warning: "CMSG_LEN" redefined [enabled by default] ./include/bits/socket.h:278:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:95:0: warning: "CMSG_FIRSTHDR" redefined [enabled by default] ./include/bits/socket.h:271:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:127:28: error: conflicting types for '__cmsg_nxthdr' ./include/bits/socket.h:282:1: note: previous declaration of '__cmsg_nxthdr' was here /ffp/include/linux/socket.h:146:0: warning: "SCM_RIGHTS" redefined [enabled by default] ./include/bits/socket.h:311:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:147:0: warning: "SCM_CREDENTIALS" redefined [enabled by default] ./include/bits/socket.h:314:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:150:8: error: redefinition of 'struct ucred' ./include/bits/socket.h:320:8: note: originally defined here /ffp/include/linux/socket.h:157:0: warning: "AF_UNSPEC" redefined [enabled by default] ./include/bits/socket.h:87:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:158:0: warning: "AF_UNIX" redefined [enabled by default] ./include/bits/socket.h:89:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:159:0: warning: "AF_LOCAL" redefined [enabled by default] ./include/bits/socket.h:88:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:160:0: warning: "AF_INET" redefined [enabled by default] ./include/bits/socket.h:91:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:161:0: warning: "AF_AX25" redefined [enabled by default] ./include/bits/socket.h:92:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:162:0: warning: "AF_IPX" redefined [enabled by default] ./include/bits/socket.h:93:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:163:0: warning: "AF_APPLETALK" redefined [enabled by default] ./include/bits/socket.h:94:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:164:0: warning: "AF_NETROM" redefined [enabled by default] ./include/bits/socket.h:95:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:165:0: warning: "AF_BRIDGE" redefined [enabled by default] ./include/bits/socket.h:96:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:166:0: warning: "AF_ATMPVC" redefined [enabled by default] ./include/bits/socket.h:97:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:167:0: warning: "AF_X25" redefined [enabled by default] ./include/bits/socket.h:98:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:168:0: warning: "AF_INET6" redefined [enabled by default] ./include/bits/socket.h:99:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:169:0: warning: "AF_ROSE" redefined [enabled by default] ./include/bits/socket.h:100:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:170:0: warning: "AF_DECnet" redefined [enabled by default] ./include/bits/socket.h:101:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:171:0: warning: "AF_NETBEUI" redefined [enabled by default] ./include/bits/socket.h:102:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:172:0: warning: "AF_SECURITY" redefined [enabled by default] ./include/bits/socket.h:103:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:173:0: warning: "AF_KEY" redefined [enabled by default] ./include/bits/socket.h:104:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:174:0: warning: "AF_NETLINK" redefined [enabled by default] ./include/bits/socket.h:105:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:175:0: warning: "AF_ROUTE" redefined [enabled by default] ./include/bits/socket.h:106:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:176:0: warning: "AF_PACKET" redefined [enabled by default] ./include/bits/socket.h:107:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:177:0: warning: "AF_ASH" redefined [enabled by default] ./include/bits/socket.h:108:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:178:0: warning: "AF_ECONET" redefined [enabled by default] ./include/bits/socket.h:109:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:179:0: warning: "AF_ATMSVC" redefined [enabled by default] ./include/bits/socket.h:110:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:180:0: warning: "AF_SNA" redefined [enabled by default] ./include/bits/socket.h:112:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:181:0: warning: "AF_IRDA" redefined [enabled by default] ./include/bits/socket.h:113:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:182:0: warning: "AF_PPPOX" redefined [enabled by default] ./include/bits/socket.h:114:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:183:0: warning: "AF_WANPIPE" redefined [enabled by default] ./include/bits/socket.h:115:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:184:0: warning: "AF_LLC" redefined [enabled by default] ./include/bits/socket.h:116:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:185:0: warning: "AF_TIPC" redefined [enabled by default] ./include/bits/socket.h:118:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:186:0: warning: "AF_BLUETOOTH" redefined [enabled by default] ./include/bits/socket.h:119:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:187:0: warning: "AF_IUCV" redefined [enabled by default] ./include/bits/socket.h:120:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:188:0: warning: "AF_RXRPC" redefined [enabled by default] ./include/bits/socket.h:121:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:189:0: warning: "AF_MAX" redefined [enabled by default] ./include/bits/socket.h:128:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:192:0: warning: "PF_UNSPEC" redefined [enabled by default] ./include/bits/socket.h:43:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:193:0: warning: "PF_UNIX" redefined [enabled by default] ./include/bits/socket.h:45:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:194:0: warning: "PF_LOCAL" redefined [enabled by default] ./include/bits/socket.h:44:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:195:0: warning: "PF_INET" redefined [enabled by default] ./include/bits/socket.h:47:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:196:0: warning: "PF_AX25" redefined [enabled by default] ./include/bits/socket.h:48:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:197:0: warning: "PF_IPX" redefined [enabled by default] ./include/bits/socket.h:49:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:198:0: warning: "PF_APPLETALK" redefined [enabled by default] ./include/bits/socket.h:50:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:199:0: warning: "PF_NETROM" redefined [enabled by default] ./include/bits/socket.h:51:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:200:0: warning: "PF_BRIDGE" redefined [enabled by default] ./include/bits/socket.h:52:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:201:0: warning: "PF_ATMPVC" redefined [enabled by default] ./include/bits/socket.h:53:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:202:0: warning: "PF_X25" redefined [enabled by default] ./include/bits/socket.h:54:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:203:0: warning: "PF_INET6" redefined [enabled by default] ./include/bits/socket.h:55:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:204:0: warning: "PF_ROSE" redefined [enabled by default] ./include/bits/socket.h:56:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:205:0: warning: "PF_DECnet" redefined [enabled by default] ./include/bits/socket.h:57:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:206:0: warning: "PF_NETBEUI" redefined [enabled by default] ./include/bits/socket.h:58:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:207:0: warning: "PF_SECURITY" redefined [enabled by default] ./include/bits/socket.h:59:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:208:0: warning: "PF_KEY" redefined [enabled by default] ./include/bits/socket.h:60:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:209:0: warning: "PF_NETLINK" redefined [enabled by default] ./include/bits/socket.h:61:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:210:0: warning: "PF_ROUTE" redefined [enabled by default] ./include/bits/socket.h:62:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:211:0: warning: "PF_PACKET" redefined [enabled by default] ./include/bits/socket.h:63:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:212:0: warning: "PF_ASH" redefined [enabled by default] ./include/bits/socket.h:64:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:213:0: warning: "PF_ECONET" redefined [enabled by default] ./include/bits/socket.h:65:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:214:0: warning: "PF_ATMSVC" redefined [enabled by default] ./include/bits/socket.h:66:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:215:0: warning: "PF_SNA" redefined [enabled by default] ./include/bits/socket.h:68:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:216:0: warning: "PF_IRDA" redefined [enabled by default] ./include/bits/socket.h:69:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:217:0: warning: "PF_PPPOX" redefined [enabled by default] ./include/bits/socket.h:70:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:218:0: warning: "PF_WANPIPE" redefined [enabled by default] ./include/bits/socket.h:71:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:219:0: warning: "PF_LLC" redefined [enabled by default] ./include/bits/socket.h:72:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:220:0: warning: "PF_TIPC" redefined [enabled by default] ./include/bits/socket.h:74:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:221:0: warning: "PF_BLUETOOTH" redefined [enabled by default] ./include/bits/socket.h:75:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:222:0: warning: "PF_IUCV" redefined [enabled by default] ./include/bits/socket.h:76:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:223:0: warning: "PF_RXRPC" redefined [enabled by default] ./include/bits/socket.h:77:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:224:0: warning: "PF_MAX" redefined [enabled by default] ./include/bits/socket.h:84:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:233:0: warning: "MSG_OOB" redefined [enabled by default] ./include/bits/socket.h:178:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:234:0: warning: "MSG_PEEK" redefined [enabled by default] ./include/bits/socket.h:180:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:235:0: warning: "MSG_DONTROUTE" redefined [enabled by default] ./include/bits/socket.h:182:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:236:0: warning: "MSG_TRYHARD" redefined [enabled by default] ./include/bits/socket.h:186:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:237:0: warning: "MSG_CTRUNC" redefined [enabled by default] ./include/bits/socket.h:189:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:239:0: warning: "MSG_TRUNC" redefined [enabled by default] ./include/bits/socket.h:193:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:240:0: warning: "MSG_DONTWAIT" redefined [enabled by default] ./include/bits/socket.h:195:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:241:0: warning: "MSG_EOR" redefined [enabled by default] ./include/bits/socket.h:197:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:242:0: warning: "MSG_WAITALL" redefined [enabled by default] ./include/bits/socket.h:199:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:243:0: warning: "MSG_FIN" redefined [enabled by default] ./include/bits/socket.h:201:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:244:0: warning: "MSG_SYN" redefined [enabled by default] ./include/bits/socket.h:203:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:245:0: warning: "MSG_CONFIRM" redefined [enabled by default] ./include/bits/socket.h:205:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:246:0: warning: "MSG_RST" redefined [enabled by default] ./include/bits/socket.h:207:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:247:0: warning: "MSG_ERRQUEUE" redefined [enabled by default] ./include/bits/socket.h:209:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:248:0: warning: "MSG_NOSIGNAL" redefined [enabled by default] ./include/bits/socket.h:211:0: note: this is the location of the previous definition /ffp/include/linux/socket.h:249:0: warning: "MSG_MORE" redefined [enabled by default] ./include/bits/socket.h:213:0: note: this is the location of the previous definition make: *** [libc/inet/if_index.os] Error 1