joyent/node — Issue #1857: mingw build error
Author: derMart
Created: 2011-10-11 16:55:19+00:00
State: open

I'm trying to build node using this tutorial: https://github.com/joyent/node/wiki/Building-node.js-on-mingw
node master branch: commit 24dabec039a83b52ebe1d8ff971caceda26b948e
mingw version: http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110802/mingw-get-inst-20110802.exe/download
python version: 2.7.2 32bit

./configure --without-ssl gives this output:

Checking for program g++ or c++ : c:\MinGW\bin\g++.exe
Checking for program cpp : c:\MinGW\bin\cpp.exe
Checking for program ar : c:\MinGW\bin\ar.exe
Checking for program ranlib : c:\MinGW\bin\ranlib.exe
Checking for g++ : ok
Checking for program gcc or cc : c:\MinGW\bin\gcc.exe
Checking for gcc : ok
Checking for library dl : not found
Checking for library util : not found
Checking for library rt : not found
Checking for fdatasync(2) with c++ : no
'configure' finished successfully (0.334s)
WARNING WARNING WARNING
OpenSSL not found. Will compile Node without crypto support!

make gives this error:

uv: deps\uv\include\uv.h -> out\Release\deps\uv\uv.a
make[1]: Entering directory `/e/Uni/diplom/workspace/node/out/Release/deps/uv'
rm -f src/ares/*.o
rm -f src/eio/*.o
rm -f src/win/*.o
rm -f -f src/*.o *.a test/run-tests.exe test/run-benchmarks.exe
gcc -Iinclude -Iinclude/uv-private -g --std=gnu89 -D_WIN32_WINNT=0x0501 -Isrc/ar
es/config_win32 -o src/win/async.o -c src/win/async.c
make[1]: Leaving directory `/e/Uni/diplom/workspace/node/out/Release/deps/uv'

In file included from src/win/async.c:24:0:
include/uv.h:439:3: error: unknown type name 'LPFN_ACCEPTEX'
include/uv.h:439:3: error: unknown type name 'LPFN_CONNECTEX'
make[1]: *** [src/win/async.o] Error 1

Waf: Leaving directory `e:\Uni\diplom\workspace\node\out'
Build failed: -> task failed (err #2):
{task: uv uv.h -> uv.a}
make: *** [program] Error 1