naltak / ratproxy

Automatically exported from code.google.com/p/ratproxy
0 stars 0 forks source link

ratproxy.c:1635: error: incompatible type for argument 2 of `waitpid' #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 fanronal...@gmail.com on 15 Feb 2012 at 3:43

GoogleCodeExporter commented 9 years ago
Ditto.

Original comment by matth...@bit-shift.net on 16 Mar 2012 at 9:50

GoogleCodeExporter commented 9 years ago
fanronal...
How do you solve the compiler incompatible waitpid problem?
Best regards

Original comment by jorge...@gmail.com on 16 Apr 2012 at 7:35

GoogleCodeExporter commented 9 years ago
matth...
do you solve this problem?
Help me please!!!

Original comment by jorge...@gmail.com on 16 Apr 2012 at 7:38

GoogleCodeExporter commented 9 years ago
I switched from Windows to Mac OSX Lion at work so I'm no longer having this 
issue.

Original comment by matth...@bit-shift.net on 16 Apr 2012 at 8:09

GoogleCodeExporter commented 9 years ago
I switched to using VM - Back Track 5 --> it's already included ;)

Original comment by fanronal...@gmail.com on 17 Apr 2012 at 12:40

GoogleCodeExporter commented 9 years ago
I have the same problem. Is there a way to solve it?

Original comment by Manuel.P...@gmail.com on 9 May 2012 at 12:32

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 xq1xq1...@gmail.com on 17 May 2012 at 7:57

GoogleCodeExporter commented 9 years ago
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 Dsu...@gaissa.org on 18 May 2012 at 4:54

GoogleCodeExporter commented 9 years ago
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 Dsu...@gaissa.org on 19 May 2012 at 4:03

GoogleCodeExporter commented 9 years ago
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 kilapart...@gmail.com on 9 Jun 2012 at 4:04

GoogleCodeExporter commented 9 years ago
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 thucngo...@gmail.com on 6 Jul 2012 at 3:56

GoogleCodeExporter commented 9 years ago
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 riks3...@gmail.com on 7 Nov 2014 at 8:56