[Olsr-users] Current oonf-olsr2-git fails to build for OpenWrt
Henning Rogge
(spam-protected)
Mon Jul 20 10:04:47 CEST 2015
Hi,
have you tried to compile it with uclibc? My first guess would be that
its a musl-libc issue.
Henning
On Sun, Jul 19, 2015 at 9:38 PM, Bernd Naumann <(spam-protected)> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hello Henning and fellow OpenWrt-Devs,
>
> I have problems building OLSR2/OONF for OpenWrt since a few days, and
> I might thing it has something to do with the OpenWrt-Toolchain,
> because compiling OONF with gcc-4.9 on Debian testing amd64 just works
> fine without errors or warnings.
>
> I'm have not that much understanding of cross compiling and linux
> system programming internals, so I just can point to the problem,
> without any suggestions, sorry for that...
>
> Maybe it has something to do with the included Kernel (header)
> versions... as a friend of mine pointed out, but he has no knowledge
> about OpenWrt internals so we came up not to far with debugging...
>
> $ tail -n 30 openwrt-build-with-olsr2.log
> make[7]: Entering directory
> '/home/ed/src/olsr2/build-dir/openwrt/build_dir/target-mips_34kc_musl-1.
> 1.10/oonf-olsrd2-git-0.8.2'
> [ 0%] Building C object
> src-plugins/subsystems/CMakeFiles/oonf_static_os_system.dir/os_linux/os_
> system_linux.c.o
> /home/ed/src/olsr2/build-dir/openwrt/feeds/oonf/src-plugins/subsystems/o
> s_linux/os_system_linux.c:
> In function 'os_system_netlink_addreq':
> /home/ed/src/olsr2/build-dir/openwrt/feeds/oonf/src-plugins/subsystems/o
> s_linux/os_system_linux.c:412:44:
> error: 'UIO_MAXIOV' undeclared (first use in this function)
> if (aligned_msg_len + aligned_attr_len > UIO_MAXIOV) {
> ^
> /home/ed/src/olsr2/build-dir/openwrt/feeds/oonf/src-plugins/subsystems/o
> s_linux/os_system_linux.c:412:44:
> note: each undeclared identifier is reported only once for each
> function it appears in
> src-plugins/subsystems/CMakeFiles/oonf_static_os_system.dir/build.make:5
> 7:
> recipe for target
> 'src-plugins/subsystems/CMakeFiles/oonf_static_os_system.dir/os_linux/os
> _system_linux.c.o'
> failed
> make[7]: ***
> [src-plugins/subsystems/CMakeFiles/oonf_static_os_system.dir/os_linux/os
> _system_linux.c.o]
> Error 1
> make[7]: Leaving directory
> '/home/ed/src/olsr2/build-dir/openwrt/build_dir/target-mips_34kc_musl-1.
> 1.10/oonf-olsrd2-git-0.8.2'
> CMakeFiles/Makefile2:6705: recipe for target
> 'src-plugins/subsystems/CMakeFiles/oonf_static_os_system.dir/all' failed
> make[6]: ***
> [src-plugins/subsystems/CMakeFiles/oonf_static_os_system.dir/all] Error
> 2
> make[6]: Leaving directory
> '/home/ed/src/olsr2/build-dir/openwrt/build_dir/target-mips_34kc_musl-1.
> 1.10/oonf-olsrd2-git-0.8.2'
> CMakeFiles/Makefile2:7879: recipe for target
> 'src/olsrd2/CMakeFiles/olsrd2_static.dir/rule' failed
> make[5]: *** [src/olsrd2/CMakeFiles/olsrd2_static.dir/rule] Error 2
> make[5]: Leaving directory
> '/home/ed/src/olsr2/build-dir/openwrt/build_dir/target-mips_34kc_musl-1.
> 1.10/oonf-olsrd2-git-0.8.2'
> Makefile:2490: recipe for target 'olsrd2_static' failed
> make[4]: *** [olsrd2_static] Error 2
> make[4]: Leaving directory
> '/home/ed/src/olsr2/build-dir/openwrt/build_dir/target-mips_34kc_musl-1.
> 1.10/oonf-olsrd2-git-0.8.2'
> Makefile:67: recipe for target
> '/home/ed/src/olsr2/build-dir/openwrt/build_dir/target-mips_34kc_musl-1.
> 1.10/oonf-olsrd2-git-0.8.2/.built'
> failed
> make[3]: ***
> [/home/ed/src/olsr2/build-dir/openwrt/build_dir/target-mips_34kc_musl-1.
> 1.10/oonf-olsrd2-git-0.8.2/.built]
> Error 2
> make[3]: Leaving directory
> '/home/ed/src/olsr2/build-dir/openwrt/feeds/oonf/openwrt/oonf-olsrd2-git
> '
> package/Makefile:191: recipe for target
> 'package/feeds/oonf/oonf-olsrd2-git/compile' failed
> make[2]: *** [package/feeds/oonf/oonf-olsrd2-git/compile] Error 2
> make[2]: Leaving directory '/home/ed/src/olsr2/build-dir/openwrt'
> package/Makefile:188: recipe for target
> '/home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_musl-
> 1.1.10/stamp/.package_compile'
> failed
> make[1]: ***
> [/home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_musl-
> 1.1.10/stamp/.package_compile]
> Error 2
> make[1]: Leaving directory '/home/ed/src/olsr2/build-dir/openwrt'
> /home/ed/src/olsr2/build-dir/openwrt/include/toplevel.mk:181: recipe
> for target 'world' failed
> make: *** [world] Error 2
>
>
> Best regards and thanks,
> Bernd
>
> - --
> Bernd Naumann <(spam-protected)>
>
> PGP: 0xA150A04F via pool.sks-keyservers.net
> XMPP: (spam-protected)
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQIcBAEBCAAGBQJVq/zRAAoJEEYW3OihUKBPa/EQAJBQbNVjiwUWvaqfKhaPtkSY
> vhcUD8J2oMVSF3tZt/vuj3PcFkYKLHgMbQK/ms0HupqiJym/yJLthzHGmlsF6QoR
> kj2O519kUVdvfKmhI6tMDrz0AhP65PtZxcX91ZMBJ01AXxy6wBoQtpJyNdXJIk78
> dpo6UTtY5LEOIdOdY/+yZdWC5ZnBOopybggaWnYwLYnn3qBqmqZ6WfT/YN+W8YRA
> kAGvoFBixtuNgoQ2nDCii1gRR501Ex5/TaY6XLkocP4QjeuU+umpIiqzg7CXQLB3
> BJBAcKshkZfTAUgjH9S7ENu10BhN6huLxCtzm93Hb7QwtG+082iZWseDplz1nEVq
> JWf6vFehTZq+E6WmFrGCDMqe+DbEMMNEyUKbn+zeb8TYreiFsR+fmuT/dMCCfJKz
> gQGRZsIX+iXfRMhSl4eTKDcRq55c4Gih96oiXWHz4uG52s9ZUrpYWgZE1urmeOt4
> jd9mJimMDWd1leLCk+Ixv1YsLkARpUPs9OAA7DXyhMAZLCjsHnkmBAOKNR0ci6Yu
> w1CiHq4+MltFqTTlVN/f0xdvSIy/Pw/Fn8z3jwDlwQYLwesImq823TxsZMhP+T6n
> nLCbpP3Rl/godEZXLAxJrZ+6S0MrB2puVSAsnvTXGinZzp+dGmOLMvyntrcM9vsY
> +EgrVIuWbG7asvOg5x65
> =/Yup
> -----END PGP SIGNATURE-----
>
> --
> Olsr-users mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-users
More information about the Olsr-users
mailing list