On 15 July 2011 10:55, ales88 wrote: > > I've Ubuntu 10.10 and when I compile with gcc (version 4.4) I incur in the > following two errors: > > In file included from main.c:34, > from aodv_hello.h:30, > from aodv_socket.c:38: > /usr/include/linux/if.h:134: error: redefinition of ‘struct ifmap’ > /usr/include/linux/if.h:168: error: redefinition of ‘struct ifreq’ > /usr/include/linux/if.h:217: error: redefinition of ‘struct ifconf’ > > In file included from /usr/include/iwlib.h:56, > from llf.c:36: > /usr/include/net/if.h:45: error: expected identifier before numeric constant > /usr/include/net/if.h:113: error: redefinition of ‘struct ifmap’ > /usr/include/net/if.h:128: error: redefinition of ‘struct ifreq’ > /usr/include/net/if.h:178: error: redefinition of ‘struct ifconf’ > > > As you can observe, these two errors refer both to a SYSTEM FILE > /usr/include/net/if.h > Note that this error happens also when I try to compile other projects that > inclueds the file /usr/include/net/if.h > The problem is that I've never modified such file, therefore I don't know > how to fix these errors. > > Has anybody some idea??? Those files are nothing to do with GCC, if your packages are all up to date you should report a bug to Ubuntu.