我试图编译LIRC最新(0.9.3.a)在OSX 10.10,配置是成功的,但是做失败了几次:编译在OSX 10.10 MAKE LIRC失败
lircd.cpp:748:6: error: no matching function for call to 'getgrouplist'
r = getgrouplist(user, pw->pw_gid, groups, &group_cnt);
^~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/unistd.h:648:6: note: candidate function not viable: no known conversion from 'gid_t [32]' to 'int *' for 3rd argument
int getgrouplist(const char *, int, int *, int *);
如果我注释掉问题的代码,并再次运行,我得到:
irexec.cpp:62:3: error: use of undeclared identifier 'strdupa'; did you mean 'strdup'?
strdupa(SH_PATH), strdupa("-c"), strdupa(cmd), NULL
^~~~~~~
strdup
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/string.h:117:7: note: 'strdup' declared here
char *strdup(const char *);
如果我改变strupa到strup,那么接下来的失败是:
In file included from irpipe.cpp:17:
../drivers/irpipe/irpipe.h:3:10: fatal error: 'asm-generic/ioctl.h' file not found
#include <asm-generic/ioctl.h>
现在我知道只是注释掉代码并不能解决问题,但是我不是C程序员,而且我想知道如果我注释掉代码会得到多少。
我也尝试编译以前的版本,他们也失败了。
关于如何解决这些问题的任何建议?
“修正以上”应为“修复之下”,对不起 – leamas
您可以自由[编辑]你的答案解决的事情。 – Tsyvarev