Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
appnotes:errors [2009/04/23 09:26] jmcdowell |
appnotes:errors [2009/04/23 11:10] (current) jmcdowell |
||
|---|---|---|---|
| Line 92: | Line 92: | ||
| < / snip ><br> | < / snip ><br> | ||
| <br> | <br> | ||
| + | So I executed "vi common/socket.c<br> | ||
| + | I added "#include <linux/ipv6.h>" as stated. I then exexcuted "make".<br> | ||
| + | |||
| [root@demo dhcp-4.1.0]# vi common/socket.c <br> | [root@demo dhcp-4.1.0]# vi common/socket.c <br> | ||
| [root@demo dhcp-4.1.0]# make <br> | [root@demo dhcp-4.1.0]# make <br> | ||
| Line 113: | Line 116: | ||
| make[2]: Entering directory `/scratch/dhcp-4.1.0/common'<br> | make[2]: Entering directory `/scratch/dhcp-4.1.0/common'<br> | ||
| if gcc -DHAVE_CONFIG_H -I. -I. -I../includes -I.. -DLOCALSTATEDIR='"/var"' -static -MT socket.o -MD -MP -MF ".deps/socket.Tpo" -c -o socket.o socket.c; \<br> | if gcc -DHAVE_CONFIG_H -I. -I. -I../includes -I.. -DLOCALSTATEDIR='"/var"' -static -MT socket.o -MD -MP -MF ".deps/socket.Tpo" -c -o socket.o socket.c; \<br> | ||
| - | then mv -f ".deps/socket.Tpo" ".deps/socket.Po"; else rm -f ".deps/socket.Tpo"; exit 1; fi<br> | + |       then mv -f ".deps/socket.Tpo" ".deps/socket.Po"; else rm -f ".deps/socket.Tpo"; exit 1; fi<br> |
| In file included from /usr/include/linux/ipv6.h:4,<br> | In file included from /usr/include/linux/ipv6.h:4,<br> | ||
| - | from socket.c:48:<br> | + |                  from socket.c:48:<br> |
| /usr/include/linux/in6.h:31: error: redefinition of 'struct in6_addr'<br> | /usr/include/linux/in6.h:31: error: redefinition of 'struct in6_addr'<br> | ||
| /usr/include/linux/in6.h:54: error: redefinition of 'struct sockaddr_in6'<br> | /usr/include/linux/in6.h:54: error: redefinition of 'struct sockaddr_in6'<br> | ||
| Line 126: | Line 129: | ||
| make[1]: *** [all-recursive] Error 1<br> | make[1]: *** [all-recursive] Error 1<br> | ||
| make[1]: Leaving directory `/scratch/dhcp-4.1.0/common'<br> | make[1]: Leaving directory `/scratch/dhcp-4.1.0/common'<br> | ||
| + | As you can tell by now, this created a new problem. | ||
| </html> | </html> | ||