在OSX 10.10上编译MAKE LIRC失败

时间:2015-10-17 05:02:25

标签: lirc

我正在尝试在osx 10.10上编译lirc latest(0.9.3.a)​​,configure成功,但是make失败了几次:

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程序员,我想看看如果我注释掉代码会有多远。

我也尝试过编译以前的版本,但也失败了。

有关如何解决这些问题的任何建议?

3 个答案:

答案 0 :(得分:0)

老问题,但如果有人帮助......

0.9.4b中的configure.ac仍有此问题。解决方案很简单:

Num

答案 1 :(得分:0)

上面的修复不足以使其构建。 LIRC也受到民意调查中的苹果漏洞的影响,正在努力解决这个问题。观察上游release-0_9_4分支以获取最新修复。

答案 2 :(得分:0)

这应该在最新的LIRC版本0.9.4c中修复

相关问题