happyfish100 / libfastcommon

c common functions library extracted from my open source project FastDFS. this library is very simple and stable. functions including: string, logger, chain, hash, socket, ini file reader, base64 encode / decode, url encode / decode, fast timer, skiplist, object pool etc. detail info please see the c header files.
http://bbs.chinaunix.net/forum-240-1.html
GNU Lesser General Public License v3.0
900 stars 529 forks source link

macos 10.12.3安装问题 #13

Open zigo928 opened 7 years ago

zigo928 commented 7 years ago

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