Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows 7(64bit) & Node 6.14] Error in building bcrypt gem #47

Closed
cielo opened this issue Apr 3, 2012 · 2 comments
Closed

[Windows 7(64bit) & Node 6.14] Error in building bcrypt gem #47

cielo opened this issue Apr 3, 2012 · 2 comments

Comments

@cielo
Copy link

cielo commented Apr 3, 2012

I installed Microsoft Visual Studio 2010 Express and python 2.7.2 and I am working in Windows.

The node-gyp configure command works successfully, however, node-gyp build fails on one of the node modules bcrypt.

The error log is shown below. Would it be a problem of source files? I am getting a lot of syntax errors.

>node-gyp configure

info it worked if it ends with ok
spawn python [ 'C:\\Users\\anderson\\.node-gyp\\0.6.14\\tools\\gyp_addon',
  'binding.gyp',
  '-IC:\\Users\\anderson\\node\\eduwrite\\node_modules\\bcrypt\\build\\config.gy
pi',
  '-f',
  'msvs',
  '-G',
  'msvs_version=2010' ]
info done ok

>node-gyp build

info it worked if it ends with ok
spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe [ 'build/binding
.sln',
  '/clp:Verbosity=minimal',
  '/nologo',
  '/p:Configuration=Release;Platform=Win32' ]
  blowfish.cc
  bcrypt.cc
  bcrypt_node.cc
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(66): error C2
146: syntax error : missing ';' before identifier 'S' [C:\Users\anderson\node\ed
uwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(66): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(66): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(67): error C2
146: syntax error : missing ';' before identifier 'P' [C:\Users\anderson\node\ed
uwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(67): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(67): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(76): error C2
061: syntax error : identifier 'u_int32_t' [C:\Users\anderson\node\eduwrite\node
_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(77): error C2
061: syntax error : identifier 'u_int32_t' [C:\Users\anderson\node\eduwrite\node
_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(79): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(79): error C2
143: syntax error : missing ',' before '*' [C:\Users\anderson\node\eduwrite\node
_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(81): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(81): error C2
143: syntax error : missing ',' before '*' [C:\Users\anderson\node\eduwrite\node
_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(85): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(96): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(96): error C2
143: syntax error : missing ',' before '*' [C:\Users\anderson\node\eduwrite\node
_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(96): error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(99): error C2
065: 'u_int8_t' : undeclared identifier [C:\Users\anderson\node\eduwrite\node_mo
dules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(99): error C2
065: 'u_int8_t' : undeclared identifier [C:\Users\anderson\node\eduwrite\node_mo
dules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(99): error C2
059: syntax error : ',' [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\bui
ld\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(101): error C
2061: syntax error : identifier 'u_int8_t' [C:\Users\anderson\node\eduwrite\node
_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(102): error C
2146: syntax error : missing ';' before identifier 'bcrypt_get_rounds' [C:\Users
\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(102): error C
4430: missing type specifier - int assumed. Note: C++ does not support default-i
nt [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj
]
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(102): error C
2086: 'int u_int32_t' : redefinition [C:\Users\anderson\node\eduwrite\node_modul
es\bcrypt\build\bcrypt_lib.vcxproj]
          c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(96)
 : see declaration of 'u_int32_t'
c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(102): error C
4430: missing type specifier - int assumed. Note: C++ does not support default-i
nt [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj
]
..\src\blowfish.cc(68): error C2061: syntax error : identifier 'u_int32_t' [C:\U
sers\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(70): error C2146: syntax error : missing ';' before identifie
r 'Xl' [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcx
proj]
..\src\blowfish.cc(70): error C2065: 'Xl' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(71): error C2146: syntax error : missing ';' before identifie
r 'Xr' [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcx
proj]
..\src\blowfish.cc(71): error C2065: 'Xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(72): error C2065: 's' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(72): error C2039: 'S' : is not a member of 'BlowfishContext'
[C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
          c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(65)
 : see declaration of 'BlowfishContext'
..\src\blowfish.cc(73): error C2065: 'p' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(73): error C2039: 'P' : is not a member of 'BlowfishContext'
[C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
          c:\users\anderson\node\eduwrite\node_modules\bcrypt\src\node_blf.h(65)
 : see declaration of 'BlowfishContext'
..\src\blowfish.cc(75): error C2065: 'Xl' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(75): error C2065: 'xl' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(76): error C2065: 'Xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(76): error C2065: 'xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(78): error C2065: 'Xl' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(78): error C2065: 'p' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(79): error C2065: 'Xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(79): error C2065: 's' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(79): error C2065: 'Xl' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(79): error C2065: 's' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]

.... a lot of similar errors.....

..\src\blowfish.cc(81): error C2065: 's' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(81): error C2065: 'Xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(81): error C2065: 's' : undeclared identifier..\src\bcrypt.cc
(52) : fatal error C1083: Cannot open include file: 'pwd.h': No such file or dir
-- More  -- ERR! Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.e
xe` failed with exit code: 1
    at Array.0 (C:\Users\anderson\AppData\Roaming\npm\node_modules\node-gyp\lib\
build.js:221:25)
    at EventEmitter._tickCallback (node.js:192:40)
ERR! not ok
ectory [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcx
proj]

..\src\blowfish.cc(81): error C2065: 'Xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(81): error C2065: 's' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(81): error C2065: 'Xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(81): error C2065: 's' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(81): error C2065: 'Xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(81): error C2065: 'p' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(82): error C2065: 'Xr' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(82): error C2065: 's' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(82): error C2065: 'Xl' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(82): error C2065: 's' : undeclared identifier [C:\Users\ander
son\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(82): error C2065: 'Xl' : undeclared identifier [C:\Users\ande
rson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
..\src\blowfish.cc(82): fatal error C1003: error count exceeds 100; stopping com
pilation [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_lib.v
cxproj]
C:\Users\anderson\.node-gyp\0.6.14\src\node_object_wrap.h(57): warning C4251: 'n
ode::ObjectWrap::handle_' : class 'v8::Persistent<T>' needs to have dll-interfac
e to be used by clients of class 'node::ObjectWrap' [C:\Users\anderson\node\eduw
rite\node_modules\bcrypt\build\bcrypt_lib.vcxproj]
          with
          [
              T=v8::Object
          ]

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): war
ning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp
ecify /EHsc [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\build\bcrypt_li
b.vcxproj]
c:\users\anderson\.node-gyp\0.6.14\deps\openssl\openssl\include\openssl\../../e_
os2.h(56): fatal error C1083: Cannot open include file: 'openssl/opensslconf.h':
 No such file or directory [C:\Users\anderson\node\eduwrite\node_modules\bcrypt\
build\bcrypt_lib.vcxproj]
@TooTallNate
Copy link
Contributor

Looks like something wrong with the module. Are you able to compile any other native modules an your machine (i.e. contextify)?

@cielo
Copy link
Author

cielo commented Apr 4, 2012

It runs out that it is a problem with the module, not node-gyp.

kelektiv/node.bcrypt.js#73

Sorry about that.

@cielo cielo closed this as completed Apr 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants