{"action":"created","issue":{"url":"https://api.github.com/repos/EitriumTech/patchwork/issues/2","labels_url":"https://api.github.com/repos/EitriumTech/patchwork/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/EitriumTech/patchwork/issues/2/comments","events_url":"https://api.github.com/repos/EitriumTech/patchwork/issues/2/events","html_url":"https://github.com/EitriumTech/patchwork/issues/2","id":56024148,"number":2,"title":" install error on Mac OS X","user":{"login":"liyunsheng","id":9405946,"avatar_url":"https://avatars.githubusercontent.com/u/9405946?v=3","gravatar_id":"","url":"https://api.github.com/users/liyunsheng","html_url":"https://github.com/liyunsheng","followers_url":"https://api.github.com/users/liyunsheng/followers","following_url":"https://api.github.com/users/liyunsheng/following{/other_user}","gists_url":"https://api.github.com/users/liyunsheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liyunsheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyunsheng/subscriptions","organizations_url":"https://api.github.com/users/liyunsheng/orgs","repos_url":"https://api.github.com/users/liyunsheng/repos","events_url":"https://api.github.com/users/liyunsheng/events{/privacy}","received_events_url":"https://api.github.com/users/liyunsheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-30T11:43:24Z","updated_at":"2015-02-01T07:12:10Z","closed_at":null,"body":"```\r\n\r\n===Compiling PATCHWORK for your system===\r\nCompiling bsPatch...\r\nCatastrophic installation error making bspatch\r\nPATCHWORK WAS NOT INSTALLED CORRECTLY!!!\r\n\r\nPlease report this bug to titon1235@gmail.com with your error and system details\r\n/Users/liyunsheng/WorkSpace/Work/Freedom/open_ak_oa_com/node_modules/eitrium-patchwork/preinstall.js:12\r\n    throw err;\r\n          ^\r\nError: Command failed: /bin/sh -c make bspatch\r\nbspatch.c:39:21: error: unknown type name 'u_char'; did you mean 'char'?\r\nstatic off_t offtin(u_char *buf)\r\n                    ^~~~~~\r\n                    char\r\nbspatch.c:65:2: error: use of undeclared identifier 'u_char'\r\n        u_char header[32],buf[8];\r\n        ^\r\nbspatch.c:66:2: error: use of undeclared identifier 'u_char'\r\n        u_char *old, *new;\r\n        ^\r\nbspatch.c:66:10: error: use of undeclared identifier 'old'\r\n        u_char *old, *new;\r\n                ^\r\nbspatch.c:66:16: error: use of undeclared identifier 'new'\r\n        u_char *old, *new;\r\n                      ^\r\nbspatch.c:93:12: error: use of undeclared identifier 'header'\r\n        if (fread(header, 1, 32, f) < 32) {\r\n                  ^\r\nbspatch.c:100:13: error: use of undeclared identifier 'header'\r\n        if (memcmp(header, \"BSDIFF40\", 8) != 0)\r\n                   ^\r\nbspatch.c:104:19: error: use of undeclared identifier 'header'\r\n        bzctrllen=offtin(header+8);\r\n                         ^\r\nbspatch.c:105:19: error: use of undeclared identifier 'header'\r\n        bzdatalen=offtin(header+16);\r\n                         ^\r\nbspatch.c:106:17: error: use of undeclared identifier 'header'\r\n        newsize=offtin(header+24);\r\n                       ^\r\nbspatch.c:137:5: error: use of undeclared identifier 'old'\r\n                ((old=malloc(oldsize+1))==NULL) ||\r\n                  ^\r\nbspatch.c:139:12: error: use of undeclared identifier 'old'\r\n                (read(fd,old,oldsize)!=oldsize) ||\r\n                         ^\r\nbspatch.c:141:6: error: use of undeclared identifier 'new'\r\n        if((new=malloc(newsize+1))==NULL) err(1,NULL);\r\n            ^\r\nbspatch.c:147:43: error: use of undeclared identifier 'buf'\r\n                        lenread = BZ2_bzRead(&cbz2err, cpfbz2, buf, 8);\r\n                                                               ^\r\nbspatch.c:151:19: error: use of undeclared identifier 'buf'\r\n                        ctrl[i]=offtin(buf);\r\n                                       ^\r\nbspatch.c:159:42: error: use of undeclared identifier 'new'\r\n                lenread = BZ2_bzRead(&dbz2err, dpfbz2, new + newpos, ctrl[0]);\r\n                                                       ^\r\nbspatch.c:167:5: error: use of undeclared identifier 'new'\r\n                                new[newpos+i]+=old[oldpos+i];\r\n                                ^\r\nbspatch.c:167:20: error: use of undeclared identifier 'old'\r\n                                new[newpos+i]+=old[oldpos+i];\r\n                                               ^\r\nbspatch.c:178:42: error: use of undeclared identifier 'new'\r\n                lenread = BZ2_bzRead(&ebz2err, epfbz2, new + newpos, ctrl[1]);\r\n                                                       ^\r\nfatal error: too many errors emitted, stopping now [-ferror-limit=]\r\n20 errors generated.\r\nmake: *** [bspatch.o] Error 1\r\n\r\n    at ChildProcess.exithandler (child_process.js:715:12)\r\n    at ChildProcess.emit (events.js:101:17)\r\n    at maybeClose (child_process.js:979:16)\r\n    at Socket.<anonymous> (child_process.js:1147:11)\r\n    at Socket.emit (events.js:98:17)\r\n    at Pipe.close (net.js:456:12)\r\nnpm ERR! Darwin 14.1.0\r\nnpm ERR! argv \"node\" \"/usr/local/bin/npm\" \"i\"\r\nnpm ERR! node v1.0.4\r\nnpm ERR! npm  v2.3.0\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! eitrium-patchwork@0.0.7 install: `node preinstall.js`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the eitrium-patchwork@0.0.7 install script 'node preinstall.js'.\r\nnpm ERR! This is most likely a problem with the eitrium-patchwork package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node preinstall.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls eitrium-patchwork\r\nnpm ERR! There is likely additional logging output above.\r\n\r\n```\r\n\r\n```\r\ngcc -v\r\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\r\nApple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)\r\nTarget: x86_64-apple-darwin14.1.0\r\nThread model: posix\r\n```\r\n\r\n```\r\nmake -v\r\nGNU Make 3.81\r\nCopyright (C) 2006  Free Software Foundation, Inc.\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\r\nPARTICULAR PURPOSE.\r\n\r\nThis program built for i386-apple-darwin11.3.0\r\n```"},"comment":{"url":"https://api.github.com/repos/EitriumTech/patchwork/issues/comments/72354667","html_url":"https://github.com/EitriumTech/patchwork/issues/2#issuecomment-72354667","issue_url":"https://api.github.com/repos/EitriumTech/patchwork/issues/2","id":72354667,"user":{"login":"EitriumTech","id":6725341,"avatar_url":"https://avatars.githubusercontent.com/u/6725341?v=3","gravatar_id":"","url":"https://api.github.com/users/EitriumTech","html_url":"https://github.com/EitriumTech","followers_url":"https://api.github.com/users/EitriumTech/followers","following_url":"https://api.github.com/users/EitriumTech/following{/other_user}","gists_url":"https://api.github.com/users/EitriumTech/gists{/gist_id}","starred_url":"https://api.github.com/users/EitriumTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EitriumTech/subscriptions","organizations_url":"https://api.github.com/users/EitriumTech/orgs","repos_url":"https://api.github.com/users/EitriumTech/repos","events_url":"https://api.github.com/users/EitriumTech/events{/privacy}","received_events_url":"https://api.github.com/users/EitriumTech/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T07:12:10Z","updated_at":"2015-02-01T07:12:10Z","body":"Hi Li\r\nLooks like a problem with your clang compiler trying to produce an optimized bspatch.exe .It's a bit difficult for me to test for clang compatibility at the command line to dynamically modify compiler arguments, and I hadn't originally intended to support Mac as a build platform when I wrote Patchwork. To avoid breaking compatibility , I'll write a new make file targetted specifically for mac operating systems geared towards the lowest common denominator of compiler args. This means that you might have a slightly larger executable in the end than the other platforms.\r\n"}}