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

Compiling on OSX #1

Open
darksheer opened this issue Nov 21, 2013 · 3 comments
Open

Compiling on OSX #1

darksheer opened this issue Nov 21, 2013 · 3 comments

Comments

@darksheer
Copy link

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
Copy link

c4b4d4 commented Aug 22, 2016

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

@darksheer
Copy link
Author

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

@spectre1811
Copy link

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

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

3 participants