在Linux下,compile pftp shit edition時,會出現
In function ‘int open(const char*, int, ...)’, inlined from ‘bool CTCP::ReadFile(char*, long int)’ at tcp.cc:1180:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments make[1]: *** [tcp.o] Error 1
解決方法:
編輯src/tcp.cc
跳到1180行
找到
open(name, O_CREAT | O_TRUNC | O_RDWR | O_BINARY)) == -1) {
改成
open(name, O_CREAT | O_TRUNC,0664 | O_RDWR | O_BINARY)) == -1) {
然後make dynamic
Reference:
pftp-shit wont compile
No comments:
Post a Comment