Code Monkey home page Code Monkey logo

node-packet-socket's People

Contributors

piskorzj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-packet-socket's Issues

Doesn't build on Ubuntu 16.04

I tried npm install-test as you suggested in #1 but it fails. Apparently you must have cpputest installed. I installed that using apt-get install cpputest which also installs libcpputest-dev for development.

This was not sufficient either because Ubuntu ships libcpputest-dev as a dynamic binding library or something? Do you have to build a specialized version of libCppUTest.a to make this work? The error I got is shown in the sequence below:

$ npm install-test

> [email protected] install /home/alan/node-packet-socket
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/alan/node-packet-socket/build'
  CXX(target) Release/obj.target/packet_socket_addon/src/wrapper.o
  CXX(target) Release/obj.target/packet_socket_addon/src/socket.o
  CXX(target) Release/obj.target/packet_socket_addon/src/poller.o
  SOLINK_MODULE(target) Release/obj.target/packet_socket_addon.node
  COPY Release/packet_socket_addon.node
  CXX(target) Release/obj.target/test_poller/src/poller.o
  CXX(target) Release/obj.target/test_poller/cc_tests/poller.o
  SOLINK_MODULE(target) Release/obj.target/test_poller.node
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libCppUTest.a(lib_libCppUTest_a-CommandLineTestRunner.o): relocation R_X86_64_32S against `_ZTV21CommandLineTestRunner' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libCppUTest.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
test_poller.target.mk:126: recipe for target 'Release/obj.target/test_poller.node' failed
make: *** [Release/obj.target/test_poller.node] Error 1
make: Leaving directory '/home/alan/node-packet-socket/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/alan/.nvm/versions/node/v8.1.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:197:12)
gyp ERR! System Linux 4.4.0-79-generic
gyp ERR! command "/home/alan/.nvm/versions/node/v8.1.0/bin/node" "/home/alan/.nvm/versions/node/v8.1.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/alan/node-packet-socket
gyp ERR! node -v v8.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/alan/.npm/_logs/2017-06-08T22_09_59_260Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.