The following stanza in lsass/configure.in fails:
AC_CHECK_MEMBERS([ucontext_t.uc_mcontext,
ucontext_t.uc_mcontext->__ss.__rip,
ucontext_t.uc_mcontext->__ss.__eip],
[], [], [AC_INCLUDES_DEFAULT
#ifdef HAVE_EXECINFO_H
# include <execinfo.h>
#endif
])
It was added to define HAVE_UCONTEXT_T_UC_MCONTEXT____SS___RIP (and
___EIP) which are apparently only defined in Mac 32/64bit (the code
guarded by that ifdef enables Mac 32/64bit instruction pointer in
lsass/server/lsassd/backtrace.c):
#elif defined(REG_RIP)
// Linux 64bit instruction pointer
ppFunctions[1] = (void *)pContext->uc_mcontext.gregs[REG_RIP];
+#elif defined(HAVE_UCONTEXT_T_UC_MCONTEXT____SS___RIP)
+ // Mac 64bit instruction pointer
+ ppFunctions[1] = (void *)pContext->uc_mcontext->__ss.__rip;
+#elif defined(HAVE_UCONTEXT_T_UC_MCONTEXT____SS___EIP)
+ // Mac 32bit instruction pointer
+ ppFunctions[1] = (void *)pContext->uc_mcontext->__ss.__eip;
#else
// Linux 32bit instruction pointer
ppFunctions[1] = (void *)pContext->uc_mcontext.gregs[REG_EIP];
It sounds rather safe to patch it out, I'll propose an upload to that
effect.
** Changed in: likewise-open (Ubuntu Maverick)
Status: Confirmed => In Progress
** Changed in: likewise-open (Ubuntu Maverick)
Assignee: (unassigned) => Thierry Carrez (ttx)
--
likewise-open fails to build from source in maverick
https://bugs.launchpad.net/bugs/651138
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs