[Olsr-dev] sgwdynspeed do not compiles on OpenWRT Backfire

Ferry Huberts (spam-protected)
Sun Jun 3 15:16:36 CEST 2012


can someone give me instructions on how to setup a cross-compilation 
environment for openwrt?

PS. from my header file it seems that openwrt needs to define:
   #if defined __USE_MISC || defined __USE_XOPEN2K8

On 03-06-12 14:40, ZioPRoTo (Saverio Proto) wrote:
> Hello,
>
> yet another stuff to fix before releasing 0.6.3
>
> I upgraded my OpenWRT Makefile to compile all the new plugins:
>
> https://github.com/ninuxorg/ninux-openwrt-packages/commit/83b82ca506efa06a9250129cc06cdfc6962176a5
>
> The build process fails here:
>
> make[4]: Entering directory
> `/home/saverio/SORGENTI/backfire-git/build_dir/target-mips_r2_uClibc-0.9.30.1/olsrd-ninux-0.6.2-pre/lib/sgwdynspeed'
> make[4]: Leaving directory
> `/home/saverio/SORGENTI/backfire-git/build_dir/target-mips_r2_uClibc-0.9.30.1/olsrd-ninux-0.6.2-pre/lib/sgwdynspeed'
> make[4]: Entering directory
> `/home/saverio/SORGENTI/backfire-git/build_dir/target-mips_r2_uClibc-0.9.30.1/olsrd-ninux-0.6.2-pre/lib/sgwdynspeed'
> [CC] src/configuration.c
> [CC] src/olsrdPlugin.c
> [CC] src/sgwDynSpeed.c
> [CC] src/speedFile.c
> src/speedFile.c: In function 'readSpeedFile':
> src/speedFile.c:178: error: 'struct stat' has no member named 'st_mtim'
> src/speedFile.c:188: error: 'struct stat' has no member named 'st_mtim'
> make[4]: *** [src/speedFile.o] Error 1
>
> do we have some other OpenWRT package to include ?
>
> Saverio
>
> PS after writing this email a noticed that I forgot to add the pud
> plugin ! I will test it soon
>

-- 
Ferry Huberts




More information about the Olsr-dev mailing list