Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1341138

Summary: rh-nodejs4 for rhel6 need additional dependencies
Product: Red Hat Software Collections Reporter: Zuzana Svetlikova <zsvetlik>
Component: nodejsAssignee: Zuzana Svetlikova <zsvetlik>
Status: CLOSED ERRATA QA Contact: Miroslav Hradílek <mhradile>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rh-nodejs4CC: jorton, kanderso, mhradile
Target Milestone: alpha   
Target Release: 2.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-21 07:27:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zuzana Svetlikova 2016-05-31 10:55:07 UTC
The new rh-nodejs4 collection for rhel 6.6 now depends on devtoolset-3-gcc and devtoolset-3-gcc-g++ since gcc and g++ provided from repositories are too old to build nodejs.

Provided version of gcc and g++: 4.4.7
Needed version of gcc and g++: >= 4.8 (https://github.com/nodejs/node/blob/v4.4.2/BUILDING.md)

Comment 1 Zuzana Svetlikova 2016-06-09 11:24:27 UTC
Node.js and v8 shipped in new rh-nodejs4 collection use many C++11 features, not available in g++ currently present in official repositories. We decided to use devtoolset-4-gcc and devtoolset-4-gcc-c++, which are needed by Node.js to build successfully and by node-gyp during runtime to build native modules.

Error output using g++ shipped in RHEL 6.6
[root@5e3f55c2089b f]# npm i contextify
-
> contextify.15 install /root/f/node_modules/contextify
> node-gyp rebuild

make: Entering directory `/root/f/node_modules/contextify/build'
  CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
../node_modules/nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /root/.node-gyp/4.4.2/include/node/node.h:42,
                 from ../src/contextify.cc:1:
/root/.node-gyp/4.4.2/include/node/v8.h:336: error: expected unqualified-id before ‘using’
...

Comment 5 errata-xmlrpc 2016-06-21 07:27:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2016:1263