I then reenter the mingw32-make in the shell and get this:
gcc -DINTERNAL -opowder -Wall -std=c99 -D_POSIX_C_SOURCE=200112L -O3 -ffast-math -funsafe-math-optimizations -lSDL -lm -lbz2 -march=k8 -DX86 -DX86_SSE3 -msse3 powder.c http.c md5.c update.c -DLIN64 In file included from powder.c:77: hmap.h:20:7712: warning: no newline at end of file In file included from powder.c:2570: icon.h:22:20523: warning: no newline at end of file In file included from powder.c:3630: font.h:27:4: warning: no newline at end of file powder.c: In function `draw_svf_ui': powder.c:4801: warning: unused variable `c2' powder.c: In function `cpu_check': powder.c:7052: error: syntax error before "mov" powder.c:7055: error: syntax error before "mov" powder.c:7051: warning: unused variable `af' powder.c: In function `SDL_main': powder.c:7575: warning: comparison is always true due to limited range of data t ype powder.c: At top level: icon.h:21: warning: 'app_icon' defined but not used icon.h:22: warning: 'app_icon_w32' defined but not used http.c:41:24: sys/socket.h: No such file or directory http.c:42:19: netdb.h: No such file or directory http.c: In function `resolve': http.c:130: error: storage size of 'hnt' isn't known http.c:132: error: invalid application of `sizeof' to incomplete type `sockaddr_ in' http.c:136: error: `AF_INET' undeclared (first use in this function) http.c:136: error: (Each undeclared identifier is reported only once http.c:136: error: for each function it appears in.) http.c:137: error: `SOCK_STREAM' undeclared (first use in this function) http.c:138: warning: implicit declaration of function `getaddrinfo' http.c:141: error: dereferencing pointer to incomplete type http.c:142: warning: implicit declaration of function `freeaddrinfo' http.c:145: error: dereferencing pointer to incomplete type http.c:145: error: dereferencing pointer to incomplete type http.c:130: warning: unused variable `hnt' http.c: In function `http_init': http.c:160: error: `SIGPIPE' undeclared (first use in this function) http.c: At top level: http.c:202: error: field `addr' has incomplete type http.c: In function `http_async_req_status': http.c:393: warning: implicit declaration of function `socket' http.c:393: error: `AF_INET' undeclared (first use in this function) http.c:393: error: `SOCK_STREAM' undeclared (first use in this function) http.c:402: warning: implicit declaration of function `fcntl' http.c:402: error: `F_GETFL' undeclared (first use in this function) http.c:405: error: `F_SETFL' undeclared (first use in this function) http.c:405: error: `O_NONBLOCK' undeclared (first use in this function) http.c:409: warning: implicit declaration of function `connect' http.c:419: error: `EINPROGRESS' undeclared (first use in this function) http.c:423: error: `EALREADY' undeclared (first use in this function) http.c:479: warning: implicit declaration of function `send' http.c:496: warning: implicit declaration of function `recv' http.c: At top level: http.c:70: error: storage size of `http_proxy' isn't known update.c: In function `exe_name': update.c:63: warning: implicit declaration of function `readlink' mingw32-make: *** [powder] Error 1
While you're using MinGW, you're trying to make the linux target. you need to do "mingw32-make powder.exe" The Windows code is written for VC++, it might not actually compile for GCC.
Older versions should compile fine, the reason the Win32 version won't compile in MinGW is the x86_cpuid function, which is written for VC++ for WIN32 builds changing the Win32 one to match the other copy should fix the issue.