On Mon, 2008-01-07 at 22:27 +0200, John Hay wrote: > On Mon, Jan 07, 2008 at 09:11:43PM +0100, Bernd Petrovitsch wrote: [...] > > Yes, the order of the system's include files. > > Well the compile messages looks like this: > > gcc -O2 -fno-strict-aliasing -pipe -Isrc -DOLSRD_GLOBAL_CONF_FILE=\"/usr/local/etc/olsrd.conf\" -DNDEBUG -c -o src/routing_table.o src/routing_table.c > In file included from src/routing_table.h:45, > from src/routing_table.c:42: > /usr/include/net/route.h:50: error: field 'ro_dst' has incomplete type > /usr/include/net/route.h:58: error: expected specifier-qualifier-list before 'u_long' > /usr/include/net/route.h:64: error: expected specifier-qualifier-list before 'u_long' >From which .h file does the "u_long" type (and the others below) come from? Just add a #include line before before the `#include ` in src/routing_table.h. > In file included from /usr/include/net/route.h:99, > from src/routing_table.h:45, > from src/routing_table.c:42: > /usr/include/net/radix.h:54: error: expected specifier-qualifier-list before 'u_char' > /usr/include/net/radix.h:91: error: expected specifier-qualifier-list before 'u_char' > In file included from src/routing_table.h:45, > from src/routing_table.c:42: > /usr/include/net/route.h:111: error: expected specifier-qualifier-list before 'u_long' > /usr/include/net/route.h:131: error: expected specifier-qualifier-list before 'u_long' > /usr/include/net/route.h:191: error: expected specifier-qualifier-list before 'u_short' > gmake: *** [src/routing_table.o] Error 1 Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services