joyent/node — Issue #2623: node-v0.6.8 error when building on FreeBSD
Author: nkhine
Created: 2012-01-27 12:46:12+00:00
State: open

hello,
i get this error when building the latest stable release on a FreeBSD box

/usr/bin/g++ -o obj/release/execution.o -c -fno-rtti -fno-exceptions -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT -I/usr/local/include -I/home/khine/packages/node-v0.6.8/deps/v8/src /home/khine/packages/node-v0.6.8/deps/v8/src/execution.cc
/usr/bin/g++ -o obj/release/extensions/externalize-string-extension.o -c -fno-rtti -fno-exceptions -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT -I/usr/local/include -I/home/khine/packages/node-v0.6.8/deps/v8/src /home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:55: error: 'uc16' was not declared in this scope
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:55: error: template argument 1 is invalid
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:56: error: invalid type in declaration before ';' token
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc: In member function 'virtual v8::Handle v8::internal::ExternalizeStringExtension::GetNativeFunction(v8::Handle)':
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:66: error: 'strcmp' was not declared in this scope
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:69: error: 'ASSERT' was not declared in this scope
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc: In static member function 'static v8::Handle v8::internal::ExternalizeStringExtension::Externalize(const v8::Arguments&)':
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:91: error: incomplete type 'v8::Utils' used in nested name specifier
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:92: error: 'class v8::String' has no member named 'IsExternalString'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:96: error: 'class v8::String' has no member named 'IsAsciiRepresentation'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:97: error: 'class v8::String' has no member named 'length'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:98: error: 'WriteToFlat' is not a member of 'v8::String'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:98: error: 'class v8::String' has no member named 'length'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:100: error: 'class v8::String' has no member named 'length'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:102: error: 'class v8::String' has no member named 'IsSymbol'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:103: error: 'HEAP' was not declared in this scope
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:107: error: 'uc16' was not declared in this scope
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:107: error: 'data' was not declared in this scope
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:107: error: expected type-specifier before 'uc16'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:107: error: expected `;' before 'uc16'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:108: error: 'WriteToFlat' is not a member of 'v8::String'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:108: error: 'class v8::String' has no member named 'length'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:110: error: 'class v8::String' has no member named 'length'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:110: error: new initializer expression list treated as compound expression
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:111: error: no matching function for call to 'v8::String::MakeExternal(v8::internal::SimpleTwoByteStringResource*&)'
/usr/local/include/v8.h:1218: note: candidates are: bool v8::String::MakeExternal(v8::String::ExternalStringResource*)
/usr/local/include/v8.h:1240: note: bool v8::String::MakeExternal(v8::String::ExternalAsciiStringResource*)
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:112: error: 'class v8::String' has no member named 'IsSymbol'
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:113: error: 'HEAP' was not declared in this scope
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc: In static member function 'static v8::Handle v8::internal::ExternalizeStringExtension::IsAscii(const v8::Arguments&)':
/home/khine/packages/node-v0.6.8/deps/v8/src/extensions/externalize-string-extension.cc:130: error: incomplete type 'v8::Utils' used in nested name specifier
scons: *** [obj/release/extensions/externalize-string-extension.o] Error 1
scons: building terminated because of errors.
Waf: Leaving directory `/home/khine/packages/node-v0.6.8/out'
Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
gmake: *** [program] Error 1