Skip to content

macos 10.12.3安装问题 #13

Open
@zigo928

Description

@zigo928

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions