Description
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命令就会这样