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

macos 10.12.3安装问题 #13

Open
zigo928 opened this issue Mar 11, 2017 · 0 comments
Open

macos 10.12.3安装问题 #13

zigo928 opened this issue Mar 11, 2017 · 0 comments

Comments

@zigo928
Copy link

zigo928 commented Mar 11, 2017

sed: can't read s/$(CFLAGS)/-Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -DDARWIN/g: No such file or directory
sed: can't read s/$(LIBS)/-lm/g: No such file or directory
sed: can't read s/$(LIB_VERSION)/lib64/g: No such file or directory
cc -c -o sockopt.o sockopt.c
sockopt.c:1329:69: error: too many arguments to function call, expected 6, have 7
if (sendfile(fd, sock, offset, remain_bytes, NULL, &sbytes, 0) != 0)
~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/sys/socket.h:706:1: note:
'sendfile' declared here
int sendfile(int, int, off_t, off_t *, struct sf_hdtr *, int);
^
1 error generated.
make: *** [sockopt.o] Error 1

执行./make.sh命令就会这样

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

1 participant