{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/3349","labels_url":"https://api.github.com/repos/nodejs/node/issues/3349/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/3349/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/3349/events","html_url":"https://github.com/nodejs/node/issues/3349","id":111208657,"number":3349,"title":"Binaries for sunos do not work on Solaris 11.2 - 'GLIBCXX_3.4.20' not found","user":{"login":"GeorgeBailey","id":708850,"avatar_url":"https://avatars.githubusercontent.com/u/708850?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeBailey","html_url":"https://github.com/GeorgeBailey","followers_url":"https://api.github.com/users/GeorgeBailey/followers","following_url":"https://api.github.com/users/GeorgeBailey/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeBailey/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeBailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeBailey/subscriptions","organizations_url":"https://api.github.com/users/GeorgeBailey/orgs","repos_url":"https://api.github.com/users/GeorgeBailey/repos","events_url":"https://api.github.com/users/GeorgeBailey/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeBailey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/build","name":"build","color":"eb6420"},{"url":"https://api.github.com/repos/nodejs/node/labels/lts-watch-v4.x","name":"lts-watch-v4.x","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-13T15:44:25Z","updated_at":"2015-10-14T17:13:40Z","closed_at":null,"body":"We're increasing our use of Solaris 11.2 X86. The only snag right now is staying compatible with the latest Node.JS releases.\r\n\r\n    wget http://nodejs.org/dist/v4.2.0/node-v4.2.0-sunos-x64.tar.gz\r\n    tar xoZf node-v4.2.0-sunos-x64.tar.gz\r\n    node-v4.2.0-sunos-x64/bin/node\r\n\r\nI get this for both x86 and x64 binaries.\r\n\r\n    ld.so.1: node: fatal: libstdc++.so.6: version 'GLIBCXX_3.4.20' not found (required by file node-v4.2.0-sunos-x64/bin/node)\r\n    ld.so.1: node: fatal: libstdc++.so.6: open failed: No such file or directory\r\n    Killed\r\n    \r\nI tried building v4.2.0 from src\r\n\r\n    wget http://nodejs.org/dist/v4.2.0/node-v4.2.0.tar.gz\r\n    tar xoZf node-v4.2.0.tar.gz\r\n    cd node-v4.2.0\r\n    export CC=/usr/bin/gcc\r\n    export PATH=$PATH:/usr/gnu/bin\r\n    ./configure --dest-cpu=x64 --dest-os=solaris --prefix=`pwd`\r\n    gmake\r\n\r\nHowever, this failed rather early. I have included [the full output](https://drive.google.com/file/d/0BwwDqVDee2LXS3FzMWpQcmtYaDg/view?usp=sharing) for your reference. I don't understand it very well.\r\n\r\nEarlier this year, I was trying to get v0.12 to work, and opened [an issue on the old repo](https://github.com/nodejs/node-v0.x-archive/issues/9282). v0.12 would launch, but there was an error in starting the http listener.\r\n\r\ncgalibern had created a fork, which - with certain command line options - resolved the issue for the most part. (I was still getting `ECONNREFUSED` when making connection to a `localhost` TCP server)\r\n\r\n    mkdir /gb/opt/github-cgalibern\r\n    cd /gb/opt/github-cgalibern\r\n    git clone https://github.com/cgalibern/node.git\r\n    cd node\r\n    export CC=/usr/bin/gcc\r\n    export PATH=$PATH:/usr/gnu/bin\r\n    ./configure --dest-cpu=x64 --dest-os=solaris --prefix=`pwd` --without-mdb\r\n    gmake\r\n    \r\n@cgalibern, It's been awhile, so can you confirm whether this is still based on one of the v0.12.x versions - which one?\r\n\r\nThe option  ` --without-mdb` was necessary to build cgalibern's fork. However, v4.2.0 does not have that option. I wonder if this is contributing to my inability to build from src.\r\n\r\nAnyway, if we can knock out these incompatibilities that would be great. Back when Solaris Express was around, I was able to build and run Node.JS, but newer versions of Node.JS broke compatibility with Oracle Solaris. I assume they still work for Illumos, SmartOS, etc. However, for business reasons we'll most likely stay with Oracle Solaris."},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/148122438","html_url":"https://github.com/nodejs/node/issues/3349#issuecomment-148122438","issue_url":"https://api.github.com/repos/nodejs/node/issues/3349","id":148122438,"user":{"login":"alexijs","id":15113397,"avatar_url":"https://avatars.githubusercontent.com/u/15113397?v=3","gravatar_id":"","url":"https://api.github.com/users/alexijs","html_url":"https://github.com/alexijs","followers_url":"https://api.github.com/users/alexijs/followers","following_url":"https://api.github.com/users/alexijs/following{/other_user}","gists_url":"https://api.github.com/users/alexijs/gists{/gist_id}","starred_url":"https://api.github.com/users/alexijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexijs/subscriptions","organizations_url":"https://api.github.com/users/alexijs/orgs","repos_url":"https://api.github.com/users/alexijs/repos","events_url":"https://api.github.com/users/alexijs/events{/privacy}","received_events_url":"https://api.github.com/users/alexijs/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T17:13:40Z","updated_at":"2015-10-14T17:13:40Z","body":"I linked /usr/bin/gcc to /usr/bin/cc and it got compiled further.\r\nHowever, now its a different error.\r\n\r\n<img width=\"1021\" alt=\"screen shot 2015-10-14 at 1 12 17 pm\" src=\"https://cloud.githubusercontent.com/assets/15113397/10491592/61413432-7275-11e5-9357-1da342003923.png\">\r\n"}}