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

Drip does not work on MingW #69

Open
hanxue opened this issue Aug 22, 2013 · 1 comment
Open

Drip does not work on MingW #69

hanxue opened this issue Aug 22, 2013 · 1 comment

Comments

@hanxue
Copy link

hanxue commented Aug 22, 2013

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

@filsanet
Copy link

filsanet commented Aug 6, 2014

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

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

2 participants