{"action":"created","issue":{"url":"https://api.github.com/repos/Optware/Optware-ng/issues/119","repository_url":"https://api.github.com/repos/Optware/Optware-ng","labels_url":"https://api.github.com/repos/Optware/Optware-ng/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/Optware/Optware-ng/issues/119/comments","events_url":"https://api.github.com/repos/Optware/Optware-ng/issues/119/events","html_url":"https://github.com/Optware/Optware-ng/issues/119","id":154889353,"number":119,"title":"Request: OpenZWave","user":{"login":"srirams","id":638940,"avatar_url":"https://avatars.githubusercontent.com/u/638940?v=3","gravatar_id":"","url":"https://api.github.com/users/srirams","html_url":"https://github.com/srirams","followers_url":"https://api.github.com/users/srirams/followers","following_url":"https://api.github.com/users/srirams/following{/other_user}","gists_url":"https://api.github.com/users/srirams/gists{/gist_id}","starred_url":"https://api.github.com/users/srirams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srirams/subscriptions","organizations_url":"https://api.github.com/users/srirams/orgs","repos_url":"https://api.github.com/users/srirams/repos","events_url":"https://api.github.com/users/srirams/events{/privacy}","received_events_url":"https://api.github.com/users/srirams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-15T04:16:30Z","updated_at":"2016-05-17T16:08:24Z","closed_at":null,"body":"OpenZWave is a library for controlling z-wave home automation devices, which I think will be perfect to run on routers.\r\n\r\nLink: https://github.com/OpenZWave/open-zwave\r\n"},"comment":{"url":"https://api.github.com/repos/Optware/Optware-ng/issues/comments/219768099","html_url":"https://github.com/Optware/Optware-ng/issues/119#issuecomment-219768099","issue_url":"https://api.github.com/repos/Optware/Optware-ng/issues/119","id":219768099,"user":{"login":"alllexx88","id":6587516,"avatar_url":"https://avatars.githubusercontent.com/u/6587516?v=3","gravatar_id":"","url":"https://api.github.com/users/alllexx88","html_url":"https://github.com/alllexx88","followers_url":"https://api.github.com/users/alllexx88/followers","following_url":"https://api.github.com/users/alllexx88/following{/other_user}","gists_url":"https://api.github.com/users/alllexx88/gists{/gist_id}","starred_url":"https://api.github.com/users/alllexx88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alllexx88/subscriptions","organizations_url":"https://api.github.com/users/alllexx88/orgs","repos_url":"https://api.github.com/users/alllexx88/repos","events_url":"https://api.github.com/users/alllexx88/events{/privacy}","received_events_url":"https://api.github.com/users/alllexx88/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T16:08:24Z","updated_at":"2016-05-17T16:08:24Z","body":"Looks like uClibc-ng bug. `atexit` isn't exported by uClibc-ng, but rather has 'attribute_hidden'. As a workaround:\r\n\r\n```\r\nroot@unknown:/tmp/home/root# cat hello.cpp\r\n#include <stdio.h>\r\n#include <stdlib.h>\r\n#include <cxxabi.h>\r\n\r\nvoid blah(void*)\r\n{\r\nprintf(\"Hello world 2\\n\");\r\n}\r\n\r\nint main(int argc, char* argv[])\r\n{\r\n    printf(\"Hello world\\n\");\r\n    __cxxabiv1::__cxa_atexit(blah, NULL, NULL);\r\n    exit(0);\r\n}\r\nroot@unknown:/tmp/home/root# g++ hello.cpp -o hello\r\nroot@unknown:/tmp/home/root# ./hello\r\nHello world\r\nHello world 2\r\n```\r\n\r\nI should probably report this."}}