{"action":"created","issue":{"url":"https://api.github.com/repos/jarun/nnn/issues/45","repository_url":"https://api.github.com/repos/jarun/nnn","labels_url":"https://api.github.com/repos/jarun/nnn/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/jarun/nnn/issues/45/comments","events_url":"https://api.github.com/repos/jarun/nnn/issues/45/events","html_url":"https://github.com/jarun/nnn/issues/45","id":263017054,"number":45,"title":"nnn-1.5: error when compiling to musl-based systems","user":{"login":"maxice8","id":30738253,"avatar_url":"https://avatars3.githubusercontent.com/u/30738253?v=4","gravatar_id":"","url":"https://api.github.com/users/maxice8","html_url":"https://github.com/maxice8","followers_url":"https://api.github.com/users/maxice8/followers","following_url":"https://api.github.com/users/maxice8/following{/other_user}","gists_url":"https://api.github.com/users/maxice8/gists{/gist_id}","starred_url":"https://api.github.com/users/maxice8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxice8/subscriptions","organizations_url":"https://api.github.com/users/maxice8/orgs","repos_url":"https://api.github.com/users/maxice8/repos","events_url":"https://api.github.com/users/maxice8/events{/privacy}","received_events_url":"https://api.github.com/users/maxice8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-05T06:30:48Z","updated_at":"2017-10-05T06:41:32Z","closed_at":null,"author_association":"NONE","body":"Trying to compile and cross-compile musl-based systems causes the following error\r\n\r\n```\r\n==> nnn_x86_64-musl_do_build.log\r\nx86_64-linux-musl-gcc -specs=/void-packages/common/environment/configure/gccspecs/hardened-cc1  -fstack-protector-strong -D_FORTIFY_SOURCE=2  -O2 -pipe -mtune=generic   -I/usr/x86_64-linux-musl/usr/include -o nnn nnn.c -specs=/void-packages/common/environment/configure/gccspecs/hardened-ld -Wl,-z,relro -Wl,-z,now -Wl,--as-needed     -L/usr/x86_64-linux-musl/usr/lib -lreadline -lncursesw\r\nnnn.c:203:2: error: unknown type name ‘ushort’\r\n  ushort filtermode : 1;  /* Set to enter filter mode */\r\n  ^~~~~~\r\nnnn.c:204:2: error: unknown type name ‘ushort’\r\n  ushort mtimeorder : 1;  /* Set to sort by time modified */\r\n  ^~~~~~\r\nnnn.c:205:2: error: unknown type name ‘ushort’\r\n  ushort sizeorder  : 1;  /* Set to sort by file size */\r\n  ^~~~~~\r\nnnn.c:206:2: error: unknown type name ‘ushort’\r\n  ushort blkorder   : 1;  /* Set to sort by blocks used (disk usage) */\r\n  ^~~~~~\r\nnnn.c:207:2: error: unknown type name ‘ushort’\r\n  ushort showhidden : 1;  /* Set to show hidden files */\r\n  ^~~~~~\r\nnnn.c:208:2: error: unknown type name ‘ushort’\r\n  ushort showdetail : 1;  /* Clear to show fewer file info */\r\n  ^~~~~~\r\nnnn.c:209:2: error: unknown type name ‘ushort’\r\n  ushort showcolor  : 1;  /* Set to show dirs in blue */\r\n  ^~~~~~\r\nnnn.c:210:2: error: unknown type name ‘ushort’\r\n  ushort dircolor   : 1;  /* Current status of dir color */\r\n  ^~~~~~\r\nnnn.c:211:2: error: unknown type name ‘ushort’\r\n  ushort metaviewer : 1;  /* Index of metadata viewer in utils[] */\r\n  ^~~~~~\r\nnnn.c:212:2: error: unknown type name ‘ushort’\r\n  ushort color      : 3;  /* Color code for directories */\r\n  ^~~~~~\r\nmake: *** [Makefile:26: nnn] Error 1\r\n```\r\n\r\nadding `#include <sys/types.h>` to nnn.c seems to fix the problem with ushort and compilation ( and cross-compilation ) works correctly"},"comment":{"url":"https://api.github.com/repos/jarun/nnn/issues/comments/334373192","html_url":"https://github.com/jarun/nnn/issues/45#issuecomment-334373192","issue_url":"https://api.github.com/repos/jarun/nnn/issues/45","id":334373192,"user":{"login":"jarun","id":5959286,"avatar_url":"https://avatars3.githubusercontent.com/u/5959286?v=4","gravatar_id":"","url":"https://api.github.com/users/jarun","html_url":"https://github.com/jarun","followers_url":"https://api.github.com/users/jarun/followers","following_url":"https://api.github.com/users/jarun/following{/other_user}","gists_url":"https://api.github.com/users/jarun/gists{/gist_id}","starred_url":"https://api.github.com/users/jarun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarun/subscriptions","organizations_url":"https://api.github.com/users/jarun/orgs","repos_url":"https://api.github.com/users/jarun/repos","events_url":"https://api.github.com/users/jarun/events{/privacy}","received_events_url":"https://api.github.com/users/jarun/received_events","type":"User","site_admin":false},"created_at":"2017-10-05T06:41:32Z","updated_at":"2017-10-05T06:41:32Z","author_association":"OWNER","body":"Please raise the PR.\r\n\r\nAlso, are you stuck on a release because of this? I that case I can do a minor release for you this afternoon. Otherwise, it will be in master till the next release.\r\n\r\nThanks for reporting it!"}}
{"actor":{"display_login":"jarun"}}