Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.3.1 fails to build on Linux with node 0.10 #33

Open
thaumant opened this issue Nov 16, 2015 · 2 comments
Open

Version 0.3.1 fails to build on Linux with node 0.10 #33

thaumant opened this issue Nov 16, 2015 · 2 comments

Comments

@thaumant
Copy link

$ uname -srp
Linux 2.6.32-042stab104.1 x86_64
$ node -v
v0.10.36
$ npm i [email protected]
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm http GET https://registry.npmjs.org/bunyan-syslog/0.3.1
npm http 200 https://registry.npmjs.org/bunyan-syslog/0.3.1
npm http GET https://registry.npmjs.org/bunyan-syslog/-/bunyan-syslog-0.3.1.tgz
npm http 200 https://registry.npmjs.org/bunyan-syslog/-/bunyan-syslog-0.3.1.tgz

> [email protected] install /home/thaumant/test/node_modules/bunyan-syslog
> node-gyp rebuild

make: Entering directory `/home/thaumant/test/node_modules/bunyan-syslog/build'
  CXX(target) Release/obj.target/syslog/src/syslog.o
In file included from ../src/syslog.cc:7:0:
../../nan/nan.h:328:47: error: 'REPLACE_INVALID_UTF8' is not a member of 'v8::String'
   static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
                                               ^
make: *** [Release/obj.target/syslog/src/syslog.o] Error 1
make: Leaving directory `/home/thaumant/test/node_modules/bunyan-syslog/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-042stab104.1
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/thaumant/test/node_modules/bunyan-syslog
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0

Version 0.3.0 builds successfully.

@thaumant thaumant changed the title Version 0.3.1 fails to build on node 0.10 Version 0.3.1 fails to build on Linux with node 0.10 Nov 16, 2015
@pfmooney
Copy link
Contributor

It seems to be installing fine for me:

[pmooney@testhost test]$ node --version
v0.10.36
[pmooney@testhost test]$ npm --version
1.4.28
[pmooney@testhost test]$ npm i [email protected]
/
> [email protected] install /home/pmooney/git/test/node_modules/bunyan-syslog
> node-gyp rebuild

make: Entering directory '/home/pmooney/git/test/node_modules/bunyan-syslog/build'
  CXX(target) Release/obj.target/syslog/src/syslog.o
  SOLINK_MODULE(target) Release/obj.target/syslog.node
  SOLINK_MODULE(target) Release/obj.target/syslog.node: Finished
  COPY Release/syslog.node
make: Leaving directory '/home/pmooney/git/test/node_modules/bunyan-syslog/build'
[email protected] node_modules/bunyan-syslog
├── [email protected]
└── [email protected]

Is the result the same if you purge the node_modules directory and retry the install?

@ziir
Copy link

ziir commented Dec 19, 2015

I'm having the same issue on a regular basis on 0.3.0 and 0.3.1, working around it by :

  • ensuring npm is at latest-2 tag while installing / rebuilding
    (Though it's probably more linked to the node-gyp version ?)
npm install -g npm@latest-2
npm rebuild bunyan-syslog

Thanks for the work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants