hello... As described in this paper*(**Using the OSKit as a base for L4 applications), i'm trying to use the oskit to have networking support in a L4 server. When i try to build the oskit example, built in the paper, pingreply.c, i get the following errors: * *PWD=/home/tiago/l4/pkg/testecom/server/src/OBJ-x86_586-l4v2 make -C OBJ-x86_586-l4v2 -f Makefile make[1]: Entrando no diretório `/home/tiago/l4/pkg/testecom/server/src/OBJ-x86_586-l4v2' ... Compiling main.o LD_PRELOAD=/home/tiago/l4/tool/gendep/libgendep.so GENDEP_TARGET=main.o GENDEP_BINARY=cpp0 gcc-2.95 -c -DRAM_BASE=0x0 -DSYSTEM_x86_586_l4v2 -DARCH_x86 -DCPUTYPE_586 -DL4API_l4v2 -I../../../idl/OBJ-x86-l4v2 -I../../../../../include/x86/l4v2 -I/home/tiago/drops/include/x86/l4v2 -I../../../../../include/l4v2 -I/home/tiago/drops/include/l4v2 -I../../../../../include/x86 -I/home/tiago/drops/include/x86 -I../../../../../include -I/home/tiago/drops/include -nostdinc -DOSKIT -I../../../../../../oskit10/freebsd/libc/include -I../../../../../../oskit10/freebsd/3.x/src/include -I../../../../../../oskit10/freebsd/3.x/src/sys -I../../../../../../oskit10 -I../../../../../include/c++/2.95 -I../../../../../include/c++/2.95/drops -I/home/tiago/drops/include/oskit10 -I/home/tiago/drops/include/oskit10/oskit/freebsd -I/home/tiago/drops/include/c++/2.95 -I/home/tiago/drops/include/c++/2.95/drops -I/usr/lib/gcc-lib/i386-linux/2.95.4/include -gstabs+ -g -O2 -fno-strict-aliasing -march=i586 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations /home/tiago/l4/pkg/testecom/server/src/main.c -o main.o In file included from ../../../../../../oskit10/oskit/c/netinet/in.h:46, from ../../../../../../oskit10/oskit/net/bootp.h:24, from /home/tiago/l4/pkg/testecom/server/src/bootp.h:30, from /home/tiago/l4/pkg/testecom/server/src/main.c:49: ../../../../../../oskit10/oskit/machine/endian.h:82: warning: `__word_swap_long' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:74: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/machine/endian.h:99: warning: `__byte_swap_long' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:91: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/machine/endian.h:107: warning: `__byte_swap_word' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:99: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/machine/endian.h:119: warning: `NTOHL' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:111: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/machine/endian.h:120: warning: `NTOHS' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:112: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/machine/endian.h:121: warning: `HTONL' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:113: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/machine/endian.h:122: warning: `HTONS' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:114: warning: this is the location of the previous definition In file included from ../../../../../../oskit10/oskit/net/bootp.h:24, from /home/tiago/l4/pkg/testecom/server/src/bootp.h:30, from /home/tiago/l4/pkg/testecom/server/src/main.c:49: ../../../../../../oskit10/oskit/c/netinet/in.h:104: warning: `INADDR_ANY' redefined ../../../../../../oskit10/freebsd/3.x/src/sys/netinet/in.h:258: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/c/netinet/in.h:105: warning: `INADDR_BROADCAST' redefined ../../../../../../oskit10/freebsd/3.x/src/sys/netinet/in.h:260: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/c/netinet/in.h:124: warning: `IN_CLASSA' redefined ../../../../../../oskit10/freebsd/3.x/src/sys/netinet/in.h:232: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/c/netinet/in.h:130: warning: `IN_CLASSB' redefined ../../../../../../oskit10/freebsd/3.x/src/sys/netinet/in.h:238: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/c/netinet/in.h:136: warning: `IN_CLASSC' redefined ../../../../../../oskit10/freebsd/3.x/src/sys/netinet/in.h:244: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/c/netinet/in.h:141: warning: `IN_CLASSD' redefined ../../../../../../oskit10/freebsd/3.x/src/sys/netinet/in.h:249: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/c/netinet/in.h:147: warning: `IN_EXPERIMENTAL' redefined ../../../../../../oskit10/freebsd/3.x/src/sys/netinet/in.h:255: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/c/netinet/in.h:148: warning: `IN_BADCLASS' redefined ../../../../../../oskit10/freebsd/3.x/src/sys/netinet/in.h:256: warning: this is the location of the previous definition In file included from ../../../../../../oskit10/oskit/c/netinet/in.h:46, from ../../../../../../oskit10/oskit/net/bootp.h:24, from /home/tiago/l4/pkg/testecom/server/src/bootp.h:30, from /home/tiago/l4/pkg/testecom/server/src/main.c:49: ../../../../../../oskit10/oskit/machine/endian.h:70: parse error before `__extension__' ../../../../../../oskit10/oskit/machine/endian.h:70: parse error before `:' ../../../../../../oskit10/oskit/machine/endian.h:70: warning: type defaults to `int' in declaration of `__X' ../../../../../../oskit10/oskit/machine/endian.h:70: warning: data definition has no type or storage class ../../../../../../oskit10/oskit/machine/endian.h:70: parse error before `}' ../../../../../../oskit10/oskit/machine/endian.h:71: parse error before `__extension__' ../../../../../../oskit10/oskit/machine/endian.h:71: parse error before `:' ../../../../../../oskit10/oskit/machine/endian.h:71: warning: type defaults to `int' in declaration of `__X' ../../../../../../oskit10/oskit/machine/endian.h:71: warning: data definition has no type or storage class ../../../../../../oskit10/oskit/machine/endian.h:71: parse error before `}' ../../../../../../oskit10/oskit/machine/endian.h:72: parse error before `__extension__' ../../../../../../oskit10/oskit/machine/endian.h:72: parse error before `:' ../../../../../../oskit10/oskit/machine/endian.h:72: warning: type defaults to `int' in declaration of `__X' ../../../../../../oskit10/oskit/machine/endian.h:72: warning: data definition has no type or storage class ../../../../../../oskit10/oskit/machine/endian.h:72: parse error before `}' ../../../../../../oskit10/oskit/machine/endian.h:73: parse error before `__extension__' ../../../../../../oskit10/oskit/machine/endian.h:73: parse error before `:' ../../../../../../oskit10/oskit/machine/endian.h:73: warning: type defaults to `int' in declaration of `__X' ../../../../../../oskit10/oskit/machine/endian.h:73: warning: data definition has no type or storage class ../../../../../../oskit10/oskit/machine/endian.h:73: parse error before `}' In file included from ../../../../../../oskit10/oskit/net/bootp.h:24, from /home/tiago/l4/pkg/testecom/server/src/bootp.h:30, from /home/tiago/l4/pkg/testecom/server/src/main.c:49: ../../../../../../oskit10/oskit/c/netinet/in.h:96: redefinition of `struct in_addr' ../../../../../../oskit10/oskit/c/netinet/in.h:111: redefinition of `struct sockaddr_in' In file included from /home/tiago/l4/pkg/testecom/server/src/main.c:49: /home/tiago/l4/pkg/testecom/server/src/bootp.h:100: warning: function declaration isn't a prototype /home/tiago/l4/pkg/testecom/server/src/main.c:70: warning: no previous prototype for `fingerclient' /home/tiago/l4/pkg/testecom/server/src/main.c:141: warning: no previous prototype for `dateserver' /home/tiago/l4/pkg/testecom/server/src/main.c: In function `main': /home/tiago/l4/pkg/testecom/server/src/main.c:279: warning: implicit declaration of function `get_ipinfo' make[1]: ** [main.o] Erro 1 make[1]: Saindo do diretório `/home/tiago/l4/pkg/testecom/server/src/OBJ-x86_586-l4v2' make: ** [OBJ-x86_586-l4v2] Erro 2 * *The BID is including doubled headers. I've tried to create a costum mode in modes.inc and removing some include dirs but it didn't worked as well, so i have came back to l4env_freebsd. How can i solve this problem?
thanks in advance
Tiago Jorge ** * **
On Tue Feb 22, 2005 at 21:12:08 +0000, Tiago Jorge wrote:
-I/home/tiago/drops/include/c++/2.95/drops -I/usr/lib/gcc-lib/i386-linux/2.95.4/include -gstabs+ -g -O2 -fno-strict-aliasing -march=i586 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations /home/tiago/l4/pkg/testecom/server/src/main.c -o main.o In file included from ../../../../../../oskit10/oskit/c/netinet/in.h:46, from ../../../../../../oskit10/oskit/net/bootp.h:24, from /home/tiago/l4/pkg/testecom/server/src/bootp.h:30, from /home/tiago/l4/pkg/testecom/server/src/main.c:49: ../../../../../../oskit10/oskit/machine/endian.h:82: warning: `__word_swap_long' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:74: warning: this is the location of the previous definition ../../../../../../oskit10/oskit/machine/endian.h:99: warning: `__byte_swap_long' redefined /home/tiago/drops/include/oskit10/oskit/freebsd/machine/endian.h:91:
*The BID is including doubled headers. I've tried to create a costum mode in modes.inc and removing some include dirs but it didn't worked as well, so i have came back to l4env_freebsd. How can i solve this problem?
Well, BID is not including any headers, it's just setting include paths. Are you including any of the freebsd headers in your program first? I guess freebsd and oskit headers do not mix too well, at least in this area. But I'm far from giving any real hint as I'm unfamiliar with this. I hope you can fix this up yourself.
Adam
l4-hackers@os.inf.tu-dresden.de