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:19] jmcdowell |
appnotes:errors [2009/04/23 11:10] (current) jmcdowell |
||
|---|---|---|---|
| Line 85: | Line 85: | ||
| <br> | <br> | ||
| </html> | </html> | ||
| - | I did some google searches and found what appeared to be a pretty promising fix here.[[http://bugs.gentoo.org/229183]] | + | I did some google searches and found what appeared to be a pretty promising fix here.[[http://bugs.gentoo.org/229183]]\\ |
| - | <snip><br> | + | <html><br> |
| + | < snip ><br> | ||
| ------- Comment #3 From Edward Killips 2008-07-28 00:58:49 0000 [reply] -------<br> | ------- Comment #3 From Edward Killips 2008-07-28 00:58:49 0000 [reply] -------<br> | ||
| + | Adding #include <linux/ipv6.h> to common/socket.c will fix the problem<br> | ||
| + | < / snip ><br> | ||
| <br> | <br> | ||
| - | Adding #include <linux/ipv6.h> to common/socket.c will fix the problem<br> | + | So I executed "vi common/socket.c<br> |
| + | I added "#include <linux/ipv6.h>" as stated. I then exexcuted "make".<br> | ||
| - | </snip><br> | ||
| - | <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 114: | 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 127: | 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> | ||