Applying ./patches/100-rename-avl-to-olsrd_avl.patch using plaintext: patching file lib/nameservice/src/nameservice.c patching file lib/netjson/src/olsrd_netjson.c patching file lib/netjson/src/olsrd_netjson_helpers.c patching file lib/netjson/src/olsrd_netjson_helpers.h patching file src/common/avl.c patching file src/common/olsrd_avl.c patching file src/common/avl.h patching file src/common/olsrd_avl.h patching file src/duplicate_set.c patching file src/duplicate_set.h patching file src/gateway.c patching file src/gateway.h patching file src/kernel_tunnel.h patching file src/linux/kernel_tunnel.c patching file src/lq_packet.c patching file src/lq_plugin.c patching file src/lq_plugin.h patching file src/olsr.c patching file src/olsr_spf.c patching file src/process_routes.c patching file src/routing_table.c patching file src/routing_table.h patching file src/scheduler.c patching file src/tc_set.c patching file src/tc_set.h Applying ./patches/102-olsrd-prevent-storm-patches.patch using plaintext: patching file src/duplicate_set.c patching file src/duplicate_set.h Applying ./patches/600-add-ubus-support.patch using plaintext: patching file src/scheduler.c patching file src/main.c patching file Makefile.inc make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d' [CC] src/build_msg.c src/build_msg.c: In function 'serialize_hello6': src/build_msg.c:449:33: warning: taking address of packed member of 'struct hellinfo6' may result in an unaligned pointer value [-Waddress-of-packed-member] 449 | haddr = (union olsr_ip_addr *)hinfo6->neigh_addr; | ^~~~~~ src/build_msg.c:519:43: warning: taking address of packed member of 'struct hellinfo6' may result in an unaligned pointer value [-Waddress-of-packed-member] 519 | haddr = (union olsr_ip_addr *)hinfo6->neigh_addr; | ^~~~~~ src/build_msg.c:550:39: warning: taking address of packed member of 'struct hellinfo6' may result in an unaligned pointer value [-Waddress-of-packed-member] 550 | haddr = (union olsr_ip_addr *)&hinfo6->neigh_addr; | ^~~~~~~~~~~~~~~~~~~ [CC] src/cli.c [CC] src/common/autobuf.c [CC] src/common/list.c [CC] src/common/olsrd_avl.c [CC] src/common/string_handling.c [CC] src/duplicate_handler.c [CC] src/duplicate_set.c [CC] src/egressFile.c [CC] src/fpm.c [CC] src/gateway.c [CC] src/gateway_costs.c [CC] src/gateway_default_handler.c [CC] src/gateway_list.c [CC] src/generate_msg.c [CC] src/hashing.c [CC] src/hna_set.c [CC] src/hysteresis.c [CC] src/interfaces.c [CC] src/ipc_frontend.c [CC] src/ipcalc.c [CC] src/link_set.c [CC] src/lock_file.c [CC] src/lq_mpr.c [CC] src/lq_packet.c [CC] src/lq_plugin.c [CC] src/lq_plugin_default_ff.c [CC] src/lq_plugin_default_ffeth.c [CC] src/lq_plugin_default_float.c [CC] src/lq_plugin_default_fpm.c [CC] src/main.c [CC] src/mantissa.c [CC] src/mid_set.c [CC] src/mpr.c [CC] src/mpr_selector_set.c [CC] src/neighbor_table.c [CC] src/net_olsr.c [CC] src/olsr.c [CC] src/olsr_cookie.c [CC] src/olsr_niit.c [CC] src/olsr_spf.c [CC] src/packet.c [CC] src/parser.c src/parser.c: In function 'parse_packet': src/parser.c:331:60: warning: taking address of packed member of 'struct olsrmsg' may result in an unaligned pointer value [-Waddress-of-packed-member] 331 | union olsr_ip_addr *msgorig = (union olsr_ip_addr *) &m->v4.originator; | ^~~~~~~~~~~~~~~~~ src/parser.c:343:60: warning: taking address of packed member of 'struct olsrmsg' may result in an unaligned pointer value [-Waddress-of-packed-member] 343 | union olsr_ip_addr *msgorig = (union olsr_ip_addr *) &m->v4.originator; | ^~~~~~~~~~~~~~~~~ src/parser.c:355:60: warning: taking address of packed member of 'struct olsrmsg' may result in an unaligned pointer value [-Waddress-of-packed-member] 355 | union olsr_ip_addr *msgorig = (union olsr_ip_addr *) &m->v4.originator; | ^~~~~~~~~~~~~~~~~ src/parser.c:376:61: warning: taking address of packed member of 'struct olsrmsg' may result in an unaligned pointer value [-Waddress-of-packed-member] 376 | validated = olsr_validate_address((union olsr_ip_addr *)&m->v4.originator); | ^~~~~~~~~~~~~~~~~ src/parser.c:377:39: warning: taking address of packed member of 'struct olsrmsg' may result in an unaligned pointer value [-Waddress-of-packed-member] 377 | if (ipequal((union olsr_ip_addr *)&m->v4.originator, &olsr_cnf->main_addr) || !validated) { | ^~~~~~~~~~~~~~~~~ [CC] src/pid_file.c [CC] src/plugin_loader.c [CC] src/plugin_util.c [CC] src/process_package.c [CC] src/process_routes.c [CC] src/rebuild_packet.c [CC] src/routing_table.c [CC] src/scheduler.c [CC] src/superfasthash.c [CC] src/tc_set.c [CC] src/two_hop_neighbor_table.c [CC] src/ubus.c src/ubus.c:26: warning: "MAX" redefined 26 | #define MAX(a, b) ((a) > (b) ? (a) : (b)) | In file included from /builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/nmealib/include/nmealib/info.h:21, from /builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/src/posAvg.h:54, from /builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/src/receiver.h:50, from src/olsr_cfg.h:53, from src/olsr_protocol.h:57, from src/defs.h:67, from src/ubus.c:16: /builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/nmealib/include/nmealib/util.h:34: note: this is the location of the previous definition 34 | #define MAX(x,y) (((x) >= (y)) ? (x) : (y)) | src/ubus.c:27: warning: "MIN" redefined 27 | #define MIN(a, b) ((a) < (b) ? (a) : (b)) | /builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/nmealib/include/nmealib/util.h:38: note: this is the location of the previous definition 38 | #define MIN(x,y) (((x) <= (y)) ? (x) : (y)) | [CC] src/linux/apm.c [CC] src/linux/kernel_routes_nl.c [CC] src/linux/kernel_tunnel.c [CC] src/linux/lq_plugin_ffeth_nl80211.c [CC] src/linux/net.c [CC] src/linux/nl80211_link_info.c [CC] src/unix/ifnet.c [CC] src/unix/log.c [CC] src/unix/misc.c [CC] src/cfgparser/olsrd_conf.c [CC] src/cfgparser/olsrd_conf_checksum.c [BISON] src/cfgparser/oparse.c [CC] src/cfgparser/oparse.c [FLEX] src/cfgparser/oscan.c [CC] src/cfgparser/oscan.c [CC] src/cfgparser/cfgfile_gen.c [CREATE] builddata.txt [CC] src/builddata.c [LD] olsrd make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d' make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/arprefresh' [CC] src/olsrd_arprefresh.c [LD] olsrd_arprefresh.so.0.1 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/arprefresh' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/bmf' [CC] src/Address.c [CC] src/Bmf.c [CC] src/NetworkInterfaces.c [CC] src/Packet.c [CC] src/PacketHistory.c [CC] src/olsrd_plugin.c [LD] olsrd_bmf.so.1.7.0 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/bmf' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/dot_draw' [CC] src/olsrd_dot_draw.c [CC] src/olsrd_plugin.c [LD] olsrd_dot_draw.so.0.3 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/dot_draw' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/dyn_gw' [CC] src/olsrd_dyn_gw.c [CC] src/olsrd_plugin.c [LD] olsrd_dyn_gw.so.0.5 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/dyn_gw' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/dyn_gw_plain' [CC] src/olsrd_dyn_gw_plain.c [LD] olsrd_dyn_gw_plain.so.0.4 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/dyn_gw_plain' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/httpinfo' [CC] src/admin_interface.c [CC] src/olsrd_httpinfo.c [CC] src/olsrd_plugin.c [LD] olsrd_httpinfo.so.0.1 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/httpinfo' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/filtergw' [CC] src/olsrd_filtergw.c src/olsrd_filtergw.c: In function 'set_plugin_filter': src/olsrd_filtergw.c:124:17: warning: assignment to 'struct hna_group *' from incompatible pointer type 'struct filter_group *' [-Wincompatible-pointer-types] 124 | new->next = filter_groups; | ^ src/olsrd_filtergw.c: In function 'olsrd_filtergw_parser': src/olsrd_filtergw.c:186:7: warning: implicit declaration of function 'should_filter' [-Wimplicit-function-declaration] 186 | if(!should_filter(&originator)) | ^~~~~~~~~~~~~ src/olsrd_filtergw.c: In function 'olsrd_plugin_init': src/olsrd_filtergw.c:259:3: warning: implicit declaration of function 'olsr_parser_add_function' [-Wimplicit-function-declaration] 259 | olsr_parser_add_function(&olsrd_filtergw_parser, HNA_MESSAGE); | ^~~~~~~~~~~~~~~~~~~~~~~~ src/olsrd_filtergw.c: In function 'olsrd_plugin_fini': src/olsrd_filtergw.c:273:33: warning: initialization of 'struct filter_group *' from incompatible pointer type 'struct hna_group *' [-Wincompatible-pointer-types] 273 | struct filter_group* next = filter_groups->next; | ^~~~~~~~~~~~~ [CC] src/olsrd_plugin.c [LD] olsrd_filtergw.so.0.0.1 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/filtergw' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/jsoninfo' [CC] src/olsrd_jsoninfo.c [CC] src/olsrd_plugin.c [CC] ../info/http_headers.c [CC] ../info/json_helpers.c [CC] ../info/olsrd_info.c [LD] olsrd_jsoninfo.so.1.1 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/jsoninfo' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/netjson' [CC] src/olsrd_netjson.c [CC] src/olsrd_netjson_helpers.c [CC] src/olsrd_plugin.c [LD] olsrd_netjson.so.1.1 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/netjson' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/mdns' [CC] src/Address.c [CC] src/NetworkInterfaces.c [CC] src/Packet.c [CC] src/RouterElection.c [CC] src/mdns.c [CC] src/olsrd_plugin.c [LD] olsrd_mdns.so.1.0.1 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/mdns' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/nameservice' [CC] src/compat.c [CC] src/mapwrite.c [CC] src/nameservice.c In file included from ../../src/olsr_cfg.h:49, from ../../src/olsr_protocol.h:57, from ../../src/olsr.h:49, from src/nameservice.c:63: src/nameservice.c: In function 'olsr_namesvc_gen': src/nameservice.c:634:65: warning: taking address of packed member of 'union olsr_message' may result in an unaligned pointer value [-Waddress-of-packed-member] 634 | namesize = encap_namemsg((struct namemsg *)ARM_NOWARN_ALIGN(&message->v4.message)); ../../src/compiler.h:58:39: note: in definition of macro 'ARM_NOWARN_ALIGN' 58 | #define ARM_NOWARN_ALIGN(x) ((void *)(x)) | ^ src/nameservice.c:647:65: warning: taking address of packed member of 'union olsr_message' may result in an unaligned pointer value [-Waddress-of-packed-member] 647 | namesize = encap_namemsg((struct namemsg *)ARM_NOWARN_ALIGN(&message->v6.message)); ../../src/compiler.h:58:39: note: in definition of macro 'ARM_NOWARN_ALIGN' 58 | #define ARM_NOWARN_ALIGN(x) ((void *)(x)) | ^ src/nameservice.c: In function 'olsr_parser': src/nameservice.c:696:54: warning: taking address of packed member of 'union olsr_message' may result in an unaligned pointer value [-Waddress-of-packed-member] 696 | namemessage = (struct namemsg *)ARM_NOWARN_ALIGN(&m->v4.message); ../../src/compiler.h:58:39: note: in definition of macro 'ARM_NOWARN_ALIGN' 58 | #define ARM_NOWARN_ALIGN(x) ((void *)(x)) | ^ src/nameservice.c:700:54: warning: taking address of packed member of 'union olsr_message' may result in an unaligned pointer value [-Waddress-of-packed-member] 700 | namemessage = (struct namemsg *)ARM_NOWARN_ALIGN(&m->v6.message); ../../src/compiler.h:58:39: note: in definition of macro 'ARM_NOWARN_ALIGN' 58 | #define ARM_NOWARN_ALIGN(x) ((void *)(x)) | ^ [CC] src/olsrd_plugin.c [LD] olsrd_nameservice.so.0.4 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/nameservice' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/p2pd' [CC] src/NetworkInterfaces.c [CC] src/Packet.c [CC] src/PacketHistory.c [CC] src/dllist.c [CC] src/olsrd_plugin.c [CC] src/p2pd.c [LD] olsrd_p2pd.so.0.1.0 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/p2pd' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pgraph' [CC] src/olsrd_pgraph.c [LD] olsrd_pgraph.so.1.1 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pgraph' make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud' make[6]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/nmealib' [CC] src/context.c [CC] src/generator.c [CC] src/gpgga.c [CC] src/gpgsa.c [CC] src/gpgsv.c [CC] src/gprmc.c [CC] src/gpvtg.c [CC] src/info.c [CC] src/nmath.c [CC] src/parser.c [CC] src/sentence.c [CC] src/util.c [CC] src/validate.c [AR] lib/libnmea.a [LD] lib/libnmea.so make[6]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/nmealib' make[6]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/wireformat' [CC] src/nodeIdConversion.c [CC] src/wireFormat.c src/wireFormat.c: In function 'getOlsrMessageOriginator': src/wireFormat.c:249:47: warning: taking address of packed member of 'struct olsrmsg' may result in an unaligned pointer value [-Waddress-of-packed-member] 249 | return (union olsr_ip_addr *) &olsrMessage->v4.originator; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/wireFormat.c:252:39: warning: taking address of packed member of 'struct olsrmsg6' may result in an unaligned pointer value [-Waddress-of-packed-member] 252 | return (union olsr_ip_addr *) &olsrMessage->v6.originator; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/wireFormat.c: In function 'getClusterLeaderOriginator': src/wireFormat.c:934:47: warning: taking address of packed member of 'struct _UplinkClusterLeader' may result in an unaligned pointer value [-Waddress-of-packed-member] 934 | return (union olsr_ip_addr *) &clusterLeaderMessage->leader.v4.originator; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/wireFormat.c:937:39: warning: taking address of packed member of 'struct _UplinkClusterLeader' may result in an unaligned pointer value [-Waddress-of-packed-member] 937 | return (union olsr_ip_addr *) &clusterLeaderMessage->leader.v6.originator; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/wireFormat.c: In function 'getClusterLeaderClusterLeader': src/wireFormat.c:953:47: warning: taking address of packed member of 'struct _UplinkClusterLeader' may result in an unaligned pointer value [-Waddress-of-packed-member] 953 | return (union olsr_ip_addr *) &clusterLeaderMessage->leader.v4.clusterLeader; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/wireFormat.c:956:39: warning: taking address of packed member of 'struct _UplinkClusterLeader' may result in an unaligned pointer value [-Waddress-of-packed-member] 956 | return (union olsr_ip_addr *) &clusterLeaderMessage->leader.v6.clusterLeader; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [LD] lib/libOlsrdPudWireFormat.so make[6]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud/wireformat' [CC] src/configTools.c [CC] src/configuration.c In file included from src/configuration.h:50, from src/configuration.c:46: src/gpsdclient.h:64:8: error: redefinition of 'struct fixsource_t' 64 | struct fixsource_t { | ^~~~~~~~~~~ In file included from src/gpsdclient.h:49: /builder/shared-workdir/build/sdk/staging_dir/target-arm_cortex-a9+neon_musl_eabi/usr/include/gps.h:2714:8: note: originally defined here 2714 | struct fixsource_t | ^~~~~~~~~~~ make[5]: *** [../../Makefile.inc:358: src/configuration.o] Error 1 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/lib/pud' make[4]: *** [Makefile:251: libs] Error 2 make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d' make[3]: *** [Makefile:316: /builder/shared-workdir/build/sdk/build_dir/target-arm_cortex-a9+neon_musl_eabi/olsrd-2022-03-18-1e771b4d/.built] Error 2 time: package/feeds/routing/olsrd/compile#49.95#12.77#67.41