I have a task of wrapping a 32bit dll in wine (wine-2.0.2), and then exposing this using gRPC - on a 32bit docker container.
I have successfully proven that I can call the dll from wine, by wrapping and compiling using winegcc.
The next step is to expose this dll using Googles gRPC.
I\m trying to compile this from source, using the same wine compiler. However the compilation fails with complaints of a missing header file, for example:
Code: Select all
[MAKE] Generating /var/local/git/grpc/libs/opt/pkgconfig/grpc.pc
[MAKE] Generating /var/local/git/grpc/libs/opt/pkgconfig/grpc_unsecure.pc
[MAKE] Generating cache.mk
make: Circular /var/local/git/grpc/libs/opt/libares.a <- /var/local/git/grpc/libs/opt/libz.a dependency dropped.
[C] Compiling third_party/cares/cares/ares__close_sockets.c
In file included from third_party/cares/cares/ares_setup.h:214:0,
from third_party/cares/cares/ares__close_sockets.c:17:
third_party/cares/cares/setup_once.h:71:16: fatal error: io.h: No such file or directory
#include <io.h>
^
compilation terminated.
winegcc: gcc failed
make: *** [/var/local/git/grpc/objs/opt/third_party/cares/cares/ares__close_sockets.o] Error 2
Makefile:2515: recipe for target '/var/local/git/grpc/objs/opt/third_party/cares/cares/ares__close_sockets.o' failed
+ make install
[INSTALL] Installing public C headers
[MAKE] Generating cache.mk
make: Circular /var/local/git/grpc/libs/opt/libares.a <- /var/local/git/grpc/libs/opt/libz.a dependency dropped.
[C] Compiling third_party/cares/cares/ares__close_sockets.c
In file included from third_party/cares/cares/ares_setup.h:214:0,
from third_party/cares/cares/ares__close_sockets.c:17:
third_party/cares/cares/setup_once.h:71:16: fatal error: io.h: No such file or directory
#include <io.h>
Thanks