Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

node v0.5.5 + mingw undefined reference to `GetProcessMemoryInfo@12' #1663

Closed
jetlan opened this issue Sep 6, 2011 · 1 comment
Closed

Comments

@jetlan
Copy link

jetlan commented Sep 6, 2011

Symptom

Waf: Entering directory `r:\node55\out'
[30/30] cxx_link: out\Release\src\node_main_5.o out\Release\src\node_5.o out\Release\src\node_buffer_5.o out\Release\src\node_javascript_5.o out\Release\src\node_extensions_5.o out\Release\src\node_http_parser_5.o out\Release\src\node_constants_5.o out\Release\src\node_file_5.o out\Release\src\node_script_5.o out\Release\src\node_os_5.o out\Release\src\node_dtrace_5.o out\Release\src\node_string_5.o out\Release\src\timer_wrap_5.o out\Release\src\handle_wrap_5.o out\Release\src\stream_wrap_5.o out\Release\src\tcp_wrap_5.o out\Release\src\udp_wrap_5.o out\Release\src\pipe_wrap_5.o out\Release\src\cares_wrap_5.o out\Release\src\stdio_wrap_5.o out\Release\src\process_wrap_5.o out\Release\src\v8_typed_array_5.o out\Release\src\node_stdio_win32_5.o out\Release\src\platform_win32_5.o out\Release\deps\http_parser\http_parser_3.o -> out\Release\node.exe

Release\src\platform_win32_5.o: In function `ZN4node8Platform9GetMemoryEPjS1_':

r:\node55\out/../src/platform_win32.cc:205: undefined reference to `GetProcessMemoryInfo@12'

collect2: ld returned 1 exit status

Waf: Leaving directory `r:\node55\out'
Build failed: -> task failed (err #1):
{task: cxx_link node_main_5.o,node_5.o,node_buffer_5.o,node_javascript_5.o,node_extensions_5.o,node_http_parser_5.o,node_constants_5.o,node_file_5.o,node_script_5.o,node_os_5.o,node_dtrace_5.o,node_string_5.o,timer_wrap_5.o,handle_wrap_5.o,stream_wrap_5.o,tcp_wrap_5.o,udp_wrap_5.o,pipe_wrap_5.o,cares_wrap_5.o,stdio_wrap_5.o,process_wrap_5.o,v8_typed_array_5.o,node_stdio_win32_5.o,platform_win32_5.o,http_parser_3.o -> node.exe}
DEST_OS: win32
DEST_CPU: ia32
Parallel Jobs: 1
Product type: program
e:\MinGW20110802\bin\g++.exe Release\src\node_main_5.o Release\src\node_5.o Release\src\node_buffer_5.o Release\src\node_javascript_5.o Release\src\node_extensions_5.o Release\src\node_http_parser_5.o Release\src\node_constants_5.o Release\src\node_file_5.o Release\src\node_script_5.o Release\src\node_os_5.o Release\src\node_dtrace_5.o Release\src\node_string_5.o Release\src\timer_wrap_5.o Release\src\handle_wrap_5.o Release\src\stream_wrap_5.o Release\src\tcp_wrap_5.o Release\src\udp_wrap_5.o Release\src\pipe_wrap_5.o Release\src\cares_wrap_5.o Release\src\stdio_wrap_5.o Release\src\process_wrap_5.o Release\src\v8_typed_array_5.o Release\src\node_stdio_win32_5.o Release\src\platform_win32_5.o Release\deps\http_parser\http_parser_3.o -o r:\node55\out\Release\node.exe -Wl,--enable-auto-import -Wl,--enable-auto-import -m32 -static-libgcc -static-libstdc++ r:\node55\out\Release\libv8.a r:\node55\out\Release\deps/uv/uv.a -Wl,-Bdynamic -lws2_32 -lwinmm
make: *** [program] Error 1

Patch
need to add -lpsapi
but don't know how to add it

@ry
Copy link

ry commented Sep 8, 2011

fixed in 1976288

@ry ry closed this as completed Sep 8, 2011
lyonplus pushed a commit to lyonplus/node that referenced this issue May 22, 2015
PR-URL: nodejs/node#1679

Notable Changes:

* win,node-gyp: the delay-load hook for windows addons has now been
correctly enabled by default, it had wrongly defaulted to off in the
release version of 2.0.0 (Bert Belder) nodejs#1433
* os: tmpdir()'s trailing slash stripping has been refined to fix an
issue when the temp directory is at '/'. Also considers which slash is
used by the operating system. (cjihrig) nodejs#1673
* tls: default ciphers have been updated to use gcm and aes128 (Mike
MacCana) nodejs#1660
* build: v8 snapshots have been re-enabled by default as suggested by
the v8 team, since prior security issues have been resolved. This
should give some perf improvements to both startup and vm context
creation. (Trevor Norris) nodejs#1663
* src: fixed preload modules not working when other flags were used
before --require (Yosuke Furukawa) nodejs#1694
* dgram: fixed send()'s callback not being asynchronous (Yosuke
Furukawa) nodejs#1313
* readline: emitKeys now keeps buffering data until it has enough to
parse. This fixes an issue with parsing split escapes. (Alex Kocharin)
* cluster: works now properly emit 'disconnect' to cluser.worker (Oleg
Elifantiev) nodejs#1386
events: uncaught errors now provide some context (Evan Lucas) nodejs#1654
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants