waveto/node-compress

Build failed

Opened this issue · 6 comments

../src/zlib.h:90:52: error: ‘class node::Buffer’ has no member named ‘data’
../src/zlib.h:90:52: error: ‘class node::Buffer’ has no member named ‘length’
/usr/local/include/node/ev/ev.h: At global scope:
/usr/local/include/node/ev/ev.h:565:1: warning: ‘ev_tstamp ev_now()’ defined but not used
/usr/local/include/node/ev/ev.h:574:1: warning: ‘int ev_is_default_loop()’ defined but not used
/usr/local/include/node/ev/ev.h:810:20: warning: ‘void ev_loop(int)’ defined but not used
/usr/local/include/node/ev/ev.h:811:20: warning: ‘void ev_unloop(int)’ defined but not used
/usr/local/include/node/ev/ev.h:812:20: warning: ‘void ev_default_destroy()’ defined but not used
/usr/local/include/node/ev/ev.h:813:20: warning: ‘void ev_default_fork()’ defined but not used
/usr/local/include/node/ev/ev.h:815:30: warning: ‘unsigned int ev_loop_count()’ defined but not used
/usr/local/include/node/ev/ev.h:816:30: warning: ‘unsigned int ev_loop_depth()’ defined but not used
/usr/local/include/node/ev/ev.h:817:30: warning: ‘void ev_loop_verify()’ defined but not used
Waf: Leaving directory `/home/hynese/backopt/node-compress/build'
Build failed: -> task failed (err #1):
{task: cxx compress.cc -> compress_1.o}

Can someone please let me know what's going on here?

I'm using node v0.5.0-pre

Tried on node v0.4.8 and it also failed.

On Ubuntu 11.04 32-bit

Actually, it's working on v0.4.8 - I just had to delete the node-compress directory, download again and reinstall.

I'm also not able to install compress on osx Lion/Node v0.5.3 which is causing issues with the 'gzippo' library.

Here's the stack trace:
http://pastebin.com/HB1ct6wY

May be related to this change in node v0.5.x:
nodejs/node-v0.x-archive@4ef8f06#src/node_events.h

Getting the same error as bdicaskon.

'configure' finished successfully (0.536s) Waf: Entering directory /Users/JD/Desktop/Friendly-Resume/nomoco-website/node_modules/gzippo/node_modules/compress/build' [1/2] cxx: compress.cc -> build/default/compress_1.o ../compress.cc:2:25: error: node_events.h: No such file or directory ../compress.cc:14: error: expected class-name before ‘{’ token ../compress.cc: In static member function ‘static void Gzip::Initialize(v8::Handle<v8::Object>)’: ../compress.cc:23: error: ‘EventEmitter’ has not been declared ../compress.cc: In static member function ‘static v8::Handle<v8::Value> Gzip::New(const v8::Arguments&)’: ../compress.cc:122: error: ‘class Gzip’ has no member named ‘Wrap’ ../compress.cc: In constructor ‘Gzip::Gzip()’: ../compress.cc:198: error: class ‘Gzip’ does not have any field named ‘EventEmitter’ ../compress.cc: At global scope: ../compress.cc:212: error: expected class-name before ‘{’ token ../compress.cc: In static member function ‘static void Gunzip::Initialize(v8::Handle<v8::Object>)’: ../compress.cc:221: error: ‘EventEmitter’ has not been declared ../compress.cc: In static member function ‘static v8::Handle<v8::Value> Gunzip::New(const v8::Arguments&)’: ../compress.cc:302: error: ‘class Gunzip’ has no member named ‘Wrap’ ../compress.cc: In constructor ‘Gunzip::Gunzip()’: ../compress.cc:357: error: class ‘Gunzip’ does not have any field named ‘EventEmitter’

Fresh make && make install of 0.5.x

And now I can confirm that compress installs correctly with 0.4.x versions of node after reinstalling (again).