ratproxy.c:1635: error: incompatible type for argument 2 of `waitpid'
I compiled ratproxy using Cygwin following this guideline:
http://www.butterdev.com/web-security/2008/07/google-ratproxy-web-application-se
curity-audit-tool/
When I ran Make with flag -Wno-pointer-sign removed I got this error
cc ratproxy.c -o ratproxy -Wall -O3 -D_GNU_SOURCE http.c mime.c ssl.c
-lcrypto -lssl
ratproxy.c: In function `listen_loop':
ratproxy.c:1635: error: incompatible type for argument 2 of `waitpid'
Makefile:29: recipe for target `ratproxy' failed
make: *** [ratproxy] Error 1
Am I missing any library?
Thanks
Original issue reported on code.google.com by [email protected] on 15 Feb 2012 at 3:43
fanronal...
How do you solve the compiler incompatible waitpid problem?
Best regards
Original comment by [email protected] on 16 Apr 2012 at 7:35
matth...
do you solve this problem?
Help me please!!!
Original comment by [email protected] on 16 Apr 2012 at 7:38
I switched from Windows to Mac OSX Lion at work so I'm no longer having this
issue.
Original comment by [email protected] on 16 Apr 2012 at 8:09
I switched to using VM - Back Track 5 --> it's already included ;)
Original comment by [email protected] on 17 Apr 2012 at 12:40
I have the same problem. Is there a way to solve it?
Original comment by [email protected] on 9 May 2012 at 12:32
[deleted comment]
I have the same problem - the end of my make is:
config.h:209:3: warning: pointer targets in initialization differ in signedness
Makefile:29: recipe for target `ratproxy' failed
make: *** [ratproxy] Error 1
Ideas to resolve will be MOST appreciated!
Original comment by [email protected] on 17 May 2012 at 7:57
I am preparing for a SANS-642 class where the chaining of Ratproxy and Burp are
discussed; but I am having the same issue when I try to compile Ratproxy
through Cygwin. I would like to stick with the Windows environment since that
will mirror what is used in class. Here is the complete error:
$ make
cc ratproxy.c -o ratproxy -Wall -O3 -D_GNU_SOURCE http.c mime.c ssl.c -lcrypto
-lssl
ratproxy.c: In function `listen_loop':
ratproxy.c:1635: error: incompatible type for argument 2 of `waitpid'
Makefile:29: recipe for target `ratproxy' failed
make: *** [ratproxy] Error 1
Original comment by [email protected] on 18 May 2012 at 4:54
A couple of things I have tried during the day; but I'm still stuck with the
same error. First I tried compiling on a WinXP system thinking it may be an
issue with Windows 7...same error. Then I downloaded a deprecated, older
version of ratproxy (V.1.53 rather than the latest V.1.58) but I still have the
same problem.
Original comment by [email protected] on 19 May 2012 at 4:03
I commented out Line 1635 in ratproxy.c for the waitpid problem, as I don't
think that would cause any isssues.
Replace --> while (waitpid(-1,&x,WNOHANG) > 0);
With --> /* while (waitpid(-1,&x,WNOHANG) > 0); */
This solved the issue for me, and now I'm able to use ratproxy with no issues.
However, solution to RESOLVE this would be most appreciated !!
Original comment by [email protected] on 9 Jun 2012 at 4:04
in ratproxy.c replace line: while (waitpid(-1,&x,WNOHANG) > 0);
with line: while (waitpid(-1,(int*)&x,WNOHANG) > 0);
Good luck !
Original comment by [email protected] on 6 Jul 2012 at 3:56
in ratproxy.c replace line: while (waitpid(-1,&x,WNOHANG) > 0);
with line: while (waitpid(-1,(int*)&x,WNOHANG) > 0);
This solved the issue
Original comment by [email protected] on 7 Nov 2014 at 8:56