在Mac OS X上构建CyanogenMod - strace中的错误

时间:2012-05-22 20:17:41

标签: android c macos macports cyanogenmod

我正在尝试在Mac OS X Lion上构建CM9,我在设置环境时遵循Android开发者网站的所有说明,然后通过rsync将CM9源从Linux笔记本移动到我的MacBook,当我重建它时( $ brunch crespo),我收到了这个错误:

    In file included from external/strace/syscall.c:121:
external/strace/linux/syscallent.h:359:3: error: #error fix me
In file included from external/strace/syscall.c:121:
external/strace/linux/syscallent.h:370: error: 'SYS_sub_send' undeclared here (not in a function)
external/strace/linux/syscallent.h:371: error: 'SYS_sub_recv' undeclared here (not in a function)
external/strace/linux/syscallent.h:372: error: 'SYS_sub_sendto' undeclared here (not in a function)
external/strace/linux/syscallent.h:373: error: 'SYS_sub_recvfrom' undeclared here (not in a function)
external/strace/linux/syscallent.h:381:3: error: #error fix me

syscallent.h中的以下几行:

#if SYS_socket_subcall != 300
 #error fix me
#endif
    { 8,    0,  printargs,      "socket_subcall"}, /* 300 */
    { 3,    TN, sys_socket,     "socket"    }, /* 301 */
    { 3,    TN, sys_bind,       "bind"      }, /* 302 */
    { 3,    TN, sys_connect,        "connect"   }, /* 303 */
    { 2,    TN, sys_listen,     "listen"    }, /* 304 */
    { 3,    TN, sys_accept,     "accept"    }, /* 305 */
    { 3,    TN, sys_getsockname,    "getsockname"   }, /* 306 */
    { 3,    TN, sys_getpeername,    "getpeername"   }, /* 307 */
    { 4,    TN, sys_socketpair,     "socketpair"    }, /* 308 */
    /* Line 370 */{ 4,  TN, sys_send,       "send", SYS_sub_send }, /* 309 */

Linux上没有问题,为什么我在Mac OS上有它们?

0 个答案:

没有答案