node-compress icon indicating copy to clipboard operation
node-compress copied to clipboard

Build failed

Open ghost opened this issue 13 years ago • 2 comments

Greetings,

I'm getting the following error when I run node-waf build

root@remote:/home/hynese/backopt/node-compress# node-waf build Waf: Entering directory /home/hynese/backopt/node-compress/build' [1/2] cxx: src/compress.cc -> build/default/src/compress_1.o In file included from ../src/gzip.cc:33:0, from ../src/compress.cc:27: ../src/zlib.h: In constructor ‘ZipLib<Processor>::ZipLib() [with Processor = GzipImpl]’: ../src/zlib.h:207:43: instantiated from ‘static v8::Handle<v8::Value> ZipLib<Processor>::New(const v8::Arguments&) [with Processor = GzipImpl]’ ../src/zlib.h:191:5: instantiated from ‘static void ZipLib<Processor>::Initialize(v8::Handle<v8::Object>) [with Processor = GzipImpl]’ ../src/compress.cc:40:9: instantiated from here ../src/zlib.h:452:7: warning: dereferencing type-punned pointer will break strict-aliasing rules ../src/zlib.h:452:7: warning: dereferencing type-punned pointer will break strict-aliasing rules ../src/zlib.h:452:7: warning: dereferencing type-punned pointer will break strict-aliasing rules ../src/zlib.h: In constructor ‘ZipLib<Processor>::ZipLib() [with Processor = GunzipImpl]’: ../src/zlib.h:207:43: instantiated from ‘static v8::Handle<v8::Value> ZipLib<Processor>::New(const v8::Arguments&) [with Processor = GunzipImpl]’ ../src/zlib.h:191:5: instantiated from ‘static void ZipLib<Processor>::Initialize(v8::Handle<v8::Object>) [with Processor = GunzipImpl]’ ../src/compress.cc:41:11: instantiated from here ../src/zlib.h:452:7: warning: dereferencing type-punned pointer will break strict-aliasing rules ../src/zlib.h:452:7: warning: dereferencing type-punned pointer will break strict-aliasing rules ../src/zlib.h:452:7: warning: dereferencing type-punned pointer will break strict-aliasing rules ../src/zlib.h: In constructor ‘ZipLib<Processor>::Request::Request(ZipLib<Processor>*, v8::Local<v8::Value>, v8::Local<v8::Function>) [with Processor = GzipImpl, ZipLib<Processor> = ZipLib<GzipImpl>]’: ../src/zlib.h:120:67: instantiated from ‘static ZipLib<Processor>::Request* ZipLib<Processor>::Request::Write(ZipLib<Processor>::Self*, v8::Local<v8::Value>, v8::Local<v8::Function>) [with Processor = GzipImpl, ZipLib<Processor>::Request = ZipLib<GzipImpl>::Request, ZipLib<Processor>::Self = ZipLib<GzipImpl>]’ ../src/zlib.h:260:56: instantiated from ‘static v8::Handle<v8::Value> ZipLib<Processor>::Write(const v8::Arguments&) [with Processor = GzipImpl]’ ../src/zlib.h:195:5: instantiated from ‘static void ZipLib<Processor>::Initialize(v8::Handle<v8::Object>) [with Processor = GzipImpl]’ ../src/compress.cc:40:9: instantiated from here ../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’ ../src/zlib.h: In constructor ‘ZipLib<Processor>::Request::Request(ZipLib<Processor>*, v8::Local<v8::Value>, v8::Local<v8::Function>) [with Processor = GunzipImpl, ZipLib<Processor> = ZipLib<GunzipImpl>]’: ../src/zlib.h:120:67: instantiated from ‘static ZipLib<Processor>::Request* ZipLib<Processor>::Request::Write(ZipLib<Processor>::Self*, v8::Local<v8::Value>, v8::Local<v8::Function>) [with Processor = GunzipImpl, ZipLib<Processor>::Request = ZipLib<GunzipImpl>::Request, ZipLib<Processor>::Self = ZipLib<GunzipImpl>]’ ../src/zlib.h:260:56: instantiated from ‘static v8::Handle<v8::Value> ZipLib<Processor>::Write(const v8::Arguments&) [with Processor = GunzipImpl]’ ../src/zlib.h:195:5: instantiated from ‘static void ZipLib<Processor>::Initialize(v8::Handle<v8::Object>) [with Processor = GunzipImpl]’ ../src/compress.cc:41:11: instantiated from here ../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}

I hope someone can help.

Many thanks in advance,

ghost avatar Jun 24 '11 10:06 ghost

I've fixed the build errors in my fork here: https://github.com/mscdex/node-compress

However, there seems to be some issues with the addon itself which I have not figured out yet.

mscdex avatar Jun 24 '11 16:06 mscdex

@mscdex Many thanks for that! A great help.

ghost avatar Jun 27 '11 11:06 ghost