Giter Club home page Giter Club logo

node-unixlib's People

Contributors

ditesh avatar magne4000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-unixlib's Issues

Fails to build on OS X using node v0.8.9

The header 'security/pam_appl.h' can not be found using the v0.8.9 build of node. With v0.6.20 it works flawlessly.


npm http GET https://registry.npmjs.org/unixlib
npm http 200 https://registry.npmjs.org/unixlib
npm http GET https://registry.npmjs.org/unixlib/-/unixlib-0.1.3.tgz
npm http 200 https://registry.npmjs.org/unixlib/-/unixlib-0.1.3.tgz

[email protected] preinstall /usr/local/lib/node_modules/unixlib
node-waf configure && node-waf build

Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /usr/local/lib/node_modules
Checking for node prefix : ok /usr/local
Checking for header security/pam_appl.h : not found
/usr/local/lib/node_modules/unixlib/wscript:11: error: the configuration failed (see '/usr/local/lib/node_modules/unixlib/build/config.log')

[email protected] preuninstall /usr/local/lib/node_modules/unixlib
rm -r build/*

npm ERR! [email protected] preinstall: node-waf configure && node-waf build
npm ERR! sh "-c" "node-waf configure && node-waf build" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the unixlib package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure && node-waf build
npm ERR! You can get their info via:
npm ERR! npm owner ls unixlib
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "unixlib" "-g"
npm ERR! cwd /Users/eelco/Projects/webinos/workspace/webinos/bin
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.61
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/eelco/Projects/webinos/workspace/webinos/bin/npm-debug.log
npm ERR! not ok code 0

Fails to build

I am building your extension against latest Node from Git


'configure' finished successfully (0.081s)
Waf: Entering directory `/home/rush/Programowanie/jftp/node_modules/unixlib/build'
[1/2] cxx: unixlib.cc -> build/Release/unixlib_1.o
../unixlib.cc: In function ‘v8::Handle<v8::Value> MkstempAsync(const v8::Arguments&)’:                                                                                                                                           
../unixlib.cc:109:58: error: too few arguments to function ‘eio_req* eio_custom(void (*)(eio_req*), int, eio_cb, void*, eio_channel*)’
/usr/local/include/node/uv-private/eio.h:361:10: note: declared here
../unixlib.cc: In function ‘v8::Handle<v8::Value> FlockAsync(const v8::Arguments&)’:
../unixlib.cc:134:54: error: too few arguments to function ‘eio_req* eio_custom(void (*)(eio_req*), int, eio_cb, void*, eio_channel*)’
/usr/local/include/node/uv-private/eio.h:361:10: note: declared here
../unixlib.cc: In function ‘v8::Handle<v8::Value> PAMAuthAsync(const v8::Arguments&)’:
../unixlib.cc:162:58: error: too few arguments to function ‘eio_req* eio_custom(void (*)(eio_req*), int, eio_cb, void*, eio_channel*)’
/usr/local/include/node/uv-private/eio.h:361:10: note: declared here
Waf: Leaving directory `/home/rush/Programowanie/jftp/node_modules/unixlib/build'
Build failed:  -> task failed (err #1): 
        {task: cxx unixlib.cc -> unixlib_1.o}                                                                                                                                                                                    

There is also issue with 'node-pam'

Callback on pamauth() not invoked

I'm using your unixlib for pam authentication in a service communicating with clients over TCP. The important part of code is this:

// disable timeout so connection isn't dropped prior to authentication result is available
this.setTimeout( 0 );

console.log( "authenticating user %s using provided password", username );

var conn = this;

unix.pamauth( "system-auth", username, password, function( isAuthenticated )
{
    console.log( "authentication result is" );
    console.log( isAuthenticated );

    conn.end( isAuthenticated ? "OK\n" : "FAIL\n" );
} );

The conn is TCP stream clients are connected through. If I'm testing this service using valid credentials, it's echoing "OK". If I'm using wrong password, service is instantly returning either, but not echoing anything. In first case, the logs of my service include lines "authenticated result is" and "true", while there aren't any lines written on using wrong credentials.

Relying on this observation I consider callback not being invoked in case of wrong credentials at all. I've installed unixlib using

npm --global install unixlib

and it's loaded in code using

var unix = require( "/usr/lib/node_modules/unixlib" );

What's missing? Your C++-code seems to be invoking callback every time, though. OS is Ubuntu 12.04 LTS x64, node is 0.8.8 ...

segmentation fault on pam auth with node 0.6.0

I've updated to node 0.6.0, and the pamauth function gave me a segfault (with valid and unvalid credentials)

Edit: After trying to recompile, it fails due to function eio_custom which no need a void* as first parameter

npm fails to install

It tries to do things in "/home/ditesh"

Waf: Entering directory /home/ditesh/code/node-unixlib/build' Waf: Leaving directory/home/ditesh/code/node-unixlib/build'
Traceback (most recent call last):
File "/usr/bin/node-waf", line 18, in
Scripting.prepare(t, os.getcwd(), VERSION, wafdir)
File "/usr/share/nodejs/wafadmin/Scripting.py", line 145, in prepare
prepare_impl(t, cwd, ver, wafdir)
File "/usr/share/nodejs/wafadmin/Scripting.py", line 135, in prepare_impl
main()
File "/usr/share/nodejs/wafadmin/Scripting.py", line 188, in main
fun(ctx)
File "/usr/share/nodejs/wafadmin/Scripting.py", line 386, in build
return build_impl(bld)
File "/usr/share/nodejs/wafadmin/Scripting.py", line 405, in build_impl
bld.compile()
File "/usr/share/nodejs/wafadmin/Build.py", line 268, in compile
os.chdir(self.bldnode.abspath())
OSError: [Errno 2] No such file or directory: '/home/ditesh/code/node-unixlib/build'
npm ERR! install failed Error: [email protected] preinstall: node-waf configure && node-waf build
npm ERR! install failed sh failed with 1
npm ERR! install failed at ChildProcess. (/usr/share/npm/lib/utils/exec.js:25:18)
npm ERR! install failed at ChildProcess.emit (events.js:67:17)
npm ERR! install failed at ChildProcess.onexit (child_process.js:192:12)
npm ERR! Error: [email protected] preinstall: node-waf configure && node-waf build
npm ERR! sh failed with 1
npm ERR! at ChildProcess. (/usr/share/npm/lib/utils/exec.js:25:18)
npm ERR! at ChildProcess.emit (events.js:67:17)
npm ERR! at ChildProcess.onexit (child_process.js:192:12)
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the unixlib package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure && node-waf build
npm ERR! You can get their info via:
npm ERR! npm owner ls unixlib
npm ERR! There may be additional logging output above.
npm not ok

Fails to build.

Node v0.4.12
NPM 1.0.103
unixlib 0.1.1

Build failed: -> task failed (err #1):
{task: cxx unixlib.cc -> unixlib_1.o}
npm ERR! error installing [email protected] Error: [email protected] preinstall: node-waf configure && node-waf build
npm ERR! error installing [email protected] sh "-c" "node-waf configure && node-waf build" failed with 1
npm ERR! error installing [email protected] at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:67:17)
npm ERR! error installing [email protected] at ChildProcess.onexit (child_process.js:192:12)

[email protected] preuninstall /home/staylor/Documents/Quicktech/EmailService/node_modules/unixlib
rm -rf build/*

npm ERR! [email protected] preinstall: node-waf configure && node-waf build
npm ERR! sh "-c" "node-waf configure && node-waf build" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the unixlib package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure && node-waf build
npm ERR! You can get their info via:
npm ERR! npm owner ls unixlib
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.38-10-server
npm ERR! command "node" "/usr/local/bin/npm" "install" "[email protected]"
npm ERR! cwd /home/staylor/Documents/Quicktech/EmailService
npm ERR! node -v v0.4.12
npm ERR! npm -v 1.0.103
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/staylor/Documents/Quicktech/EmailService/npm-debug.log
npm not ok

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.