Crosscompile error tinc => 1.0.11 on openwrt whiterussian 0.9

Frithjof Hammer tinc at frithjof-hammer.de
Fri Jun 18 15:55:33 CEST 2010


Hello!

I try to maintain a couple off old Openwrt based routers. The routers
run openwrt whiterussian, so it quite outdated. But it is a little
dangerous to update a remote machine from whiterussian to kamikaze or
backfire, this may be usefull for others.

I used the openwrt whiterussian 0.9 sdk and the attached Makefile to
compile all tinc versions till 1.0.11. Since 1.0.11 the compile process
fails in net.c at line 470:

mipsel-linux-uclibc-gcc -DHAVE_CONFIG_H  -I.. -I../lib
-I/home/frithjof/wrt/whiterussian/OpenWrt-SDK-Linux-x86_64-1/staging_dir_mipsel/usr/include
-I/home/frithjof/wrt/whiterussian/OpenWrt-SDK-Linux-x86_64-1/staging_dir_mipsel/usr//include
-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -DCONFDIR=\"/etc\"
-DLOCALSTATEDIR=\"/var\" -Os -pipe -mips32 -mtune=mips32
-funit-at-a-time -MT net.o -MD -MP -MF .deps/net.Tpo -c -o net.o net.c
net.c: In function `main_loop':
net.c:470: error: conflicting types for 'node'
net.c:438: error: previous declaration of 'node' was here
net.c:470: error: 'for' loop initial declaration used outside C99 mode
net.c:481: warning: assignment from incompatible pointer type
net.c:497: warning: assignment from incompatible pointer type
net.c:504: warning: assignment from incompatible pointer type
net.c:504: warning: assignment from incompatible pointer type
net.c:505: warning: assignment from incompatible pointer type
make[7]: *** [net.o] Error 1

Any Ideas?

I attached the full outputs of the compile processes for 1.0.10
(working) and 1.0.13 (failing).

Greetings
Frithjof
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20100618/e82c021a/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output_1.0.10.txt
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20100618/e82c021a/attachment-0003.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: output_1.0.13.txt
URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20100618/e82c021a/attachment-0004.txt>


More information about the tinc-devel mailing list