Repository navigation
Compilation error node 0.6.1 #32
Copy link
Copy link
Closed
Description
./configure:
Checking for program gcc or cc : /usr/bin/gcc
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for program g++ or c++ : /usr/bin/g++
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.6.1
-- The C compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5")
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/maarten/Downloads/nodegit/vendor/libgit2/build
'configure' finished successfully (1.731s)
Output of make:
[maarten@laptop: nodegit]$ make
Waf: Entering directory `/Users/maarten/Downloads/nodegit/build'
Scanning dependencies of target git2
[ 2%] Building C object CMakeFiles/git2.dir/src/blob.c.o
[ 4%] Building C object CMakeFiles/git2.dir/src/buffer.c.o
[ 6%] Building C object CMakeFiles/git2.dir/src/cache.c.o
[ 8%] Building C object CMakeFiles/git2.dir/src/commit.c.o
[ 10%] Building C object CMakeFiles/git2.dir/src/config.c.o
[ 12%] Building C object CMakeFiles/git2.dir/src/config_file.c.o
[ 14%] Building C object CMakeFiles/git2.dir/src/delta-apply.c.o
[ 17%] Building C object CMakeFiles/git2.dir/src/errors.c.o
[ 19%] Building C object CMakeFiles/git2.dir/src/fetch.c.o
[ 21%] Building C object CMakeFiles/git2.dir/src/filebuf.c.o
[ 23%] Building C object CMakeFiles/git2.dir/src/fileops.c.o
[ 25%] Building C object CMakeFiles/git2.dir/src/hash.c.o
[ 27%] Building C object CMakeFiles/git2.dir/src/hashtable.c.o
[ 29%] Building C object CMakeFiles/git2.dir/src/index.c.o
[ 31%] Building C object CMakeFiles/git2.dir/src/indexer.c.o
[ 34%] Building C object CMakeFiles/git2.dir/src/mwindow.c.o
[ 36%] Building C object CMakeFiles/git2.dir/src/netops.c.o
[ 38%] Building C object CMakeFiles/git2.dir/src/object.c.o
[ 40%] Building C object CMakeFiles/git2.dir/src/odb.c.o
[ 42%] Building C object CMakeFiles/git2.dir/src/odb_loose.c.o
[ 44%] Building C object CMakeFiles/git2.dir/src/odb_pack.c.o
[ 46%] Building C object CMakeFiles/git2.dir/src/oid.c.o
[ 48%] Building C object CMakeFiles/git2.dir/src/pack.c.o
[ 51%] Building C object CMakeFiles/git2.dir/src/path.c.o
[ 53%] Building C object CMakeFiles/git2.dir/src/pkt.c.o
[ 55%] Building C object CMakeFiles/git2.dir/src/posix.c.o
[ 57%] Building C object CMakeFiles/git2.dir/src/pqueue.c.o
[ 59%] Building C object CMakeFiles/git2.dir/src/reflog.c.o
[ 61%] Building C object CMakeFiles/git2.dir/src/refs.c.o
[ 63%] Building C object CMakeFiles/git2.dir/src/refspec.c.o
[ 65%] Building C object CMakeFiles/git2.dir/src/remote.c.o
[ 68%] Building C object CMakeFiles/git2.dir/src/repository.c.o
[ 70%] Building C object CMakeFiles/git2.dir/src/revwalk.c.o
[ 72%] Building C object CMakeFiles/git2.dir/src/sha1.c.o
[ 74%] Building C object CMakeFiles/git2.dir/src/sha1_lookup.c.o
[ 76%] Building C object CMakeFiles/git2.dir/src/signature.c.o
[ 78%] Building C object CMakeFiles/git2.dir/src/status.c.o
[ 80%] Building C object CMakeFiles/git2.dir/src/tag.c.o
[ 82%] Building C object CMakeFiles/git2.dir/src/thread-utils.c.o
[ 85%] Building C object CMakeFiles/git2.dir/src/transport.c.o
[ 87%] Building C object CMakeFiles/git2.dir/src/transport_git.c.o
[ 89%] Building C object CMakeFiles/git2.dir/src/transport_local.c.o
[ 91%] Building C object CMakeFiles/git2.dir/src/tree.c.o
[ 93%] Building C object CMakeFiles/git2.dir/src/tsort.c.o
[ 95%] Building C object CMakeFiles/git2.dir/src/util.c.o
[ 97%] Building C object CMakeFiles/git2.dir/src/vector.c.o
[100%] Building C object CMakeFiles/git2.dir/src/unix/map.c.o
Linking C shared library libgit2.dylib
[100%] Built target git2
[ 1/13] cxx: src/base.cc -> build/Release/src/base_1.o
[ 2/13] cxx: src/sig.cc -> build/Release/src/sig_1.o
../src/sig.cc:7:25: error: node_events.h: No such file or directory
../src/base.cc:7:25: error: node_events.h: No such file or directory
In file included from ../src/../include/object.h:15,
from ../src/../include/repo.h:15,
from ../src/sig.cc:11:
../src/../include/oid.h:17: error: expected class-name before ‘{’ token
In file included from ../src/../include/repo.h:15,
from ../src/sig.cc:11:
../src/../include/object.h:22: error: expected class-name before ‘{’ token
In file included from ../src/sig.cc:11:
../src/../include/repo.h:20: error: expected class-name before ‘{’ token
In file included from ../src/sig.cc:12:
../src/../include/sig.h:19: error: expected class-name before ‘{’ token
../src/sig.cc: In static member function ‘static v8::Handle<v8::Value> GitSig::New(const v8::Arguments&)’:
../src/sig.cc:71: error: ‘class GitSig’ has no member named ‘Wrap’
In file included from ../src/../include/object.h:15,
from ../src/../include/repo.h:15,
from ../src/../include/reference.h:15,
from ../src/base.cc:11:
../src/../include/oid.h:17: error: expected class-name before ‘{’ token
In file included from ../src/../include/repo.h:15,
from ../src/../include/reference.h:15,
from ../src/base.cc:11:
../src/../include/object.h:22: error: expected class-name before ‘{’ token
In file included from ../src/../include/reference.h:15,
from ../src/base.cc:11:
../src/../include/repo.h:20: error: expected class-name before ‘{’ token
In file included from ../src/base.cc:11:
../src/../include/reference.h:21: error: expected class-name before ‘{’ token
In file included from ../src/base.cc:12:
../src/../include/sig.h:19: error: expected class-name before ‘{’ token
In file included from ../src/../include/tree.h:16,
from ../src/../include/commit.h:18,
from ../src/base.cc:18:
../src/../include/tree_entry.h:25: error: expected class-name before ‘{’ token
In file included from ../src/../include/commit.h:18,
from ../src/base.cc:18:
../src/../include/tree.h:24: error: expected class-name before ‘{’ token
In file included from ../src/base.cc:18:
../src/../include/commit.h:26: error: expected class-name before ‘{’ token
In file included from ../src/base.cc:19:
../src/../include/revwalk.h:20: error: expected class-name before ‘{’ token
Waf: Leaving directory `/Users/maarten/Downloads/nodegit/build'
Build failed:
-> task failed (err #1):
{task: cxx sig.cc -> sig_1.o}
-> task failed (err #1):
{task: cxx base.cc -> base_1.o}
make: *** [build] Error 1
Is anyone working to get this project working with node 0.6.x? It would be great to it this out (without going back to node 0.4 :-)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
moneal commentedon Dec 8, 2011
Having the same problem on Lion with node v0.6.5 and npm 1.1.0-alpha-6
tbranyen commentedon Dec 8, 2011
sorry i'm slacking, on vacation and been focusing on my backbone projects atm. i'm being a bad maintainer i know, but i will be getting to this, unless someone else beats me to it.
moneal commentedon Dec 9, 2011
I might have it working at moneal/nodegit@a93d5f1 It looks like the problems I'm having now are related to building on Lion.
moneal commentedon Dec 9, 2011
Looks like I'm getting the same error below on Lion and Ubuntu with my above changes.
Ubuntu:
/usr/bin/ld: cannot find -lgit2
collect2: ld returned 1 exit status
Lion:
ld: library not found for -lgit2
collect2: ld returned 1 exit status
After I installed cmake on ubuntu I was able to build without errors.
tbranyen commentedon Dec 9, 2011
Ah yes, libgit2 requires cmake to build now. Can you install cmake on lion as well to test? I can give it a shot when I arrive back from vacation tomorrow if you can't get it first.
moneal commentedon Dec 9, 2011
Installed cmake on Lion and was able to build.
maerten commentedon Dec 9, 2011
thanks moneal, compilation of your version on OSX Lion completed without any errors, just wanted to report this little thing before i continue:
[ 1/13] cxx: src/base.cc -> build/Release/src/base_1.o
[ 2/13] cxx: src/sig.cc -> build/Release/src/sig_1.o
[ 3/13] cxx: src/blob.cc -> build/Release/src/blob_1.o
[ 4/13] cxx: src/error.cc -> build/Release/src/error_1.o
[ 5/13] cxx: src/object.cc -> build/Release/src/object_1.o
[ 6/13] cxx: src/reference.cc -> build/Release/src/reference_1.o
[ 7/13] cxx: src/repo.cc -> build/Release/src/repo_1.o
[ 8/13] cxx: src/commit.cc -> build/Release/src/commit_1.o
[ 9/13] cxx: src/oid.cc -> build/Release/src/oid_1.o
[10/13] cxx: src/revwalk.cc -> build/Release/src/revwalk_1.o
[11/13] cxx: src/tree.cc -> build/Release/src/tree_1.o
[12/13] cxx: src/tree_entry.cc -> build/Release/src/tree_entry_1.o
[13/13] cxx_link: build/Release/src/base_1.o build/Release/src/sig_1.o build/Release/src/blob_1.o build/Release/src/error_1.o build/Release/src/object_1.o build/Release/src/reference_1.o build/Release/src/repo_1.o build/Release/src/commit_1.o build/Release/src/oid_1.o build/Release/src/revwalk_1.o build/Release/src/tree_1.o build/Release/src/tree_entry_1.o -> build/Release/nodegit.node
Waf: Leaving directory `/Users/maarten/Downloads/nodegit/build'
'build' finished successfully (12.242s)
the module gets saved to 'build/Release/nodegit.node', though make install fails as it expects to find nodegit.node in './build/default'.
this might be a non-issue, just wanted to report it as it might be useful info :-)
thanks!
maerten commentedon Dec 9, 2011
I guess this module is still incompatible with node 0.6..
See https://github.com/joyent/node/wiki/API-changes-between-v0.4-and-v0.6 for more info
moneal commentedon Dec 9, 2011
@maerten Thanks. Looks like I can make some other changes as well :)
moneal commentedon Dec 9, 2011
I have changed it in moneal/nodegit@aa5a9ecba3. I'm not sure if NODE_LIB_PATH = ~/.node_libraries is correct. I think ~/.node_modules is the correct location.
tbranyen commentedon Dec 10, 2011
Should probably be node_modules now
moneal commentedon Dec 14, 2011
@tbranyen Whats the status on this. Should I adjust the path and request a pull for you?
tbranyen commentedon Dec 14, 2011
Yeah man that'd be awesome if you could and run the unit tests to ensure it still works as expected.
niftylettuce commentedon Apr 4, 2012
👍 ?
faceleg commentedon Mar 21, 2013
Fixed in v0.0.74.