invalid ELF header #35

Closed
jwerre opened this Issue Jun 18, 2012 · 7 comments

Comments

Projects
None yet
3 participants
@jwerre

jwerre commented Jun 18, 2012

Working perfectly on my local machine but when I deploy to server I get this error:

Error: /app/node_modules/emailjs/node_modules/buffertools/build/Release/buffertools.node: invalid ELF header

Is this a bug or something I'm doing?

@eleith

This comment has been minimized.

Show comment Hide comment
@eleith

eleith Jun 19, 2012

Owner

sounds like a possible compile error with buffertools. buffertools is a node extension and partly written in C, so it is possible for it to compile on your local machine but then hit errors when deploying.

also, i've had a few people who were able to fix their problems with buffertools just by updating to the latest node.

Owner

eleith commented Jun 19, 2012

sounds like a possible compile error with buffertools. buffertools is a node extension and partly written in C, so it is possible for it to compile on your local machine but then hit errors when deploying.

also, i've had a few people who were able to fix their problems with buffertools just by updating to the latest node.

@eleith

This comment has been minimized.

Show comment Hide comment
@eleith

eleith Jun 26, 2012

Owner

node 0.8 was released today. have you tried upgrading to see if that helped you compile buffer tools? (node now comes with gyp instead of waf for compiling C extensions...)

Owner

eleith commented Jun 26, 2012

node 0.8 was released today. have you tried upgrading to see if that helped you compile buffer tools? (node now comes with gyp instead of waf for compiling C extensions...)

@eleith

This comment has been minimized.

Show comment Hide comment
@eleith

eleith Jul 2, 2012

Owner

i've updated emailjs to use nodejs native implementation of Buffer.concat on the latest nodejs stable releast (0.8.1)

give that a try, it is likely that will solve any of the errors you may have been having.

Owner

eleith commented Jul 2, 2012

i've updated emailjs to use nodejs native implementation of Buffer.concat on the latest nodejs stable releast (0.8.1)

give that a try, it is likely that will solve any of the errors you may have been having.

@eleith eleith closed this Jul 2, 2012

@jwerre

This comment has been minimized.

Show comment Hide comment
@jwerre

jwerre Jul 3, 2012

Same issue. Here are the details if you think that would help:

    npm install emailjs
    npm http GET https://registry.npmjs.org/emailjs
    npm http 200 https://registry.npmjs.org/emailjs
    npm http GET https://registry.npmjs.org/buffertools
    npm http 200 https://registry.npmjs.org/buffertools
    npm http GET https://registry.npmjs.org/buffertools/-/buffertools-1.1.0.tgz
    npm http 200 https://registry.npmjs.org/buffertools/-/buffertools-1.1.0.tgz

    buffertools@1.1.0 preinstall /MYAPP/node_modules/emailjs/node_modules/buffertools
    node-waf clean || (exit 0); node-waf configure build

    Nothing to clean (project not configured)
    Setting srcdir to                        : /MYAPP/node_modules/emailjs/node_modules/buffertools 
    Setting blddir to                        : /MYAPP/node_modules/emailjs/node_modules/buffertools/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                   : not found 
    Checking for node prefix                 : ok /usr/local/Cellar/node/0.8.1 
    'configure' finished successfully (0.430s)
    Waf: Entering directory /MYAPP/node_modules/emailjs/node_modules/buffertools/build'
    [1/2] cxx: buffertools.cc -> build/Release/buffertools_1.o
    [2/2] cxx_link: build/Release/buffertools_1.o -> build/Release/buffertools.node
    Waf: Leaving directory /MYAPP/node_modules/emailjs/node_modules/buffertools/build
    'build' finished successfully (2.482s)
    emailjs@0.2.9 ./node_modules/emailjs 
    └── buffertools@1.1.0

and I get this error running node v-0.8.1

    module.js:480

      process.dlopen(filename, module.exports);

              ^

    Error: /app/node_modules/emailjs/node_modules/buffertools/build/Release/buffertools.node: invalid ELF header
        at Object.Module._extensions..node (module.js:480:11)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Module.require (module.js:362:17)
        at require (module.js:378:17)
        at Object.<anonymous> (/app/node_modules/emailjs/node_modules/buffertools/buffertools.js:1:77)
        at Module._compile (module.js:449:26)
        at Object.Module._extensions..js (module.js:467:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)

jwerre commented Jul 3, 2012

Same issue. Here are the details if you think that would help:

    npm install emailjs
    npm http GET https://registry.npmjs.org/emailjs
    npm http 200 https://registry.npmjs.org/emailjs
    npm http GET https://registry.npmjs.org/buffertools
    npm http 200 https://registry.npmjs.org/buffertools
    npm http GET https://registry.npmjs.org/buffertools/-/buffertools-1.1.0.tgz
    npm http 200 https://registry.npmjs.org/buffertools/-/buffertools-1.1.0.tgz

    buffertools@1.1.0 preinstall /MYAPP/node_modules/emailjs/node_modules/buffertools
    node-waf clean || (exit 0); node-waf configure build

    Nothing to clean (project not configured)
    Setting srcdir to                        : /MYAPP/node_modules/emailjs/node_modules/buffertools 
    Setting blddir to                        : /MYAPP/node_modules/emailjs/node_modules/buffertools/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                   : not found 
    Checking for node prefix                 : ok /usr/local/Cellar/node/0.8.1 
    'configure' finished successfully (0.430s)
    Waf: Entering directory /MYAPP/node_modules/emailjs/node_modules/buffertools/build'
    [1/2] cxx: buffertools.cc -> build/Release/buffertools_1.o
    [2/2] cxx_link: build/Release/buffertools_1.o -> build/Release/buffertools.node
    Waf: Leaving directory /MYAPP/node_modules/emailjs/node_modules/buffertools/build
    'build' finished successfully (2.482s)
    emailjs@0.2.9 ./node_modules/emailjs 
    └── buffertools@1.1.0

and I get this error running node v-0.8.1

    module.js:480

      process.dlopen(filename, module.exports);

              ^

    Error: /app/node_modules/emailjs/node_modules/buffertools/build/Release/buffertools.node: invalid ELF header
        at Object.Module._extensions..node (module.js:480:11)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
        at Module.require (module.js:362:17)
        at require (module.js:378:17)
        at Object.<anonymous> (/app/node_modules/emailjs/node_modules/buffertools/buffertools.js:1:77)
        at Module._compile (module.js:449:26)
        at Object.Module._extensions..js (module.js:467:10)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:312:12)
@eleith

This comment has been minimized.

Show comment Hide comment
@eleith

eleith Jul 3, 2012

Owner

when did you run "npm install emailjs"?

try again, because the latest version (0.3.0) no longer requires buffertools. i used buffer tools in the past to provide for a function that is now included in node 0.8.0 natively.

Owner

eleith commented Jul 3, 2012

when did you run "npm install emailjs"?

try again, because the latest version (0.3.0) no longer requires buffertools. i used buffer tools in the past to provide for a function that is now included in node 0.8.0 natively.

@jwerre

This comment has been minimized.

Show comment Hide comment
@jwerre

jwerre Jul 4, 2012

npm install emailjs@0.3.0 works!! Thanks eleith

jwerre commented Jul 4, 2012

npm install emailjs@0.3.0 works!! Thanks eleith

@mcauser

This comment has been minimized.

Show comment Hide comment
@mcauser

mcauser Jan 17, 2013

I am getting the same "invalid ELF header" error when using https://github.com/dodo/node-unicodetable which depends on https://github.com/dodo/node-bufferstream and https://github.com/bnoordhuis/node-buffertools when deploying on Heroku, but works fine locally on my mac https://gist.github.com/4552409

mcauser commented Jan 17, 2013

I am getting the same "invalid ELF header" error when using https://github.com/dodo/node-unicodetable which depends on https://github.com/dodo/node-bufferstream and https://github.com/bnoordhuis/node-buffertools when deploying on Heroku, but works fine locally on my mac https://gist.github.com/4552409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment