libgit2/node-gitteh — Issue #21: Can't install gitteh
Author: nborwankar
Created: 2012-01-24 19:26:02+00:00
State: open

This is on OSX Lion latest gitteh (as of 1/24/2012)

Attempting to install via 'npm install gitteh -g'

everything fine until ..

[ 3/11] cxx: src/tree.cc -> build/Release/src/tree_1.o
[ 4/11] cxx: src/repository.cc -> build/Release/src/repository_1.o
../src/commit.cc: In static member function ‘static v8::Handle gitteh::Commit::SaveObject(v8::Handle, gitteh::Repository*, v8::Handle, bool)’:
../src/commit.cc:213: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/commit.cc:213: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
../s

[...] many more similar ending with

../src/repository.cc:1539: error: invalid conversion from ‘int (*)(eio_req*)’ to ‘void (*)(eio_req*)’
../src/repository.cc:1539: error: initializing argument 1 of ‘eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)’
Waf: Leaving directory `/usr/local/lib/node_modules/gitteh/build'
Build failed:
-> task failed (err #1):
{task: cxx commit.cc -> commit_1.o}
-> task failed (err #1):
{task: cxx repository.cc -> repository_1.o}
npm ERR! error installing gitteh@0.1.0
npm ERR! gitteh@0.1.0 install: `node-waf build`
npm ERR! `sh "-c" "node-waf build"` failed with 1

gcc -v gives

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)

I had previously built successfully on SnowLeopard back in mid 2011