Comments (7)
I had the same problems, fixed it by adding the winsock2.h include before the windows.h include. I have reverted your patch and added the include, and it compiled fine (Gentoo with mingw32 cross-compiler). I will create a pull request.
from pafish.
Hello!
Yes, I'm aware of this problem but I didn't find the solution to it. Looks like some structs missing in linux ming version.
I'll have a look at this, in the worst case I'll drop the compilation of this function in linux.
from pafish.
I get these same errors on Win7 running mingw32, mingw64, and TDM-64. What's your build setup for windows, @a0rtega ?
from pafish.
@kdar That's weird. I've compiled on Windows XP in the past and W7 x64 recently, and never had this problem when compiling on Windows.
Can you paste the error trace you have so we can have a look?
from pafish.
make -f Makefile.win
gcc.exe -c vbox.c -o Objects/MingW/vbox.o -I"C:/MinGW32/include" -Wall -Wextra -O0
vbox.c: In function 'vbox_mac':
vbox.c:160:3: warning: implicit declaration of function 'GetAdaptersAddresses' [-Wimplicit-function-declaration]
int ret = GetAdaptersAddresses(AF_UNSPEC,GAA_FLAG_INCLUDE_PREFIX,0,0,&alist_size);
^
vbox.c:160:44: error: 'GAA_FLAG_INCLUDE_PREFIX' undeclared (first use in this function)
int ret = GetAdaptersAddresses(AF_UNSPEC,GAA_FLAG_INCLUDE_PREFIX,0,0,&alist_size);
^
vbox.c:160:44: note: each undeclared identifier is reported only once for each function it appears in
vbox.c:162:4: error: unknown type name 'IP_ADAPTER_ADDRESSES'
IP_ADAPTER_ADDRESSES* palist = (IP_ADAPTER_ADDRESSES_)LocalAlloc(LMEM_ZEROINIT,alist_size);
^
vbox.c:162:36: error: 'IP_ADAPTER_ADDRESSES' undeclared (first use in this function)
IP_ADAPTER_ADDRESSES_ palist = (IP_ADAPTER_ADDRESSES_)LocalAlloc(LMEM_ZEROINIT,alist_size);
^
vbox.c:162:57: error: expected expression before ')' token
IP_ADAPTER_ADDRESSES_ palist = (IP_ADAPTER_ADDRESSES_)LocalAlloc(LMEM_ZEROINIT,alist_size);
^
vbox.c:165:27: error: 'ppalist' undeclared (first use in this function)
IP_ADAPTER_ADDRESSES_ ppalist=palist;
^
make: *** [Objects/MingW/vbox.o] Error 1
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=D:/DEV/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/4.9.2/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-4.9.2/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --with-gxx-include-dir=/mingw64/include/c++/4.9.2 --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-cloog-backend=isl --enable-version-specific-runtime-libs --disable-cloog-version-check --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-cloog=/mingw64 --with-pkgversion='Rev5, Built by MSYS2 project' --with-bugurl=http://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 4.9.2 (Rev5, Built by MSYS2 project)
from pafish.
Hey @kdar I have just tried with MSYS as you do, and it didn't work for me neither.
I usually build directly with the official MinGW: http://www.mingw.org/
But I also tried with Cygwin now and it worked at the first try (install mingw-gcc-core and make): https://cygwin.com/index.html
Hope it helps, cheers!
from pafish.
This should be fixed in the latest master revision. It checks the defines needed for those functions and structs, and will skip the compilation of that part if not found, triggering a warning.
from pafish.
Related Issues (20)
- Check for fixed IP Ranges used by McAfee ATD
- New methods to add
- Gozi ISFB HD name antivm
- pafish & cuckoo HOT 2
- Some results from running in a VM vs actual hardware
- VM detection possible by checking the difference between CPU timestamp counters (rdtsc) forcing VM exit HOT 2
- Kaspersky detect this tool as Trojan HOT 3
- Pafish setup changes after snapshot VBox
- Google Safe Browsing
- Add how to patch detections to wiki HOT 3
- Delays within virtualization checks HOT 1
- Is this project abandoned? HOT 2
- Virtual Box rdtsc HOT 4
- Marked as Virus HOT 1
- pafish detected as malware / virus
- how to bypass this detects? HOT 2
- Help me fix these detections please HOT 1
- How to fix this ?
- Industry-standard techniques HOT 1
- help me fix these detection please HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pafish.