<div>hmm when modifying the makefile, or doing whatever,..</div><div><br></div>did u disable/remove the LINUX_NETLINK_ROUTING define?<div><br></div><div>as afair the old ioctl code (in which u get compile errors) should not get used/compiled normally,..</div>
<div>(i.e if LINUX_NETLINK is enabled,. which should be the default,..)</div><div><br></div><div>see:</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://olsr.org/git/?p=olsrd.git;a=blob;f=src/linux/kernel_routes_ioctl.c;h=e182920032d8d65cd47015a87a35ecbbddb801dc;hb=dd0b71c3d2eb9b984d3f6c4b722fa34ac0778fa6#l60">http://olsr.org/git/?p=olsrd.git;a=blob;f=src/linux/kernel_routes_ioctl.c;h=e182920032d8d65cd47015a87a35ecbbddb801dc;hb=dd0b71c3d2eb9b984d3f6c4b722fa34ac0778fa6#l60</a></div>
<div><br></div><div><a href="http://olsr.org/git/?p=olsrd.git;a=blob;f=src/linux/kernel_routes_ioctl.c;h=e182920032d8d65cd47015a87a35ecbbddb801dc;hb=dd0b71c3d2eb9b984d3f6c4b722fa34ac0778fa6#l60"></a>Markus<br><br><div class="gmail_quote">
2011/5/11 Fábio Almeida <span dir="ltr"><<a href="mailto:fabio.andre.almeida@gmail.com">fabio.andre.almeida@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<div><br></div><div>I'm not really sure if my wpa_supplicant allow to set a fixed bssid or not, because as I said, I just downloaded a modified wpa_supplicant that works in this device.</div>
<div><br></div><div>I read the topic about implementing OLSR into Samsung Galaxy S and I clarified some doubts that I had. Now I'm tying to compile the most recent version of OLSR that I downloaded from the website and now I'm having some problems.</div>

<div><br></div><div>I couldn't find the r1 of NDK so I'm using the release 4.</div><div><br></div><div>I already changed the Makefile.android to the path that I'm using. But when I try to compile the source I get the following error:</div>

<div><br></div><div><div>fabioalmeida@fabioalmeida-pc:~/Desktop/olsrd-0.6.0$ make OS=android DEBUG=1 build_all</div><div>/home/fabioalmeida/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/arm-eabi-gcc -Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wsign-compare -Waggregate-return -Wmissing-noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations -Wendif-labels -Wwrite-strings -Wbad-function-cast -Wpointer-arith -Wcast-qual -Wshadow -Wsequence-point -Wpointer-arith -Wcast-align -Wnested-externs -Winline -Wdisabled-optimization -finline-functions-called-once -funit-at-a-time -fearly-inlining -finline-limit=350   -I/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include -ggdb -Isrc   -DUSE_FPM -Dlinux -Dandroid -DINET_ADDRSTRLEN=16 -Dipv6mr_interface=ipv6mr_ifindex -D'IPTOS_PREC(tos)=((tos)&0xe0)' -D'IPTOS_TOS(tos)=((tos)&0x1e)' -DOLSRD_GLOBAL_CONF_FILE=\"/data/local/etc/olsrd.conf\" -DDEBUG    -c -o src/linux/kernel_routes_ioctl.o src/linux/kernel_routes_ioctl.c</div>

<div>In file included from /home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/sys/socket.h:33,</div><div>                 from src/defs.h:48,</div><div>                 from src/linux/kernel_routes_ioctl.c:42:</div>

<div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/linux/socket.h: In function '__cmsg_nxthdr':</div><div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/linux/socket.h:89: warning: cast increases required alignment of target type</div>

<div>In file included from src/defs.h:51,</div><div>                 from src/linux/kernel_routes_ioctl.c:42:</div><div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/stdlib.h: At top level:</div>

<div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/stdlib.h:84: warning: declaration of 'abs' shadows a built-in function</div><div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/stdlib.h:88: warning: declaration of 'labs' shadows a built-in function</div>

<div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/stdlib.h:92: warning: declaration of 'llabs' shadows a built-in function</div><div>In file included from src/lq_packet.h:48,</div>

<div>                 from src/lq_plugin.h:48,</div><div>                 from src/link_set.h:49,</div><div>                 from src/routing_table.h:52,</div><div>                 from src/kernel_routes.h:46,</div><div>
                 from src/linux/kernel_routes_ioctl.c:43:</div>
<div>src/ipcalc.h: In function 'sockaddr4_to_string':</div><div>src/ipcalc.h:160: warning: cast increases required alignment of target type</div><div>In file included from src/ipc_frontend.h:54,</div><div>                 from src/linux/kernel_routes_ioctl.c:44:</div>

<div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/unistd.h: In function 'getpagesize':</div><div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/unistd.h:170: warning: nested extern declaration of '__page_size'</div>

<div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/unistd.h: In function '__getpageshift':</div><div>/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/unistd.h:174: warning: nested extern declaration of '__page_shift'</div>

<div>src/linux/kernel_routes_ioctl.c: In function 'delete_all_inet_gws':</div><div>src/linux/kernel_routes_ioctl.c:90: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:101: warning: cast increases required alignment of target type</div>

<div>src/linux/kernel_routes_ioctl.c:102: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:103: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:104: warning: cast increases required alignment of target type</div>

<div>src/linux/kernel_routes_ioctl.c:106: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:107: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c: In function 'olsr_ioctl_add_route':</div>

<div>src/linux/kernel_routes_ioctl.c:141: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:142: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:143: warning: cast increases required alignment of target type</div>

<div>src/linux/kernel_routes_ioctl.c:145: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:150: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:153: warning: cast increases required alignment of target type</div>

<div>src/linux/kernel_routes_ioctl.c: In function 'olsr_ioctl_add_route6':</div><div>src/linux/kernel_routes_ioctl.c:193: error: storage size of 'kernel_route' isn't known</div><div>src/linux/kernel_routes_ioctl.c:198: error: invalid application of 'sizeof' to incomplete type 'struct in6_rtmsg' </div>

<div>src/linux/kernel_routes_ioctl.c:193: warning: unused variable 'kernel_route'</div><div>src/linux/kernel_routes_ioctl.c: In function 'olsr_ioctl_del_route':</div><div>src/linux/kernel_routes_ioctl.c:244: warning: cast increases required alignment of target type</div>

<div>src/linux/kernel_routes_ioctl.c:245: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:246: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:248: warning: cast increases required alignment of target type</div>

<div>src/linux/kernel_routes_ioctl.c:251: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c:257: warning: cast increases required alignment of target type</div><div>src/linux/kernel_routes_ioctl.c: In function 'olsr_ioctl_del_route6':</div>

<div>src/linux/kernel_routes_ioctl.c:289: error: storage size of 'kernel_route' isn't known</div><div>src/linux/kernel_routes_ioctl.c:294: error: invalid application of 'sizeof' to incomplete type 'struct in6_rtmsg' </div>

<div>src/linux/kernel_routes_ioctl.c:289: warning: unused variable 'kernel_route'</div><div>make: *** [src/linux/kernel_routes_ioctl.o] Error 1</div></div><div><br></div><div><br></div><div><br></div><div>Any idea?</div>

<div><br></div><div>Thanks for the help,</div><div>Fabio Almeida</div><div><div></div><div class="h5"><div><br><br><div class="gmail_quote">2011/5/5 Markus Kittenberger <span dir="ltr"><<a href="mailto:Markus.Kittenberger@gmx.at" target="_blank">Markus.Kittenberger@gmx.at</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>if u have stable working adhoc connectivity than you are mostly done *G<br></div><div>(does this wpa_supplicant (and your wifi dirver) allow to set a fixed bssid aswell?)</div>

<div><br></div><div>regarding olsrd:</div>
<div>pls take/create a new version, not the old precompiled binary,..</div><div><br></div><div>some weeks ago someone built olsrd for galayx s, i think he wrote some short howto onthis mailinslist aswell,..</div><div>(its afair mostly just setup android sdk and compile it,..)</div>


<div><br></div><div>Markus</div><br><div class="gmail_quote"><div><div></div><div>2011/5/5 Fábio Almeida <span dir="ltr"><<a href="mailto:fabio.andre.almeida@gmail.com" target="_blank">fabio.andre.almeida@gmail.com</a>></span><br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hello,<div><br></div><div>My name is Fábio Almeida and I'm trying to implement and ad-hoc network in android and I want to use OLSR protocol. I'm new in this area so I have some doubts that I think that should be very simple to you. </div>



<div><br></div><div>I want to create this network in order to create a real time network between some Android devices and share information. I'm using Samsung Galaxy GT-i5500 devices to do this.</div><div><br></div><div>



I already found a custom wpa_supplicant in xda-developers (<a href="http://forum.xda-developers.com/showthread.php?t=781149&page=189" target="_blank">link to the thread</a>) that ables this device to find ad-hoc networks. I already tested it creating an ad-hoc network with my laptop and it seems to work ok.</div>



<div><br></div><div>I already downloaded the <span style="border-collapse:collapse;font-family:Arial, Verdana, Helvetica, sans-serif;font-size:12px;line-height:17px"><a href="http://www.olsr.org/releases/0.5/olsrd-0.5.6-android-samsung-galaxy.tgz" style="text-decoration:none;font-weight:bold;color:rgb(0, 101, 173)" target="_blank">pre compiled samsung android </a>version of olsrd and put it on the device. </span></div>



<div><span style="border-collapse:collapse;font-family:Arial, Verdana, Helvetica, sans-serif;font-size:12px;line-height:17px"><br></span></div><div><span style="border-collapse:collapse;font-family:Arial, Verdana, Helvetica, sans-serif;font-size:12px;line-height:17px">Now i want to know how can I test if this is working fine. It would be very helpful if you can give me a simple tutorial of how to download and change the source code and compile it to make it run on Samsung galaxy. What are the main changes?</span></div>



<div><span style="border-collapse:collapse;font-family:Arial, Verdana, Helvetica, sans-serif;font-size:12px;line-height:17px"><br></span></div><div><font face="Arial, Verdana, Helvetica, sans-serif"><span style="border-collapse:collapse;font-size:12px;line-height:17px">After all this is working, there is any way that I create and ad-hoc network with all the devices (5) and then just exchange some kind of data through the network?</span></font></div>



<div><font face="Arial, Verdana, Helvetica, sans-serif"><span style="border-collapse:collapse;font-size:12px;line-height:17px"><br></span></font></div><div><font face="Arial, Verdana, Helvetica, sans-serif"><span style="border-collapse:collapse;font-size:12px;line-height:17px"><br>



</span></font></div><div><font face="Arial, Verdana, Helvetica, sans-serif"><span style="border-collapse:collapse;font-size:12px;line-height:17px">Thanks for the help.</span></font></div>
<div><font face="Arial, Verdana, Helvetica, sans-serif"><span style="border-collapse:collapse;font-size:12px;line-height:17px"><br></span></font></div><div><font face="Arial, Verdana, Helvetica, sans-serif"><span style="border-collapse:collapse;font-size:12px;line-height:17px">Regards,</span></font></div>



<div><font face="Arial, Verdana, Helvetica, sans-serif"><span style="border-collapse:collapse;font-size:12px;line-height:17px">Fábio Almeida</span></font></div>
<br></div></div>--<br>
Olsr-users mailing list<br>
<a href="mailto:Olsr-users@lists.olsr.org" target="_blank">Olsr-users@lists.olsr.org</a><br>
<a href="http://lists.olsr.org/mailman/listinfo/olsr-users" target="_blank">http://lists.olsr.org/mailman/listinfo/olsr-users</a><br></blockquote></div><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>