drip icon indicating copy to clipboard operation
drip copied to clipboard

Drip does not work on MingW

Open hanxue opened this issue 11 years ago • 1 comments

I am trying to run drip on Mingw 4.8.1 on Windows 7 64bit. This is the error that I get:

hanxue@Acer-hanxue /e/Projects/GitHub/drip $ scala src/drip_daemon.c: In function 'main': src/drip_daemon.c:43:5: warning: passing argument 2 of 'execv' from incompatible pointer type [enabled by default] e:\dev\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/process.h:118:42: note: expected 'const char * const_' but argument is of type 'char *_' C:\Users\hanxue\AppData\Local\Temp\ccyo0bTe.o:drip_daemon.c:(.text+0xfe): undefined reference to fork' C:\Users\hanxue\AppData\Local\Temp\ccyo0bTe.o:drip_daemon.c:(.text+0x12f): undefined reference tofork' C:\Users\hanxue\AppData\Local\Temp\ccyo0bTe.o:drip_daemon.c:(.text+0x14f): undefined reference to setsid' C:\Users\hanxue\AppData\Local\Temp\ccyo0bTe.o:drip_daemon.c:(.text+0x1ae): undefined reference towait' collect2: ld returned 1 exit status make: *** [bin/drip_daemon] Error 1

When I invoke drip directly, I get this error :

hanxue@Acer-hanxue /e/Projects/GitHub/drip $ drip E:/Dev/MinGW/msys/1.0/home/hanxue/.drip/0.2.3/src/drip_proxy.c:10:23: fatal erro r: sys/ioctl.h: No such file or directory compilation terminated. E:/Dev/MinGW/msys/1.0/home/hanxue/.drip/0.2.3/src/drip_daemon.c: In function 'main': E:/Dev/MinGW/msys/1.0/home/hanxue/.drip/0.2.3/src/drip_daemon.c:43:5: warning: passing argument 2 of 'execv' from incompatible pointer type [enabled by default]

e:\dev\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/process.h:118:42: note: expected 'const char * const_' but argument is of type 'char *_' C:\Users\hanxue\AppData\Local\Temp\ccYaTzE4.o:drip_daemon.c:(.text+0xfe): undefined reference to fork' C:\Users\hanxue\AppData\Local\Temp\ccYaTzE4.o:drip_daemon.c:(.text+0x12f): undefined reference tofork' C:\Users\hanxue\AppData\Local\Temp\ccYaTzE4.o:drip_daemon.c:(.text+0x14f): undefined reference to setsid' C:\Users\hanxue\AppData\Local\Temp\ccYaTzE4.o:drip_daemon.c:(.text+0x1ae): undefined reference towait' collect2: ld returned 1 exit status

hanxue avatar Aug 22 '13 21:08 hanxue

I get a similar error when I attempt to install drip from git source and compile on WIndows 32 and Mingw (gcc -v == 4.4.0).

$ bin/drip
src/drip_daemon.c: In function 'main':
src/drip_daemon.c:41: warning: passing argument 2 of 'execv' from incompatible pointer type
c:\temp\apps\msysgit\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/process.h:118: note: expected 'const char * const*' but argument is of type 'char **'
C:\User\userid\Temp\ccSOh8aa.o:drip_daemon.c:(.text+0xfc): undefined reference to `fork'
C:\User\userid\Temp\ccSOh8aa.o:drip_daemon.c:(.text+0x121): undefined reference to `fork'
C:\User\userid\Temp\ccSOh8aa.o:drip_daemon.c:(.text+0x141): undefined reference to `setsid'
C:\User\userid\Temp\ccSOh8aa.o:drip_daemon.c:(.text+0x1a0): undefined reference to `wait'
collect2: ld returned 1 exit status
make: *** [bin/drip_daemon] Error 1

filsanet avatar Aug 06 '14 05:08 filsanet