Skip to content

Instantly share code, notes, and snippets.

@mockee
Created March 18, 2011 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mockee/875733 to your computer and use it in GitHub Desktop.
Save mockee/875733 to your computer and use it in GitHub Desktop.
node 0.4.2 compile error
DEST_OS: darwin
DEST_CPU: x64
Parallel Jobs: 1
Product type: program
[73/75] cxx: src/platform_darwin.cc -> build/default/src/platform_darwin_4.o
/usr/bin/g++ -pthread -arch x86_64 -g -O3 -DHAVE_OPENSSL=1 -DHAVE_MONOTONIC_CLOCK=0 -DEV_FORK_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_MULTIPLICITY=0 -DX_STACKSIZE=65536 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEV_MULTIPLICITY=0 -DHAVE_FDATASYNC=0 -DPLATFORM="darwin" -D__POSIX__=1 -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -DNDEBUG -Idefault/src -I../src -Idefault/deps/libeio -I../deps/libeio -Idefault/deps/http_parser -I../deps/http_parser -Idefault/deps/v8/include -I../deps/v8/include -Idefault/deps/libev -I../deps/libev -Idefault/deps/c-ares -I../deps/c-ares -Idefault/deps/c-ares/darwin-x64 -I../deps/c-ares/darwin-x64 -Ideps/v8/include ../src/platform_darwin.cc -c -o default/src/platform_darwin_4.o
../src/platform_darwin.cc:213: error: expected constructor, destructor, or type conversion before ‘<’ token
Waf: Leaving directory `/Users/mockee/Sites/nodeProjects/node/build'
Build failed: -> task failed (err #1):
{task: cxx platform_darwin.cc -> platform_darwin_4.o}
make: *** [program] Error 1
@netsensei
Copy link

Just wanted to try node.js too. Compilation bailed at the same file. I'm on a MacBook with OSX 10.5.8.

@vivekian
Copy link

Hitting the same issue on Mac OS X. Anyone else hitting this issue?

@rocco
Copy link

rocco commented Mar 19, 2011

try another tag.

list available tags:
$ git tag -l

checkout one of the tags listed, e.g.:
$ git checkout v0.4.3

now configure and make again - works for me

@btipling
Copy link

Same error on mac os x. Trying rocco's suggestion.

@psugihara
Copy link

Same as above.

Edit:
This line worked:
$ git checkout v0.4.3

Thanks, Rocco.

@mathiasbynens
Copy link

See nodejs/node-v0.x-archive#801 — several patches are already available; I guess one of them will land soon.

@mathiasbynens
Copy link

This has now been fixed: nodejs/node-v0.x-archive@7bff702

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