philpraxis / sctpscan

SCTP network scanner for discovery and security
http://www.p1sec.com
GNU General Public License v3.0
93 stars 50 forks source link

Compiling on OSX #1

Open darksheer opened 10 years ago

darksheer commented 10 years ago

Got the glibc packages working, but getting this error:

cc -g sctpscan.c -o sctpscan -lglib-2.0 -I/opt/local/include/glib-2.0/ -I/opt/local/lib/glib-2.0/include/ -m32 sctpscan.c:1987:12: error: too many arguments to function call, expected 0, have 2 setpgrp(0, getpid());


/usr/include/unistd.h:586:1: note: 'setpgrp' declared here
pid_t    setpgrp(void) __DARWIN_ALIAS(setpgrp);
^
1 error generated.
c4b4d4 commented 8 years ago

Did you manage to fix this? I'm encountering this bug right now.

darksheer commented 8 years ago

I'd have to go back and check -- pretty sure I didn't get it fixed.

spectre1811 commented 4 years ago

There's an easy fix to this. use the function setpgid() instead of setpgrp() used. It'll be automatically fixed