[Olsr-users] Current oonf-olsr2-git fails to build for OpenWrt

Henning Rogge (spam-protected)
Tue Jul 21 16:36:47 CEST 2015


Hi Bernd,

can you maybe try the following patch on top of the current Git master?

Henning

On Mon, Jul 20, 2015 at 8:39 PM, Bernd Naumann <(spam-protected)> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hey again,
>
> Ok, I have tested now
> * musl,
> * eglibc 2.19, and
> * uClibc 0.9.33.2
>
> and with uClibc it builds fine!
>
>
> However if using eglibc, building
> src-plugins/generic/nl80211_listener/CMakeFiles/oonf_static_nl80211_list
> ener.dir/nl80211_get_interface.c.o
> fails (but with a different error then when using musl [see previous
> mail]):
>
> [ 32%] Building C object
> src-plugins/generic/nl80211_listener/CMakeFiles/oonf_static_nl80211_list
> ener.dir/nl80211_get_interface.c.o
> In file included from
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/netlink.h:30:0,
>                  from
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/attr.h:15,
>                  from
> /home/ed/src/olsr2/build-dir/openwrt/feeds/oonf/src-plugins/generic/nl80
> 211_listener/nl80211_get_interface.c:72:
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/handlers.h:133:19:
> warning: 'struct ucred' declared inside par
> ameter list [enabled by default]
>             struct ucred **);
>                    ^
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/handlers.h:133:19:
> warning: its scope is only this definition
> or declaration, which is probably not what you want [enabled by default]
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/handlers.h:207:36:
> warning: 'struct ucred' declared inside par
> ameter list [enabled by default]
>            unsigned char **, struct ucred **))
>                                     ^
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/handlers.h:
> In function 'nl_cb_overwrite_recv':
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/handlers.h:209:17:
> warning: assignment from incompatible point
> er type [enabled by default]
>   cb->cb_recv_ow = func;
>                  ^
> In file included from
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/attr.h:15:0,
>                  from
> /home/ed/src/olsr2/build-dir/openwrt/feeds/oonf/src-plugins/generic/nl80
> 211_listener/nl80211_get_interface.c:72:
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/netlink.h:
> At top level:
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/netlink.h:57:13:
> warning: 'struct ucred' declared inside parameter list [enabled by
> default]
>       struct ucred **);
>              ^
> In file included from
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/attr.h:19:0,
>                  from
> /home/ed/src/olsr2/build-dir/openwrt/feeds/oonf/src-plugins/generic/nl80
> 211_listener/nl80211_get_interface.c:72:
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/msg.h:52:16:
> error: field 'nm_creds' has incomplete type
>   struct ucred  nm_creds;
>                 ^
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/msg.h:
> In function 'nlmsg_set_creds':
> /home/ed/src/olsr2/build-dir/openwrt/staging_dir/target-mips_34kc_glibc-
> 2.19/usr/include/libnl-tiny/netlink/msg.h:207:39:
> error: dereferencing pointer to incomplete type
>   memcpy(&msg->nm_creds, creds, sizeof(*creds));
>                                        ^
> src-plugins/generic/nl80211_listener/CMakeFiles/oonf_static_nl80211_list
> ener.dir/build.make:80:
> recipe for target
> 'src-plugins/generic/nl80211_listener/CMakeFiles/oonf_static_nl80211_lis
> tener.dir/nl80211_get_interface.c.o'
> failed
>
> Allright, have a good time in praque,
> see you at battlemesh?
>
> Bernd
>
> PS: I have logged the full build and can provide the log and .config
> files if requested.
>
> On 07/20/2015 01:55 PM, Henning Rogge wrote:
>> Hi Bernd,
>>
>> thank you for the feedback... I will try to look into this when I
>> am back from the IETF next week.
>>
>> Henning
>>
>> On Mon, Jul 20, 2015 at 1:48 PM, Bernd Naumann <(spam-protected)>
>> wrote: On 07/20/2015 10:04 AM, Henning Rogge wrote:
>>>>> Hi,
>>>>>
>>>>> have you tried to compile it with uclibc? My first guess
>>>>> would be that its a musl-libc issue.
>>>>>
>>>>> Henning
>>>>>
>>
>> Hi Henning,
>>
>> Yes, I have tried several combinations: * glibc * uClibc * musl
>>
>> and * ehlibc 2.19 * glibc 2.21
>>
>> But every build failed with an other error. The other issue was a
>> flaw with netlink source files...
>>
>> Over the day I will start a rebuild of all combinations and send
>> you and the list the build errors.
>>
>> Hope some of the OpenWrt-Folks have an idea or can point out the
>> issue.
>>
>> Bernd
>
>
>
> - --
> Bernd Naumann <(spam-protected)>
>
> PGP:   0xA150A04F via pool.sks-keyservers.net
> XMPP:  (spam-protected)
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQIcBAEBCAAGBQJVrUB9AAoJEEYW3OihUKBPS/AP/A5muLehMD0zNChEVJNQl0yS
> Cma8tRxvK03PgNYf6kJ2k3lxA6KWzq8njOJIQuoHh0QxG0QYAGVqRi7DRoQ5C+9k
> v+Ass8xFNXuvTNiYPVw9bqnm5zlhHZmIm4urxamC/NANm6UPH5GDuAGcAWdLFdOP
> 0Pq0C2cXf3n65GfqhzhQJmpWDg0DwA2jbVfeSEdRJLzMRkfQtAA3o9swZAHLAArW
> SMmHRzxuo9b7gCe12s60U9ENMQALSjjJdE+LO8/mLILuCjnepyl/56IDh9Y+rRc4
> rD5m6MAG06wSAcuBeWU94Ra6ihGQN837aK8daWVtQaP5Uhpvo3ckxm4nynXMgK3A
> +dPFxPQo32CvhiywFRASJ/5i/XFwFEOiJeTBgZE76w3IyUf3Iy6s5OgmYTaaf90P
> Mo+VEbX/sJUFtOKSCZGfuaXiBIMjbF/RZL9h1R/6UZnOO+1AZ9uH5uHfAz4TYjXF
> ocMDov91EIvQ5xB6Id4rFgdfdFmDxqscgFuPfgsyZphT7v5MJylWo/UjJ/M/IvXv
> 15caNODsZ3l5o92fb0e6iGS1jNLXHqGztvM+S6aziqs9SiIHsc5eCAa1fOdqZuT9
> A7IsieGXVD5t9eIdB+XedsaP3U3K8HpGw3CwLG1GnF1K360zTV9LnpAnCz1uffGM
> 4gs7M37zYUM6rxD6GhXV
> =DNLK
> -----END PGP SIGNATURE-----
>
> --
> Olsr-users mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: musl.patch
Type: text/x-patch
Size: 4916 bytes
Desc: not available
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20150721/065c6b1b/attachment.bin>


More information about the Olsr-users mailing list