From: Franca D. <fra...@ii...> - 2007-01-17 15:25:06
|
Hi all, I'm installing Haggle on my linux laptops (Debian testing, kernel = 2.6.18), but I have some problems compiling the nativewifiapi. Following Erik's instructions in the README file of the specified = directory, I have installed the standard development tools, dhcdbd and = dbus.=20 Since I have installed java j2se 1.4.2_13 sdk, as recommended in Haggle = overview.html , I changed the path related to jni headers in the = NativeWiFiAPI-linux makefile setting INC as follows: INC=3D-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include = -I/usr/local/java/j2sdk1.4.2_13/include = -I/usr/local/java/j2sdk1.4.2_13/include/linux Then, I ran the make command obtaining the following output: gcc -c -Wall -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include=20 -I/usr/local/java/j2sdk1.4.2_13/include = -I/usr/local/java/j2sdk1.4.2_13/include/linux -o iwlib.o iwlib.c gcc -c -Wall -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include = -I/usr/local/java/j2sdk1.4.2_13/include = -I/usr/local/java/j2sdk1.4.2_13/include/linux -o rtnl.o rtnl.c In file included from /usr/include/sys/uio.h:29, from /usr/include/sys/socket.h:27, from rtnl.c:18: /usr/include/bits/uio.h:43: error: redefinition of 'struct iovec' In file included from /usr/include/sys/socket.h:35, from rtnl.c:18: /usr/include/bits/socket.h:146: error: redefinition of 'struct sockaddr' /usr/include/bits/socket.h:163: error: redefinition of 'struct = __kernel_sockaddr_storage' /usr/include/bits/socket.h:173: error: expected identifier before = numeric constant /usr/include/bits/socket.h:216: error: redefinition of 'struct msghdr' /usr/include/bits/socket.h:231: error: redefinition of 'struct cmsghdr' /usr/include/bits/socket.h:258: error: conflicting types for = '__cmsg_nxthdr' /usr/include/linux/socket.h:132: error: previous definition of = '__cmsg_nxthdr' was here /usr/include/bits/socket.h:286: error: expected identifier before = numeric constant /usr/include/bits/socket.h:297: error: redefinition of 'struct ucred' In file included from /usr/include/sys/socket.h:35, from rtnl.c:18: /usr/include/bits/socket.h:309: error: redefinition of 'struct linger' rtnl.c: In function 'rtnl_receive': rtnl.c:308: error: 'MSG_TRUNC' undeclared (first use in this function) rtnl.c:308: error: (Each undeclared identifier is reported only once rtnl.c:308: error: for each function it appears in.) make: *** [rtnl.o] Error 1 How can I solve this problem??? Your help is really appreciated! Thanks in advance, Regards, Franca ************************************************************ Franca Delmastro Pervasive Computing & Networking Lab. (PerLab) IIT- National Research Council via G. Moruzzi,1 56124 Pisa, Italy phone: +39 050 3152405 (direct) fax: +39 050 3152593 (institute) ******************************************************** |