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

Strange problem since upgrading to Node 5.3.0 on Windows 10 #111

Closed
dsine-de opened this issue Dec 16, 2015 · 19 comments
Closed

Strange problem since upgrading to Node 5.3.0 on Windows 10 #111

dsine-de opened this issue Dec 16, 2015 · 19 comments

Comments

@dsine-de
Copy link

Hi,

I suddenly get this strange error in one of my apps after upgrading to Node.js v5.3.0 on Windows 10. I tried to downgrade Node.js to v5.2.0 and even v4.2.3 again, but the problem persists, even though I'm pretty sure it worked before with Node v5.2.0. and 4.x.

I know this doesn't necessarily have to be a problem with the scrypt module, but I highly appreciate any help how to fix it.

I always did a clean removal of the node_modulesfolder and npm i when I changed the node version. Building or installing doesn't give me any errors.

This error shows when I start the app (the german error message translates to The specified module was not found.):

Also see nodejs/node#2964 ("this error can occur when loading a module that has dependencies on other modules that are not found").

    module.js:460
      return process.dlopen(module, path._makeLong(filename));
                     ^

    Error: Das angegebene Modul wurde nicht gefunden. 
    \\?\E:\repositories\some.folder\node_modules\scrypt\build\Release\scrypt.node
        at Error (native)
        at Object.Module._extensions..node (module.js:460:18)
        at Module.load (module.js:356:32)
        at Function.Module._load (module.js:311:12)
        at Module.require (module.js:366:17)
        at require (module.js:385:17)
        at Object.<anonymous> (E:\repositories\some.folder\node_modules\scrypt\index.js:3:20)
        at Module._compile (module.js:435:26)
        at Object.Module._extensions..js (module.js:442:10)
        at Module.load (module.js:356:32)

Thanks for any hints.

@barrysteyn
Copy link
Owner

I am not sure. Try using version 6 (branch v6 on github) - I have have done a lot of work and it is ready for release (I just need to write the documentation). It may fix your problem. Please tell me if it works...

@dsine-de
Copy link
Author

Ok, I copied the v6 into my node_modules, followed by a npm rebuild (need to do that, right?).

Output is as follows:

> scrypt@5.4.1 preinstall E:\repositories\some.folder\node_modules\scrypt
> node node-scrypt-preinstall.js


> scrypt@5.4.1 install E:\repositories\some.folder\node_modules\scrypt
> node-gyp rebuild


E:\repositories\some.folder\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
Warning: Missing input files:
E:\repositories\some.folder\node_modules\scrypt\build\..\scrypt\win\include\config.h
...

I can't find the config.h file, did I miss something?

@dsine-de
Copy link
Author

The only config.hfile is in the directory "/node_modules/scrypt/scrypt/scrypt-1.2.0/config.h"

@barrysteyn
Copy link
Owner

Hmmm - I don't think copy v6, rather to test this, clone the entire github module, then checkout v6. Then npm install and see if it installs.

Also, if this happens again, please can you give me a more detailed dump.

@barrysteyn
Copy link
Owner

Hi - actually, please follow instructions above (i.e. reclone this module).

@dsine-de
Copy link
Author

Ok, just for the record, the error is the same when I do npm install directly in the node-scrypt directory:

PS E:\repositories\node-scrypt> git status
On branch v6
Your branch is up-to-date with 'origin/v6'.
nothing to commit, working directory clean
PS E:\repositories\node-scrypt> npm i

> scrypt@5.4.1 preinstall E:\repositories\node-scrypt
> node node-scrypt-preinstall.js


> scrypt@5.4.1 install E:\repositories\node-scrypt
> node-gyp rebuild


E:\repositories\node-scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
Warning: Missing input files:
E:\repositories\node-scrypt\build\..\scrypt\win\include\config.h
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
  Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h
  Das System kann die angegebene Datei nicht finden.
  win_delay_load_hook.c
  Code wird generiert.
  Codegenerierung ist abgeschlossen.
  copied_files.vcxproj -> E:\repositories\node-scrypt\build\Release\\copied_files.node
  memlimit.c
  keyderivation.c
  pickparams.c
  hash.c
  win_delay_load_hook.c
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(21): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(22): error C2085: 'libcperciva_be16dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(22): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(29): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(30): error C2085: 'libcperciva_be16enc': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(30): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(38): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(39): error C2085: 'libcperciva_be32dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(39): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(47): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(48): error C2085: 'libcperciva_be32enc': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(48): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(58): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(59): error C2085: 'libcperciva_be64dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(59): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(69): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(70): error C2085: 'libcperciva_be64enc': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(70): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(84): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(85): error C2085: 'libcperciva_le16dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(85): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(92): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(93): error C2085: 'libcperciva_le16enc': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(93): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(101): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositori es\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(102): error C2085: 'libcperciva_le32dec': Nicht in der formalen Parameterliste enthalten (..\src\scryp twrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(102): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\repos itories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(110): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositori es\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(111): error C2085: 'libcperciva_le32enc': Nicht in der formalen Parameterliste enthalten (..\src\scryp twrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(111): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\repos itories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(121): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositori es\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(122): error C2085: 'libcperciva_le64dec': Nicht in der formalen Parameterliste enthalten (..\src\scryp twrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(122): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\repos itories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(132): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositori es\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(133): error C2085: 'libcperciva_le64enc': Nicht in der formalen Parameterliste enthalten (..\src\scryp twrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(133): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\repos itories\node-scrypt\build\scrypt_wrapper.vcxproj]
..\src\scryptwrapper\keyderivation.c(56): warning C4013: 'libcperciva_be32enc' undefiniert; Annahme: extern mit Rückgabetyp int [E:\repositories\node-scrypt\build\scrypt_wrapper.v cxproj]
..\src\scryptwrapper\keyderivation.c(91): warning C4013: 'libcperciva_be32dec' undefiniert; Annahme: extern mit Rückgabetyp int [E:\repositories\node-scrypt\build\scrypt_wrapper.v cxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\repositories\node-scrypt
gyp ERR! node -v v5.3.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

npm WARN EPACKAGEJSON scrypt@5.4.1 license should be a valid SPDX license expression
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! node v5.3.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! scrypt@5.4.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@5.4.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the scrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls scrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     E:\repositories\node-scrypt\npm-debug.log

@barrysteyn
Copy link
Owner

Hi

Can you translate these errors into English:

E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(21): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj] E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(22): error C2085: 'libcperciva_be16dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj] E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(22): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]

I like German, but I don't speak it ;)

@dsine-de
Copy link
Author

Sure:

E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(21): error C2054: 'inline' must be followed by '(' (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj] E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(22): error C2085: 'libcperciva_be16dec': Not included in formal parameter list (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj] E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(22): error C2143: Syntax error: Missing ';' before '{' (..\src\scryptwrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]

@barrysteyn
Copy link
Owner

Tell me, what version of MSVC are you using?

@dsine-de
Copy link
Author

I installed Visual Studio 2013, how can I find out the exact version?

@dsine-de
Copy link
Author

"Microsoft Visual Studio Express 2013 for Windows Desktop with Update 4" - this was working with the older node-scrypt versions (https://www.microsoft.com/download/details.aspx?id=44914).

@barrysteyn
Copy link
Owner

Okay, I think your compiler is correct. MSVC does not like inline for C, and this library is being compiled using C (not C++ - just the scrypt part of it). What I can't figure out is why this is not a problem on my test machine. I think that I need to set some flag. Let me investigate.

Just so that I have it on record, please can you tell me the version of Node you are using (I assume it is version 5 or something).

@dsine-de
Copy link
Author

Yes, it's 5.3.0

@barrysteyn
Copy link
Owner

Could you do me a BIG favour - I am assuming you are using NVM. Can you confirm for me that you still get this error when using version 4.x of Node. I would very much appreciate this.

@dsine-de
Copy link
Author

Probably I'm not an optimal test subject right now because of this strange error in my first comment - something seems to have changed on my machine and I don't know what. The currently released version of node-scrypt worked all the time with Node v5.2.0 and 4.x, I only got this error since installing 5.3.0. (but now also on any other Node version)

@dsine-de
Copy link
Author

Hm, no I don't use NVM, I just install the .msi packages from nodejs.org homepage

@dsine-de
Copy link
Author

Yes, I'm getting the same thing with 4.2.3:

PS E:\repositories\node-scrypt> git status
On branch v6
Your branch is up-to-date with 'origin/v6'.
nothing to commit, working directory clean
PS E:\repositories\node-scrypt> node -v
v4.2.3
PS E:\repositories\node-scrypt> npm -v
2.14.7
PS E:\repositories\node-scrypt> npm i
npm WARN package.json scrypt@5.4.1 license should be a valid SPDX license expression

> scrypt@5.4.1 preinstall E:\repositories\node-scrypt
> node node-scrypt-preinstall.js


> scrypt@5.4.1 install E:\repositories\node-scrypt
> node-gyp rebuild


E:\repositories\node-scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
Warning: Missing input files:
E:\repositories\node-scrypt\build\..\scrypt\win\include\config.h
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parallele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
  Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h
  Das System kann die angegebene Datei nicht finden.
  win_delay_load_hook.c
  Code wird generiert.
  Codegenerierung ist abgeschlossen.
  copied_files.vcxproj -> E:\repositories\node-scrypt\build\Release\\copied_files.node
  memlimit.c
  keyderivation.c
  pickparams.c
  hash.c
  win_delay_load_hook.c
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(21): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(22): error C2085: 'libcperciva_be16dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(22): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(29): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(30): error C2085: 'libcperciva_be16enc': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(30): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(38): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(39): error C2085: 'libcperciva_be32dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(39): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(47): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(48): error C2085: 'libcperciva_be32enc': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(48): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(58): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(59): error C2085: 'libcperciva_be64dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(59): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(69): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(70): error C2085: 'libcperciva_be64enc': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(70): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(84): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(85): error C2085: 'libcperciva_le16dec': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(85): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(92): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositorie s\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(93): error C2085: 'libcperciva_le16enc': Nicht in der formalen Parameterliste enthalten (..\src\scrypt wrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(93): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\reposi tories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(101): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositori es\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(102): error C2085: 'libcperciva_le32dec': Nicht in der formalen Parameterliste enthalten (..\src\scryp twrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(102): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\repos itories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(110): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositori es\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(111): error C2085: 'libcperciva_le32enc': Nicht in der formalen Parameterliste enthalten (..\src\scryp twrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(111): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\repos itories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(121): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositori es\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(122): error C2085: 'libcperciva_le64dec': Nicht in der formalen Parameterliste enthalten (..\src\scryp twrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(122): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\repos itories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(132): error C2054: Nach 'inline' muss '(' folgen (..\src\scryptwrapper\keyderivation.c) [E:\repositori es\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(133): error C2085: 'libcperciva_le64enc': Nicht in der formalen Parameterliste enthalten (..\src\scryp twrapper\keyderivation.c) [E:\repositories\node-scrypt\build\scrypt_wrapper.vcxproj]
E:\repositories\node-scrypt\scrypt\scrypt-1.2.0\libcperciva\util\sysendian.h(133): error C2143: Syntaxfehler: Es fehlt ';' vor '{' (..\src\scryptwrapper\keyderivation.c) [E:\repos itories\node-scrypt\build\scrypt_wrapper.vcxproj]
..\src\scryptwrapper\keyderivation.c(56): warning C4013: 'libcperciva_be32enc' undefiniert; Annahme: extern mit Rückgabetyp int [E:\repositories\node-scrypt\build\scrypt_wrapper.v cxproj]
..\src\scryptwrapper\keyderivation.c(91): warning C4013: 'libcperciva_be32dec' undefiniert; Annahme: extern mit Rückgabetyp int [E:\repositories\node-scrypt\build\scrypt_wrapper.v cxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd E:\repositories\node-scrypt
gyp ERR! node -v v4.2.3
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i"
npm ERR! node v4.2.3
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! scrypt@5.4.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@5.4.1 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the scrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls scrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     E:\repositories\node-scrypt\npm-debug.log

@dsine-de
Copy link
Author

I got it fixed now. I had a wrong PATH environment variable to my OpenSSL installation directory, so the libeay32.dll file wasn't found.

The build problem with the v6 branch still persist, though.

@dsine-de
Copy link
Author

I'll close this issue but I'm open to test the v6 branch, just let me know.

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