Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure on Windows 10 Msys2 mingw64 #105

Open
bill-e-ghote opened this issue Jun 25, 2024 · 0 comments
Open

Compilation failure on Windows 10 Msys2 mingw64 #105

bill-e-ghote opened this issue Jun 25, 2024 · 0 comments

Comments

@bill-e-ghote
Copy link

Obviously, configure thinks I'm on a native *nix system and not Msys2 "mostly POSIX" environment.

gsocket-1.4.42 has been configured:

Host..............: x86_64-w64-mingw32
Prefix............: /mingw64
Compiler..........: gcc
Compiler flags....: -O2 -Wall -g -O2
Preprocessor flags: -I./../include -I/mingw64/include
Linker flags......: -L/mingw64/lib
Libraries.........: -lssl -lcrypto -ldl

Configuration complete. Now type: make all install

$ make all
make all-recursive
make[1]: Entering directory '/c/Users/user/source/repos/gsocket'
Making all in lib
make[2]: Entering directory '/c/Users/user/source/repos/gsocket/lib'
gcc -DHAVE_CONFIG_H -I. -I.. -I./../include -I/mingw64/include -O2 -Wall -g -O2 -MT gsocket-util.o -MD -MP -MF .deps/gsocket-util.Tpo -c -o gsocket-util.o gsocket-util.c
In file included from gsocket-util.c:2:
gs-common.h:11:10: fatal error: sys/socket.h: No such file or directory
11 | #include <sys/socket.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:389: gsocket-util.o] Error 1
make[2]: Leaving directory '/c/user/source/repos/gsocket/lib'
make[1]: *** [Makefile:385: all-recursive] Error 1
make[1]: Leaving directory '/c/user/source/repos/gsocket'
make: *** [Makefile:326: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant