[Architecture] FFI installation

Evgeni Tsakov etsakov at asteasolutions.com
Mon Aug 20 05:34:15 EDT 2012


Hi,
The full output I get is in the log file.

On Fri, Aug 17, 2012 at 8:22 PM, Steve Lee <steve at opendirective.com> wrote:

> What is the build error?
>
> Steve Lee
> Sent from my mobile device Please excuse typing errors
> On Aug 17, 2012 4:09 PM, "Evgeni Tsakov" <etsakov at asteasolutions.com>
> wrote:
>
>>     Hi everyone,
>>
>>     During the last architecture meeting Antranig complained that he
>> couldn't manage to install ffi and we were considering to move to node
>> C/C++ Addons. The last two days I tried to familiarize myself with the node
>> extensions and came to an interesting (and I think a serious) problem. Once
>> the C code is written, it needs to be compiled into a node module using
>> node-gyp. I followed the tutorial on http://nodejs.org/api/addons.htmland it worked well. The module compiled and was completely operational.
>> However, if you add "#include <windows.h>", "node-gyp build" fails to
>> compile that library (note that this was done on Windows). I searched the
>> Internet for a solution but without any luck.
>>
>>     Now, a note about ffi. I cloned my virtual machine in order to try
>> installing ffi again and i succeeded. I am using Windows 7, 32-bit within
>> VirtualBox. I followed the steps bellow:
>>
>> 1. Install node.js v0.8.7
>>     32-bit nodejs.org/dist/v0.8.7/node-v0.8.7-x86.msi
>>     64-bit nodejs.org/dist/v0.8.7/x64/node-v0.8.7-x64.msi
>>
>> 2. Install node-gyp
>>     Python (v2.7.2 recommended, v3.x.x not yet supported)
>>     Microsoft Visual C++ 2010 (Express version works well)
>>     for 64-bit builds - Windows 7 64-bit SDK
>> http://www.microsoft.com/en-us/download/details.aspx?displayLang=en&id=8279
>>     npm install -g node-gyp (right click cmd.exe -> Run as administrator)
>>
>> 3. Install ffi
>>     Mozilla Build
>> http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe
>>
>>     open "start-msvc10.bat" (or "start-msvc10-x64.bat" for 64-bit
>> version) and write:
>>     PATH=$PATH:"node_dir" where node_dir is your nodejs installation
>> directory (default is C:/Program Files/nodejs)
>>     npm install ffi ref ref-struct
>>
>> In the code you will have to change require("node-ffi") to require("ffi")
>> Hope it works for you.
>>
>> Rock on,
>> Evgeni
>>
>>
>> *The information in this e-mail and any accompanying files is intended
>> only for the recipients named above. This message may contain CONFIDENTIAL
>> INFORMATION THAT IS LEGALLY PRIVILEGED. If you are not an intended
>> recipient, you may not download, copy, disseminate, distribute or use in
>> any way the information in this e-mail. Any of these actions can be a
>> criminal offense. If you have received this e-mail in error, please notify Astea
>> Solutions AD immediately by reply e-mail, and delete this e-mail and any
>> copies of it.*
>>
>> _______________________________________________
>> Architecture mailing list
>> Architecture at lists.gpii.net
>> http://lists.gpii.net/cgi-bin/mailman/listinfo/architecture
>>
>>

-- 
*The information in this e-mail and any accompanying files is intended only 
for the recipients named above. This message may contain CONFIDENTIAL 
INFORMATION THAT IS LEGALLY PRIVILEGED. If you are not an intended 
recipient, you may not download, copy, disseminate, distribute or use in 
any way the information in this e-mail. Any of these actions can be a 
criminal offense. If you have received this e-mail in error, please notify Astea 
Solutions AD immediately by reply e-mail, and delete this e-mail and any 
copies of it.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gpii.net/pipermail/architecture/attachments/20120820/f99b95d4/attachment-0001.html>
-------------- next part --------------
gyp info it worked if it ends with ok
gyp info using node-gyp at 0.6.6
gyp info using node at 0.8.7 | win32 | ia32
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/property:TargetExt=.node',
gyp info spawn args   '/p:Configuration=Release;Platform=Win32' ]
  hello.cc
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(91): warning C4005: 'AF_IPX' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(460) : see previous definition of 'AF_IPX'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(131): warning C4005: 'AF_MAX' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(479) : see previous definition of 'AF_MAX'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(168): warning C4005: 'SO_DONTLINGER' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(402) : see previous definition of 'SO_DONTLINGER'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(212): error C2011: 'sockaddr' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(485) : see declaration of 'sockaddr'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(390): error C2059: syntax error : 'constant' [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(390): error C3805: 'constant': unexpected token, expected either '}' or a ',' [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(524): warning C4005: 'IN_CLASSA' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(287) : see previous definition of 'IN_CLASSA'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(530): warning C4005: 'IN_CLASSB' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(293) : see previous definition of 'IN_CLASSB'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(536): warning C4005: 'IN_CLASSC' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(299) : see previous definition of 'IN_CLASSC'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(547): warning C4005: 'INADDR_ANY' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(304) : see previous definition of 'INADDR_ANY'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(549): warning C4005: 'INADDR_BROADCAST' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(306) : see previous definition of 'INADDR_BROADCAST'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2def.h(583): error C2011: 'sockaddr_in' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(312) : see declaration of 'sockaddr_in'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(132): error C2011: 'fd_set' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(68) : see declaration of 'fd_set'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(167): warning C4005: 'FD_SET' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(102) : see previous definition of 'FD_SET'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(176): error C2011: 'timeval' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(111) : see declaration of 'timeval'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(232): error C2011: 'hostent' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(167) : see declaration of 'hostent'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(245): error C2011: 'netent' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(180) : see declaration of 'netent'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(252): error C2011: 'servent' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(187) : see declaration of 'servent'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(264): error C2011: 'protoent' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(199) : see declaration of 'protoent'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(360): error C2011: 'WSAData' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(322) : see declaration of 'WSAData'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(458): error C2011: 'sockproto' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(494) : see declaration of 'sockproto'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(500): error C2011: 'linger' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(531) : see declaration of 'linger'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(513): warning C4005: 'SOMAXCONN' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(544) : see previous definition of 'SOMAXCONN'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(542): warning C4005: 'FD_READ' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(562) : see previous definition of 'FD_READ'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(545): warning C4005: 'FD_WRITE' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(563) : see previous definition of 'FD_WRITE'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(548): warning C4005: 'FD_OOB' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(564) : see previous definition of 'FD_OOB'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(551): warning C4005: 'FD_ACCEPT' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(565) : see previous definition of 'FD_ACCEPT'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(554): warning C4005: 'FD_CONNECT' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(566) : see previous definition of 'FD_CONNECT'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(557): warning C4005: 'FD_CLOSE' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(567) : see previous definition of 'FD_CLOSE'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1578): error C2375: 'accept' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(742) : see declaration of 'accept'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1600): error C2375: 'bind' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(747) : see declaration of 'bind'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1619): error C2375: 'closesocket' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(752) : see declaration of 'closesocket'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1638): error C2375: 'connect' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(754) : see declaration of 'connect'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1659): error C2375: 'ioctlsocket' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(759) : see declaration of 'ioctlsocket'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1680): error C2375: 'getpeername' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(764) : see declaration of 'getpeername'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1701): error C2375: 'getsockname' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(769) : see declaration of 'getsockname'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1724): error C2375: 'getsockopt' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(774) : see declaration of 'getsockopt'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1745): error C2375: 'htonl' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(781) : see declaration of 'htonl'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1762): error C2375: 'htons' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(783) : see declaration of 'htons'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1780): error C2375: 'inet_addr' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(785) : see declaration of 'inet_addr'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1797): error C2375: 'inet_ntoa' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(787) : see declaration of 'inet_ntoa'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1815): error C2375: 'listen' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(789) : see declaration of 'listen'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1833): error C2375: 'ntohl' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(793) : see declaration of 'ntohl'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1850): error C2375: 'ntohs' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(795) : see declaration of 'ntohs'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1870): error C2375: 'recv' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(797) : see declaration of 'recv'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1895): error C2375: 'recvfrom' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(803) : see declaration of 'recvfrom'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1921): error C2375: 'select' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(811) : see declaration of 'select'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1945): error C2375: 'send' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(818) : see declaration of 'send'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1970): error C2375: 'sendto' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(824) : see declaration of 'sendto'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(1996): error C2375: 'setsockopt' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(832) : see declaration of 'setsockopt'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2018): error C2375: 'shutdown' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(839) : see declaration of 'shutdown'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2039): error C2375: 'socket' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(843) : see declaration of 'socket'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2063): error C2375: 'gethostbyaddr' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(850) : see declaration of 'gethostbyaddr'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2083): error C2375: 'gethostbyname' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(855) : see declaration of 'gethostbyname'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2101): error C2375: 'gethostname' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(857) : see declaration of 'gethostname'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2121): error C2375: 'getservbyport' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(861) : see declaration of 'getservbyport'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2141): error C2375: 'getservbyname' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(865) : see declaration of 'getservbyname'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2160): error C2375: 'getprotobynumber' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(869) : see declaration of 'getprotobynumber'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2178): error C2375: 'getprotobyname' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(871) : see declaration of 'getprotobyname'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2200): error C2375: 'WSAStartup' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(875) : see declaration of 'WSAStartup'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2219): error C2375: 'WSACleanup' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(879) : see declaration of 'WSACleanup'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2236): error C2375: 'WSASetLastError' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(881) : see declaration of 'WSASetLastError'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2253): error C2375: 'WSAGetLastError' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(883) : see declaration of 'WSAGetLastError'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2270): error C2375: 'WSAIsBlocking' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(885) : see declaration of 'WSAIsBlocking'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2287): error C2375: 'WSAUnhookBlockingHook' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(887) : see declaration of 'WSAUnhookBlockingHook'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2304): error C2375: 'WSASetBlockingHook' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(889) : see declaration of 'WSASetBlockingHook'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2321): error C2375: 'WSACancelBlockingCall' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(891) : see declaration of 'WSACancelBlockingCall'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2343): error C2375: 'WSAAsyncGetServByName' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(893) : see declaration of 'WSAAsyncGetServByName'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2370): error C2375: 'WSAAsyncGetServByPort' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(901) : see declaration of 'WSAAsyncGetServByPort'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2396): error C2375: 'WSAAsyncGetProtoByName' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(909) : see declaration of 'WSAAsyncGetProtoByName'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2421): error C2375: 'WSAAsyncGetProtoByNumber' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(916) : see declaration of 'WSAAsyncGetProtoByNumber'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2446): error C2375: 'WSAAsyncGetHostByName' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(923) : see declaration of 'WSAAsyncGetHostByName'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2473): error C2375: 'WSAAsyncGetHostByAddr' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(930) : see declaration of 'WSAAsyncGetHostByAddr'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2496): error C2375: 'WSACancelAsyncRequest' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(939) : see declaration of 'WSACancelAsyncRequest'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock2.h(2517): error C2375: 'WSAAsyncSelect' : redefinition; different linkage [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(941) : see declaration of 'WSAAsyncSelect'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(75): error C2079: 'sockaddr_gen::Address' uses undefined struct 'sockaddr' [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(76): error C2079: 'sockaddr_gen::AddressIn' uses undefined struct 'sockaddr_in' [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(119): warning C4005: 'IP_TOS' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(352) : see previous definition of 'IP_TOS'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(120): warning C4005: 'IP_TTL' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(351) : see previous definition of 'IP_TTL'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(121): warning C4005: 'IP_MULTICAST_IF' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(346) : see previous definition of 'IP_MULTICAST_IF'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(122): warning C4005: 'IP_MULTICAST_TTL' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(347) : see previous definition of 'IP_MULTICAST_TTL'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(123): warning C4005: 'IP_MULTICAST_LOOP' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(348) : see previous definition of 'IP_MULTICAST_LOOP'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(124): warning C4005: 'IP_ADD_MEMBERSHIP' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(349) : see previous definition of 'IP_ADD_MEMBERSHIP'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(125): warning C4005: 'IP_DROP_MEMBERSHIP' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(350) : see previous definition of 'IP_DROP_MEMBERSHIP'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(126): warning C4005: 'IP_DONTFRAGMENT' : macro redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(353) : see previous definition of 'IP_DONTFRAGMENT'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(193): error C2079: '_SOCKADDR_INET::Ipv4' uses undefined struct 'sockaddr_in' [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2ipdef.h(700): error C2011: 'ip_mreq' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(363) : see declaration of 'ip_mreq'
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2tcpip.h(664): error C3861: 'WSASetLastError': identifier not found [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2tcpip.h(671): error C3861: 'WSASetLastError': identifier not found [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2tcpip.h(709): error C3861: 'WSASetLastError': identifier not found [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2tcpip.h(716): error C3861: 'WSASetLastError': identifier not found [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2tcpip.h(760): error C3861: 'WSASetLastError': identifier not found [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2tcpip.h(767): error C3861: 'WSASetLastError': identifier not found [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2tcpip.h(807): error C3861: 'WSASetLastError': identifier not found [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\ws2tcpip.h(814): error C3861: 'WSASetLastError': identifier not found [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\mswsock.h(128): error C2011: '_TRANSMIT_FILE_BUFFERS' : 'struct' type redefinition [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(953) : see declaration of '_TRANSMIT_FILE_BUFFERS'
c:\Users\Astea\.node-gyp\0.8.7\deps\uv\include\uv.h(1328): error C2079: 'uv_interface_address_s::address4' uses undefined struct 'sockaddr_in' [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
c:\Users\Astea\.node-gyp\0.8.7\deps\uv\include\uv.h(1593): error C2526: 'uv_ip4_addr' : C linkage function cannot return C++ class 'sockaddr_in' [c:\Users\Astea\Documents\node ext\hello\build\hello.vcxproj]
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\winsock.h(312) : see declaration of 'sockaddr_in'
gyp ERR! build error 
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (c:\Program Files\nodejs\node_modules\node-gyp\lib\build.js:219:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:91:17)
gyp ERR! stack     at Process._handle.onexit (child_process.js:674:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\node-gyp\\bin\\node-gyp.js" "build"
gyp ERR! cwd c:\Users\Astea\Documents\node ext\hello
gyp ERR! node -v v0.8.7
gyp ERR! node-gyp -v v0.6.6
gyp ERR! not ok 


More information about the Architecture mailing list