{"action":"created","issue":{"url":"https://api.github.com/repos/OLSR/olsrd/issues/6","repository_url":"https://api.github.com/repos/OLSR/olsrd","labels_url":"https://api.github.com/repos/OLSR/olsrd/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/OLSR/olsrd/issues/6/comments","events_url":"https://api.github.com/repos/OLSR/olsrd/issues/6/events","html_url":"https://github.com/OLSR/olsrd/issues/6","id":185495271,"number":6,"title":"olsr 0.9.0.3 doesn't build with the musl C library","user":{"login":"tpetazzoni","id":1089203,"avatar_url":"https://avatars.githubusercontent.com/u/1089203?v=3","gravatar_id":"","url":"https://api.github.com/users/tpetazzoni","html_url":"https://github.com/tpetazzoni","followers_url":"https://api.github.com/users/tpetazzoni/followers","following_url":"https://api.github.com/users/tpetazzoni/following{/other_user}","gists_url":"https://api.github.com/users/tpetazzoni/gists{/gist_id}","starred_url":"https://api.github.com/users/tpetazzoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpetazzoni/subscriptions","organizations_url":"https://api.github.com/users/tpetazzoni/orgs","repos_url":"https://api.github.com/users/tpetazzoni/repos","events_url":"https://api.github.com/users/tpetazzoni/events{/privacy}","received_events_url":"https://api.github.com/users/tpetazzoni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-26T20:02:13Z","updated_at":"2016-10-26T21:18:09Z","closed_at":null,"body":"As explained in the title, olsr in its version 0.9.0.3 doesn't build with the musl C library, see:\r\n\r\n```\r\n[CC] src/linux/kernel_tunnel.c\r\nIn file included from src/kernel_tunnel.h:11:0,\r\n                 from src/linux/kernel_tunnel.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if.h:79:2: error: expected identifier before numeric constant\r\n  IFF_UP    = 1<<0,  /* sysfs */\r\n  ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:5:0,\r\n                 from src/linux/kernel_tunnel.c:60:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if.h:189:8: error: redefinition of ‘struct ifmap’\r\n struct ifmap {\r\n        ^\r\nIn file included from src/kernel_tunnel.h:11:0,\r\n                 from src/linux/kernel_tunnel.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/if.h:64:8: note: originally defined here\r\n struct ifmap {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:5:0,\r\n                 from src/linux/kernel_tunnel.c:60:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if.h:226:8: error: redefinition of ‘struct ifreq’\r\n struct ifreq {\r\n        ^\r\nIn file included from src/kernel_tunnel.h:11:0,\r\n                 from src/linux/kernel_tunnel.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/if.h:76:8: note: originally defined here\r\n struct ifreq {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:5:0,\r\n                 from src/linux/kernel_tunnel.c:60:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if.h:278:8: error: redefinition of ‘struct ifconf’\r\n struct ifconf  {\r\n        ^\r\nIn file included from src/kernel_tunnel.h:11:0,\r\n                 from src/linux/kernel_tunnel.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/if.h:116:8: note: originally defined here\r\n struct ifconf {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:7:0,\r\n                 from src/linux/kernel_tunnel.c:60:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/in6.h:32:8: error: redefinition of ‘struct in6_addr’\r\n struct in6_addr {\r\n        ^\r\nIn file included from src/defs.h:49:0,\r\n                 from src/kernel_tunnel.h:18,\r\n                 from src/linux/kernel_tunnel.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:23:8: note: originally defined here\r\n struct in6_addr {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:7:0,\r\n                 from src/linux/kernel_tunnel.c:60:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/in6.h:49:8: error: redefinition of ‘struct sockaddr_in6’\r\n struct sockaddr_in6 {\r\n        ^\r\nIn file included from src/defs.h:49:0,\r\n                 from src/kernel_tunnel.h:18,\r\n                 from src/linux/kernel_tunnel.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:34:8: note: originally defined here\r\n struct sockaddr_in6 {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:7:0,\r\n                 from src/linux/kernel_tunnel.c:60:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/in6.h:59:8: error: redefinition of ‘struct ipv6_mreq’\r\n struct ipv6_mreq {\r\n        ^\r\nIn file included from src/defs.h:49:0,\r\n                 from src/kernel_tunnel.h:18,\r\n                 from src/linux/kernel_tunnel.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:42:8: note: originally defined here\r\n struct ipv6_mreq {\r\n        ^\r\nMakefile.inc:268: recipe for target 'src/linux/kernel_tunnel.o' failed\r\nmake[2]: *** [src/linux/kernel_tunnel.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\nIn file included from src/routing_table.h:49:0,\r\n                 from src/kernel_routes.h:46,\r\n                 from src/linux/kernel_routes_nl.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if.h:79:2: error: expected identifier before numeric constant\r\n  IFF_UP    = 1<<0,  /* sysfs */\r\n  ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:5:0,\r\n                 from src/linux/kernel_routes_nl.c:59:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if.h:189:8: error: redefinition of ‘struct ifmap’\r\n struct ifmap {\r\n        ^\r\nIn file included from src/routing_table.h:49:0,\r\n                 from src/kernel_routes.h:46,\r\n                 from src/linux/kernel_routes_nl.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/if.h:64:8: note: originally defined here\r\n struct ifmap {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:5:0,\r\n                 from src/linux/kernel_routes_nl.c:59:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if.h:226:8: error: redefinition of ‘struct ifreq’\r\n struct ifreq {\r\n        ^\r\nIn file included from src/routing_table.h:49:0,\r\n                 from src/kernel_routes.h:46,\r\n                 from src/linux/kernel_routes_nl.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/if.h:76:8: note: originally defined here\r\n struct ifreq {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:5:0,\r\n                 from src/linux/kernel_routes_nl.c:59:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if.h:278:8: error: redefinition of ‘struct ifconf’\r\n struct ifconf  {\r\n        ^\r\nIn file included from src/routing_table.h:49:0,\r\n                 from src/kernel_routes.h:46,\r\n                 from src/linux/kernel_routes_nl.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/net/if.h:116:8: note: originally defined here\r\n struct ifconf {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:7:0,\r\n                 from src/linux/kernel_routes_nl.c:59:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/in6.h:32:8: error: redefinition of ‘struct in6_addr’\r\n struct in6_addr {\r\n        ^\r\nIn file included from src/defs.h:49:0,\r\n                 from src/kernel_routes.h:45,\r\n                 from src/linux/kernel_routes_nl.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:23:8: note: originally defined here\r\n struct in6_addr {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:7:0,\r\n                 from src/linux/kernel_routes_nl.c:59:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/in6.h:49:8: error: redefinition of ‘struct sockaddr_in6’\r\n struct sockaddr_in6 {\r\n        ^\r\nIn file included from src/defs.h:49:0,\r\n                 from src/kernel_routes.h:45,\r\n                 from src/linux/kernel_routes_nl.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:34:8: note: originally defined here\r\n struct sockaddr_in6 {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:7:0,\r\n                 from src/linux/kernel_routes_nl.c:59:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/in6.h:59:8: error: redefinition of ‘struct ipv6_mreq’\r\n struct ipv6_mreq {\r\n        ^\r\nIn file included from src/defs.h:49:0,\r\n                 from src/kernel_routes.h:45,\r\n                 from src/linux/kernel_routes_nl.c:44:\r\n/home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:42:8: note: originally defined here\r\n struct ipv6_mreq {\r\n        ^\r\nIn file included from /home/thomas/projets/buildroot/output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/linux/if_tunnel.h:5:0,\r\n                 from src/linux/kernel_routes_nl.c:59:\r\nsrc/linux/kernel_routes_nl.c: In function ‘netlink_process_link’:\r\nsrc/linux/kernel_routes_nl.c:124:42: error: ‘IFF_UP’ undeclared (first use in this function)\r\n   if (iface == NULL && (ifi->ifi_flags & IFF_UP) == IFF_UP) {\r\n                                          ^\r\nsrc/linux/kernel_routes_nl.c:124:42: note: each undeclared identifier is reported only once for each function it appears in\r\nsrc/linux/kernel_routes_nl.c: In function ‘rtnetlink_read’:\r\nsrc/linux/kernel_routes_nl.c:158:5: warning: initialization makes integer from pointer without a cast [-Wint-conversion]\r\n     NULL,\r\n     ^\r\nsrc/linux/kernel_routes_nl.c:158:5: note: (near initialization for ‘msg.__pad1’)\r\nMakefile.inc:268: recipe for target 'src/linux/kernel_routes_nl.o' failed\r\nmake[2]: *** [src/linux/kernel_routes_nl.o] Error 1\r\n```"},"comment":{"url":"https://api.github.com/repos/OLSR/olsrd/issues/comments/256479929","html_url":"https://github.com/OLSR/olsrd/issues/6#issuecomment-256479929","issue_url":"https://api.github.com/repos/OLSR/olsrd/issues/6","id":256479929,"user":{"login":"fhuberts","id":635705,"avatar_url":"https://avatars.githubusercontent.com/u/635705?v=3","gravatar_id":"","url":"https://api.github.com/users/fhuberts","html_url":"https://github.com/fhuberts","followers_url":"https://api.github.com/users/fhuberts/followers","following_url":"https://api.github.com/users/fhuberts/following{/other_user}","gists_url":"https://api.github.com/users/fhuberts/gists{/gist_id}","starred_url":"https://api.github.com/users/fhuberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fhuberts/subscriptions","organizations_url":"https://api.github.com/users/fhuberts/orgs","repos_url":"https://api.github.com/users/fhuberts/repos","events_url":"https://api.github.com/users/fhuberts/events{/privacy}","received_events_url":"https://api.github.com/users/fhuberts/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T21:18:09Z","updated_at":"2016-10-26T21:18:09Z","body":"that is strange since I know Simon Wunderlich was able to compile it some time ago.\r\nAlso, the errors indicate that your musl copy might not be quite healthy.\r\n\r\nFor now I don't see a problem with olsrd, unless you can point it out a bit more clearly than a long list of include file errors from files outside of olsrd."}}
{"actor":{"display_login":"fhuberts"}}